body {
    background-color: #F2F2F2;
    margin: 0;
    padding: 0;
    padding-top: 80px; /*For Navbar Height*/
}

@media (max-width: 991px) { 
    .navbar-collapse {
        width: 100%;
        background: white; /* Background for mobile dropdown */
        padding: 10px;
        border-top: 1px solid #ddd; /* Optional separator line */
    }

    .navbar-nav {
        width: 100%;
        flex-direction: column; /* Stack nav links vertically */
        align-items: flex-start; /* Align to left side */
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-item .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid #f1f1f1; /* Optional border between links */
    }

    .navbar-nav .nav-item .nav-link.active {
        background-color: #f8f9fa;
        font-weight: bold;
    }

    .navbar-toggler {
        border: none;
        outline: none;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .vl {
        display: none;
    }

    .denim-blue {
        font-size: 13px; /* Smaller size for small screens */
    }
    
    .legend-items {
            flex-direction: column; /* stack vertically on small screens */
            align-items: center; /* center items horizontally */
        }
    }



.header {
    min-height: 100vh;  /* Ensure the header expands the whole screen */
    padding-top: 60px;  /* Account for fixed navbar height */
    background-color: #f8f9fa;
}

.scrollable-container {
    max-height: 200px;
    /* Adjust height as needed */
    overflow-y: auto;
}



.other-header {
    border-radius: 10px;
}

.nav-side-menu {
    background-color: #151E3D;
    height: max-content;
    width: auto;
    padding: 30px;

}

.clientlist {
    display: flexbox;
    flex-wrap: wrap;
    margin-left: auto;
}

.clientlist-small {
    padding-left: 250px;
    padding-right: 250px;
}

.toggle-btn {
    background-color: #0D6EFD;
    color: white;
    border: 1px solid #0D6EFD;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.toggle-btn:hover {
    background-color: white;
    color: #0D6EFD;
    border: 1px solid #0D6EFD;
}

.navbar {
    background-color: #5993c2;
    margin: 10px;
    border-radius: 10px;
    height: 80px;
    width: calc(100% - 20px);
    z-index: 1030;
    box-sizing: border-box; /* Ensure margin/padding don't affect width */
}

.navbar-nav .nav-item .nav-link.active {
    color: #fff !important; 
    background-color: #0D6EFD; 
    border-radius: 20px; 
    padding: 5px 10px;
}

.navbar-nav .nav-item .nav-link {
    color: #fff; 
    font-size: 15px;
    font-weight: bold;
    border-radius: 20px;
    padding: 5px 10px;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #007bff; 
    background-color: rgba(0, 123, 255, 0.1); 
    border-radius: 20px;
    padding: 5px 10px;
}

.navbar-collapse .nav-item .nav-link.active {
    color: #fff !important;
    background-color: #0D6EFD !important; 
    padding: 5px 10px;
}

.content {
    padding: 20px;
    min-height: 100vh;  /* Content will take full height of screen */
    margin-top: 60px;   /* Make space for fixed navbar */
}

.collapse {
    width: 100%;
}

.navbar-brand {
    color: #fff;
    font-size: 1.6rem;
    font-style: italic;
}

.navbar-brand:hover {
    color: #fff;
}

.brand {
    color: #0D6EFD;
    font-size: 1rem;
}

.clientgroup {
    margin: 11px;
    border: none;
}

.card-list {
    width: 25rem;
    height: fit-content;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
}

.card-group {
    width: auto;
    height: fit-content;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;

}

.card-item {
    width: auto;
    height: fit-content;
    background-color: #151E3D;
    padding: 15px;
    border-radius: 5px;
}

.card-item-reverse {
    width: auto;
    height: fit-content;
    background-color: #fff;
    padding: 4px;
    border-radius: 5px;
}

.card-display {
    width: auto;
    height: fit-content;
    padding: 15px;
    border-radius: 5px;
}

.card-details {
    width: 300px;
    height: min-content;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    border: none;
}

.card-details-2 {
    width: 310px;
    height: min-content;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    border: none;
}

.card-details-3 {
    width: 100px;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    border: none;
}

.card-details-4 {
    width: 350px;
    height: min-content;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    border: none;
}

.card-inner {
    background-color: #F2F2F2;
}

.btn-circle {
    border-radius: 10px;
}

.button-style-edit {
    background-color: rgb(101, 206, 110);
    /* Red background */
    color: rgb(101, 206, 110);
    ;
    /* White text */
    border: 2px solid rgb(101, 206, 110);
    ;
    /* Red border */
}

.info {
    background-color: #F6F8FA;
    width: auto;
    padding: 10px 20px;
    border: none;
}

.info .card {
    border-color: #F9F9F9;
}

.text-number {
    border: 1px solid #0D6EFD;
    background-color: #e3efff;
    border-radius: 20px;
    padding: 2px 10px;
    width: fit-content;
}

.text-birthday {
    border: 1px solid #198654;
    background-color: #e7fff4;
    border-radius: 20px;
    padding: 2px 10px;
    width: fit-content;
}

.text-username {
    border: 1px solid #ebe300;
    background-color: #fffdca;
    border-radius: 20px;
    padding: 2px 10px;
    width: fit-content;
}

.text-primary {
    text-decoration: none;
}

/* OFFCANVAS - View Service Details */
.offcanvas {
    z-index: 1060 !important; /* Higher than the navbar */
}

.offcanvas-title {
    color: #0D6EFD;
    font-style: italic;
}

.offcanvas-button {
    color: #0D6EFD;
}

/* Scoped modal and backdrop for zoomPdfModal only */
#zoomPdfModal {
    z-index: 1070 !important;
}

#zoomPdfModal ~ .modal-backdrop.show {
    z-index: 1069 !important;
}






.nav-link {
    color: #fff;
    border-radius: 20px;
    font-size: 15px;
    font-style: bold;
}

.nav-username {
    font-size: 15px;
    font-style: bold;
}

.nav-item {
    border-radius: 50px;
}

.view-details {
    color: #fff;
    background: linear-gradient(45deg, #253FD6, #4288D0);
    border: none;
}

.view-details:hover {
    color: #fff;
    background: linear-gradient(45deg, #4288D0, #253FD6);
    border: none;
}

.view-details-button {
    height: 50px;
    width: 50px;
}

.view-details-red {
    color: #fff;
    background: linear-gradient(45deg, #d62525, #d05742);
    border: none;
}

.view-details-red:hover {
    color: #fff;
    background: linear-gradient(45deg, #d05742, #d62525);
    border: none;
}

.view-only {
    color: #fff;
    background: linear-gradient(45deg, #253FD6, #4288D0);
    border: none;
}

.main-logo {
    color: linear-gradient(45deg, #253FD6, #4288D0);
}

.btn-menu {
    color: #fff;
    background-color: #2844ab;
}

.delete-details {
    color: #fff;
    background-color: #c82525;
}

.edit-details {
    color: #ffffff;
    background-color: #71c251;
}


.delete-details:hover {
    color: #151E3D;
    background-color: #ff8080;
}

.edit-details:hover {
    color: #151E3D;
    background-color: #a9db95;
}

.count-display {
    background-color: #151E3D;
    color: #fff;
}

.count {
    font-size: 60px;
}

.count-2 {
    font-size: 40px;
}

.no-underline {
    text-decoration: none;
}

/* colors */

.grey {
    color: #5d636a;
}

.dark-grey {
    color: #343A40;
}

.blue {
    color: #0D6EFD;
}

.denim-blue {
    color: #151E3D;
}

.skyblue {
    color: #0EBEE2;
}

.purple {
    color: #960084;
}

.green {
    color: #198654;
}

.white {
    color: #fff;
}

.red {
    color: #DC3545;
}

/* Background */

.bg-grey {
    background-color: #21584d;
}

.bg-denim-blue {
    background-color: #151E3D;
}

.bg-gradient-blue {
    background: linear-gradient(45deg, #1F74CA, #253FD6, #4288D0, #3CAEC9);
    border: none;
}

/* Border Color */

.border-color {
    border-color: #0D6EFD;
}

/* Side Bar */

.sidebar-inside {
    width: 250px;
    height: 100vh;
    position: fixed;
    background-color: #fff;
}

ul.nav.nav-pills.me-auto.mb-2.mb-lg-0.flex-row .nav-link {
    border-radius: 40px;
}

.margin-1 {
    margin: 20px;
}


/* Nav Bar Hover*/
.nav-link:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 0.375rem;
}

.offcanvas-start {
    margin: 10px;
    border-radius: 10px;
}

.navbar-padding {
    padding-left: 36px;
}


/* Dashboard Card Hover effect */

.card .card-animation .backgroundEffect {
    bottom: 0;
    height: 0px;
    width: 100%
}

.card-animation:hover {

    transform: scale(1.020);
    box-shadow: rgba(0, 0, 0, 0) 0px 5px 10px
}

.card-animation:hover .backgroundEffect {
    bottom: 0;
    height: 320px;
    width: 100%;
    position: absolute;
    z-index: -1;

}

.vl {
    border-left: 3px solid #0D6EFD;
    height: auto;
}

.hr {
    color: #0D6EFD;
}

/* Forms*/

.form-bg-color {
    background: linear-gradient(to bottom,
            #d4e5fc 0%,
            #ffffff 30%,
            #ffffff 50%,
            #ffffff 70%,
            #ffffff 100%
        );
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

td{
    max-width: 200px;
}


/* EDIT PROFILE SECTION GRADIENT */
.gradient-custom {
    background: -webkit-linear-gradient(to right bottom, rgb(41, 128, 228), #82cdff);
    background: linear-gradient(to right bottom, rgb(129, 200, 233), #2070e7);
  }

.login button{
    border-bottom-width: 0px;
}


/* TAB MODAL COLORS */
.bg-gradient-blue {
    background: linear-gradient(to top, #2070e7, #82cdff); /* Dark blue to light blue gradient */
  }



.map-height{
    height: 400px;
}

.hover-babyblue {
    color: #0d6efd; /* Default Bootstrap primary blue */
    transition: color 0.3s ease-in-out; /* Smooth hover effect */
}

.hover-babyblue:hover {
    color: #90e9ff; /* Green color on hover */
    cursor: pointer;
    text-decoration: underline; /* Optional: Adds underline to emphasize the link */
}

#error-container {
    position: sticky;
    bottom: 20px;  /* Ensures it starts at the bottom */
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 50px; /* Ensures it doesn't collapse before scrolling */
}

#error-container .alert {
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* PRODUCT LIST TABLE TEXT CENTER */
#productList th {
    text-align: center;
    vertical-align: middle;
}

#productList td {
    text-align: center;
    vertical-align: middle;
}


/* NAVBAR TRANSITION ON SCROLL SECTION */
/* MAIN NAVBAR */
#mainNavbar {
    z-index: 1050; /* Higher than #secondaryNavbar */
}


.transition-navbar,
.other-header {
    transition: background 0.4s ease, box-shadow 0.4s ease;
    background: white !important; /* Solid white by default */
    box-shadow: none;
}

.transition-navbar.scrolled,
.other-header.scrolled {
    background: linear-gradient(90deg, rgba(230, 248, 255, 0.616), rgba(114, 201, 255, 0.404)) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

/* SECONDARY NAVBAR */
#secondaryNavbar {
    position: sticky;
    top: 100px; /* Adjust based on the height of the main navbar */
    z-index: 1040; /* Should be below or equal to the main navbar */
}

.other-header {
    transition: background-color 0.3s ease;
}


.scrolled {
    backdrop-filter: blur(8px);
    background: linear-gradient(0deg, rgba(230, 248, 255, 0.616), rgba(114, 201, 255, 0.404)) !important;
}

/* CALENDAR SECTION */

.fc-event {
    font-size: 1rem; /* or 14px, 16px, etc. */
    font-weight: 500; /* optional: make it bolder */
    
}

.fc-daygrid-day-frame {
    min-height: 90px; /* Adjust to preferred size */
}


.fc-event:hover {
    opacity: 0.85;
 }

/* CALENDAR LEGEND CSS */

.legend-wrapper {
    background-color: #ffffff;
    border: 1px solid #006eff;
    border-radius: 10px;
    padding: 1rem;
}
.legend-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

/* Legend Colors */
.text-default {
    color: #a1a09f;
}

.text-tentative {
    color: #f2c11d;
}

.text-final {
    color: #fc1e1e;
}

.text-pending {
    color: #2f82ff; 
}

/* BOOTSTRAP SPINNER */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1055;
    background-color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

.loading-overlay .loading-text {
    margin-top: 1rem;
    font-weight: 600;
    color: #0d6efd; /* Bootstrap primary */
}




/* TOM SELECT VALIDATION COLOR */
.ts-control.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* SUN BUTTON */
.sun-icon {
    color: yellow !important;
}


/* TABLE SECTION */
.ui.celled.table thead th {
    background-color: #f4faff;
}


/* CALENDAR BADGE */
.resolved-badge {
  display: none;
  font-size: 0.85rem; /* Adjust size as needed */
  padding: 0.4em 0.6em; /* Adjust spacing inside the badge */
  border-radius: 0.4rem; /* Optional: makes it more pill-like */
}


/* TOOLTIP Icon size for TABLE sections */
h1 > label > i {
    font-size: 1rem;
    vertical-align: middle;
    cursor: pointer;
}

/* TUTORIAL INFO BUTTON POSITION */
#showTutorialBtn {
     position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    width: auto;
    height: auto;
}


/* ADD SERVICE MODAL FOR MANUAL DUPICATION VALIDATION */
.is-invalid {
    border-color: #dc3545;
}

/* FIGCAPTION SECTION */
figcaption {
  text-align: center;
}
