:root {
    --bs-gray-300-rbg: 224,222,222;/*Use this for hover colour*/
}

html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100%;
  margin-bottom: 0;
}

main{
   flex-grow: 1;
   min-height: calc(100vh - (60px + 3rem));
}

.container-fluid{
    flex-grow: 1;
    min-height: 0;
}

/** GENERAL **/
.custom-header, .custom-footer {
    /*background-color: rgba(var(--bs-gray-300-rbg), var(--bs-bg-opacity)) !important;*/
    background-color: #3274d9 !important;
}

footer {
    position: sticky;
    bottom: 0;
}

/*This is used for the content headers*/
.card-custom-bg {
    background-color: #3274d9; /* matches the header background-color */
    border-color: #3274d9;
    /*var(--bs-primary)*/
}

/*.custom-footer {
    position: sticky;
}
*/
.footer-text {
    color: white;
}

.navbar {
    background-color: #3274d9 !important;
}

.sidebar {
    height: calc(100vh - (60px + 3rem));
    position: sticky;
    top: 0;
}

@media (max-width: 767px) {
    #sidebar {
        display: none;
    }

    #sidebar.active {
        display: block;
    }

    .col-md-9 {
        margin-left: 0;
    }
}

#sidebarToggle {
    display: none; 
}

@media (max-width: 767px) {
    #sidebarToggle {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 999;
    }
}

div#logo{
    margin-right: 25px;
    padding-right: 15px;
    border-right: 3px solid white;
}

.bg-left-menu {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-gray-300-rbg), var(--bs-bg-opacity)) !important;
}

.hr-blue {
    color: #3274d9;
}

/*Top Menu*/
.navbar-nav li.nav-item a.nav-link:hover,
.navbar-nav li.nav-item a.nav-link:focus {
    background-color: rgba(24,19,87, var(--bs-bg-opacity));/*#181357*/
    color: black;
    text-decoration: underline;
}

.navbar-nav li.nav-item a.nav-link.active {
    background-color: rgba(24,19,87, var(--bs-bg-opacity)); /*#8a8787*/
    color: black;
    text-decoration: underline;
    position: relative;
}

.breadcrumb {
    padding: 0;
    margin: 0;
    /*background-color: rgba(28,19,87, var(--bs-bg-opacity)) !important;*/
}

/*Left Menu*/
.left-menu-ul li.nav-item a.nav-link {
    padding-left: 25px;
}

.left-menu-ul li.nav-item a.nav-link:hover,
.left-menu-ul li.nav-item a.nav-link:focus {
    background-color: rgba(171,169,169, var(--bs-bg-opacity)); /*#8a8787*/
    color: black;
    text-decoration: underline;
    border: 1px solid black;
}

    .left-menu-ul li.nav-item a.nav-link{
        margin-left: 10px;
    }

    .left-menu-ul li.nav-item a.nav-link.active {
        background-color: rgba(171,169,169, var(--bs-bg-opacity)); /*#8a8787*/
        color: black;
        /*text-decoration: underline;*/
        position: relative;
    }

    .left-menu-ul li.nav-item a.nav-link.active::before {
        content: "";
        display: block;
        width: 15px;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        background-color: #3274d9;
    }

.left-menu-ul.metismenu {
    padding-left: 0;
    list-style: none;
}

.left-menu-ul.metismenu li {
    position: relative;
}

.left-menu-ul.metismenu a {
    display: block;
    padding: 10px 15px;
    color: #212529;
    text-decoration: none;
    transition: all 0.3s;
}

.left-menu-ul.metismenu a:hover, 
.left-menu-ul.metismenu a.active {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.left-menu-ul.metismenu .mm-collapse {
    padding-left: 15px;
}

.left-menu-ul.metismenu .has-arrow::after {
    position: absolute;
    content: '';
    width: 0.5em;
    height: 0.5em;
    border-width: 1px 0 0 1px;
    border-style: solid;
    border-color: #212529;
    right: 1em;
    transform: rotate(-45deg) translate(0, -50%);
    transform-origin: top;
    top: 50%;
    transition: all 0.3s ease-out;
}

.left-menu-ul.metismenu .has-arrow[aria-expanded="true"]::after {
    transform: rotate(-135deg) translate(0, -50%);
}

.left-menu-ul.metismenu .menu-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100%;
        z-index: 1030;
        transition: all 0.3s;
        overflow-y: auto;
    }
    
    .sidebar.active {
        left: 0;
    }
}

.submenu {
    list-style-type: none;
}

.menu-icon {
    margin-right: 10px;
}

.icon-text {
    display: inline-block;
    vertical-align: middle;
}

/** SAE DASHBOARD **/
    .record-count-white, .record-count-blue {
        height: 200px;
        width: 288px;
        border: solid 1px black;
        margin-left: 20px;
    }

    .record-count-white p.count, .record-count-blue p.count {
        font-size: 80px;
        font-weight: 700;
        text-align: center;
    }

.record-count-white {
    color: #3274d9;
}

.record-count-blue {
    color: #fff;
    background: linear-gradient(120deg, rgb(95, 129, 225), rgb(65, 147, 220));
}

.selected-trial {
    color: #3274d9;
}

.main-section {
    margin-top: 100px;
}

/** SPINNER CREATION **/

.loader {
    position: relative;
    text-align: center;
    margin: 15px auto 35px auto;
    z-index: 9999;
    display: block;
    width: 80px;
    height: 80px;
    border: 10px solid rgba(0, 0, 0, .3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

/** MODAL STYLING **/

.modal-content {
    border-radius: 0px;
    box-shadow: 0 0 20px 8px rgba(0, 0, 0, 0.7);
}

.modal-backdrop.show {
    opacity: 0.75;
}

.modal-width-900 {
    width: 900px;
}

.modal-width-1200 {
    width: 1200px;
}

.custom-modal-width-50pc {
    max-width: 50%;
}

.standout-label {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1em;
}

.lctc-web-logo {
    max-width: 100%;
    height: auto;
}

/* ADDITONAL TABLE STYLING */
.toggle-icon {
    cursor: pointer;
}

.green-status{
    background-color: green;
    color: white;
}

.amber-status {
    background-color: #FFBF00;
    color: black;
}

.red-status {
    background-color: red;
    color: white;
}

.blue-status {
    background-color: blue;
    color: white;
}

div.dataTables_filter {
    margin-bottom: 15px;
}

div.dataTables_length {
    margin-bottom: 15px;
}

div.dataTables_filter {
    margin-bottom: 15px;
}

div.dataTables_length {
    margin-bottom: 15px;
}

/* pagination controls */
div.dataTables_paginate {
    margin-top: 15px;
}

/* "Showing X to Y of Z entries" text */
div.dataTables_info {
    margin-top: 15px;
}

/* Form styling*/

.form-section {
    background-color: lightgrey;
}

.light-grey {
    background-color: #f5f7fa;
}

.white-background {
    background-color: white;
}

/* Home page styling*/
.home-section {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px;
    background-color: #f9f9f9;
}

.home-section-title {
    background-color: #f9f9f9; /* Adjust this to match the current background color */
    padding: 10px;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.home-section-content {
    background-color: #fff;
    padding: 15px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.text-decoration-none {
    text-decoration: none;
}

/* Meeting Action Badge Styles */
.action-count-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.action-count-badge-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.action-count-badge {
    background-color: #dc3545;
    color: white;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    bottom: 0;
    right: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.action-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1.25rem;
    color: #495057;
    background-color: white;
    border-radius: 50%;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.action-count-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}


/* Status colours */
.status-rectangle {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    vertical-align: middle;
}

.status-set-up {
    background: #F00;
    background: hsl( 0, 100%, 50%);
}

.status-recruiting {
    background: #F80;
    background: hsl( 36, 100%, 50%);
}

.status-infollow-up {
    background: #f3ff3f;
    background: hsl(63.75deg 100% 62.35%);
}

.status-archived {
    background: #0F0;
    background: hsl( 108, 100%, 50%);
}

.status-inanalysis {
    background: #0FF;
    background: hsl( 180, 100%, 50%);
}

.status-closedown {
    background: #08F;
    background: hsl( 216, 100%, 50%);
}

.navbar-text.text-warning {
    font-size: 3rem;
    font-weight: bold;
    text-align: left;
    flex: 1;
}

/* Remove underlining from links */
.container a {
    text-decoration: none;
}

/* Ensure links in breadcrumbs don't have underlines */
.breadcrumb-item a {
    text-decoration: none;
}

/* Keep buttons and links with button styling from being affected by hover effects */
.btn, .btn-sm, .btn-primary, .btn-danger, .btn-success, .btn-secondary, .btn-info {
    text-decoration: none !important;
}

    .btn:hover, .btn-sm:hover, .btn-primary:hover, .btn-danger:hover, .btn-success:hover, .btn-secondary:hover, .btn-info:hover {
        text-decoration: none !important;
    }

/* Remove underlines from all links on the home page */
.home-section a {
    text-decoration: none !important;
}

    .home-section a:hover {
        text-decoration: none !important;
    }

.alert a.alert-link {
    text-decoration: none !important;
}
