:root {
    --primary-color: #17d6cf;
    --secondary-color: #b6d442;
    --sidebar-color: #0D0A2E;

    --today-color: rgba(255, 193, 7, 0.2); 
    --week-color: #f0faff; 
    --weekend-color: #fae0e0;
    --header-bg: #e9ecef;
    --sticky-bg: #f8f9fa;
}

@font-face {
    font-family: "Poppins";
    src: url(../fonts/Poppins/Poppins-Regular.ttf);
}

body {
    font-family: Poppins, sans-serif;
    background-color: #f4f6f9;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.mb-3 {
    position: relative;
}

.sidebar {
    height: 100vh;
    background-color: var(--sidebar-color);
    color: #fff;
    position: fixed;
    width: 250px;
    transition: all 0.3s;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar .nav-link {
    color: #94a3b8;
    padding: 10px 13px;
    border-radius: 5px;
    margin: 5px 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active,
.submenu .nav-link.active {
    background-color: color-mix(in srgb, var(--sidebar-color) 90%, white);
    color: #fff;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar .nav-link .toggle-icon {
    margin-left: auto;
    transition: transform 0.3s;
}

.sidebar .nav-link.active .toggle-icon {
    transform: rotate(180deg);
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar-header {
    background-color: color-mix(in srgb, var(--sidebar-color) 10%, white);
}

.sidebar.collapsed .sidebar-header h4 {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    text-align: center;
}

.sidebar.collapsed .submenu {
    display: none;
}

.sidebar-toggle-btn {
    cursor: pointer;
    color: var(--primary-color);
    background: none;
    border: none;
    font-size: 1.6rem;
    padding: 0 10px;
}

.sidebar-close-btn {
    cursor: pointer;
    color: #fff;
    background: none;
    border: none;
    font-size: 1.2rem;
    padding: 10px;
    display: none;
}

.submenu {
    display: none;
    list-style: none;
    margin-left: 20px;
    padding: 5px 5px;
    border-left: 1px solid var(--primary-color);
}

.submenu.expanded {
    display: block;
}

.submenu .nav-link {
    padding: 8px 10px;
    font-size: 0.9rem;
}

.submenu .nav-link i {
    font-size: 0.8rem;
}

.main-content {
    margin-left: 250px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.main-content.collapsed {
    margin-left: 60px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
        z-index: 3;
    }

    .sidebar.active {
        width: 90%;
        overflow-y: auto;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggler {
        display: block !important;
        font-size: 20px;
    }

    .sidebar-toggle-btn {
        display: none;
    }

    .sidebar-close-btn {
        display: inline-block;
    }

    .action-btn {
        padding: 1px 5px;
        font-size: 0.7rem;
    }

    .action-btn i {
        font-size: 0.7rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    .breadcrumb-item i {
        font-size: 0.8rem;
    }

    .form-control,
    .form-select {
        font-size: 0.85rem;
    }
}


.navbar {
    background-color: #FCFCFC;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.breadcrumb-container {
    padding: 15px;
}

.breadcrumb {
    font-size: 0.9rem;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item i {
    margin-right: 5px;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item+.breadcrumb-item::before {
    font-family: "Font Awesome 7 Free";
    content: "\f105";
    font-weight: 900;
    color: #6c757d;
    margin: 0 5px;
}

.content {
    padding: 5px 20px;
}


.nav-tabs {
    background: #fff;
    padding-top: 10px;
}

.nav-tabs .nav-link {
    cursor: pointer;
    margin: 0;
    padding: 5px 8px;
    font-size: 14px;
}

.tabs {
    display: none;
    margin-top: 15px;
}

.tabs.active {
    display: block;
}

.dashboard {
    margin: auto 0;
    padding: 0;
    margin-bottom: 10px;
}

.summary {
    padding: 0.6rem;
    border-radius: 0.5rem;
    position: relative;
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(5, 27, 44, 0.12) 0px 1px 8px -1px, rgba(5, 27, 44, 0.08) 0px 3px 4px -1px;
    border: medium;
    margin-bottom: 20px;
}

.summary p {
    font-size: 14px !important;
    line-height: 1.5rem !important;
    color: rgb(66, 77, 87) !important;
}

.summary span {
    font-size: 17px;
    line-height: 20px;
    color: rgb(5, 27, 44) !important;
    margin: 0px;
}


.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    margin-bottom: 20px;
}

.table {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.chart-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#chart {
    max-height: 300px;
}


.add-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
    background-image: linear-gradient(to bottom, var(--primary-color), color-mix(in srgb, var(--primary-color) 75%, black));
    color: #fff;
}

.add-btn:hover {
    color: #fff;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 5px;
    margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 5px;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff !important;
}

.table .sorting {
    background: #f6f7f8;
    font-weight: 450;
}

.table td:not(#calendar td) {
    color: rgb(68, 68, 68);
    font-size: 15px !important;
}

.action-btn {
    font-size: 0.75rem;
    padding: 1px 4px;
    margin: 0 2px;
    border-radius: 4px;
    line-height: 1.4;
}

.action-btn i {
    font-size: 0.7rem;
}

.modal-header {
    background: #efeded;
    padding: 7px 15px !important;
}

#deletionModal h4 {
    font-size: 20px;
}

.custom-alert {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1070;
    display: none;
    max-width: 600px;
    border-radius: 10px;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.custom-alert .close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

.custom-alert .message {
    padding-right: 20px;
}

@media (max-width: 768px) {
    .custom-alert {
        max-width: 100%;
        left: 10px;
        right: 10px;
    }
}

#reset {
    display: none;
}

.imgdiv {
    max-width: 200px;
    position: relative;
    margin: auto;
}

.imgdiv .btn {
    position: absolute;
    top: 5px;
    right: 5px;
}

.cropit-preview {
    background-color: #f8f8f8;
    background-size: cover;
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-top: 7px;
    overflow: hidden;
}

.modal-body {
    max-height: 90vh;
    overflow-y: auto;
}

form .btn {
    background: linear-gradient(to right, color-mix(in srgb, var(--primary-color) 65%, black), var(--primary-color));
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

form .btn:hover {
    background: linear-gradient(to right, color-mix(in srgb, var(--primary-color) 45%, black), var(--primary-color));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

label span {
    color: #ff0000;
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
    font-size: 15px !important;
}

.select2-selection__rendered {
    line-height: 35px !important;
}

.select2-container .select2-selection--single {
    height: 38px !important;
}

.select2-selection__arrow {
    height: 37px !important;
}

#drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 15px;
}

.drop-text {
    margin: 0;
    margin-bottom: 15px;
}

#drop-area.highlight {
    border-color: #2196F3;
}

#file-input {
    display: none;
}

.upload-btn {
    border: 1px solid rgba(0, 0, 0, 0.5);
    padding: 7px 10px;
    border-radius: 50%;
    color: #777;
    font-size: 20px;
}

.datetime,
.date {
    padding-left: 35px;
}

.showcalendar {
    position: absolute;
    left: 10px;
    top: 42px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    cursor: pointer;
}


/*******************************************
    Auth Pages
********************************************/
.authdiv {
    background: #fff;
    padding: 30px 30px;
    width: auto;
    max-width: 400px;
    margin: 100px auto;
    border-radius: 8px;
    box-shadow: rgba(9, 37, 64, 0.10) 0px 5px 24px, rgba(9, 37, 64, 0.15) 0px 1px 8px;
}

.authdiv h1 {
    text-align: center;
    padding-bottom: 10px;
    margin-top: 0px;
    font-size: 23px;
    font-weight: bold;
    border-bottom: 1px solid #f1f1f1;
}

.authdiv .form-control {
    padding-left: 35px;
}

.showuser,
.showpadlock {
    position: absolute;
    left: 10px;
    top: 43px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    cursor: pointer;
}

.showpwd {
    position: absolute;
    right: 12px;
    top: 44px;
    color: rgba(0, 0, 0, 0.45);
    font-size: 13px;
    cursor: pointer;
}

.authdiv a {
    font-size: 14px;
}

.authdiv .back {
    margin-top: 10px;
}

.authdiv .nav-link {
    color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.authdiv .nav-item .active {
    background: #f6f7f8 !important;
}


#imageform {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
}

#imageform p {
    font-size: 10px;
}

#imageform p,
#imageform .btn {
    display: none;
}

#imageform .current-pic {
    cursor: pointer;
}

.change-image {
    position: absolute;
    top: 10px;
    left: 170px;
    z-index: 2;
    display: none;
}






.calendar-card {
    border-radius: 12px;
}
.calendar-container {
    max-width: 100%;
    position: relative; 
    overflow: visible; 
}

#scroll-indicator {
    position: sticky;
    top: 0;
    width: 100%; 
    z-index: 1020;
    padding: 8px 15px;
    background-color: #f0f2f5; 
    color: #34495e; 
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    text-align: center; 
}

.header-bar-sticky {
    position: sticky; 
    top: 40px;
    z-index: 1010; 
    display: flex;
    background-color: var(--header-bg);
    border-bottom: 2px solid #dee2e6;
    flex-shrink: 0;
    align-self: flex-start;
    overflow: hidden; 
}
.house-header-cell {
    width: 120px;
    min-width: 120px;
    height: 40px; 
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    font-weight: 650;
    padding: 7px 10px;
    border-right: 2px solid #dee2e6;
    flex-shrink: 0;
    position: relative; 
    z-index: 1011;
    font-size: 12px !important;
}

.date-header-row {
    display: flex;
    transition: transform 0.05s linear; 
}

.calendar-grid-wrapper {
    display: flex; 
    background-color: white;
    border: 1px solid #e9ecef;
    border-top: none; 
    border-radius: 0 0 12px 12px;
}

.fixed-column {
    position: sticky; 
    left: 0; 
    z-index: 1000;
    width: 120px;
    min-width: 120px;
    background-color: var(--sticky-bg); 
    border-right: 2px solid #dee2e6;
    flex-shrink: 0; 
}

.house-row {
    height: 35px;
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding-left: 10px;
    border-bottom: 1px solid #e9ecef;
    background-color: var(--sticky-bg); 
}
.scroll-content {
    overflow-x: scroll;
    flex-grow: 1;
}

.reservation-row-content {
    display: flex;
    position: relative;
    height: 35px; 
    border-bottom: 1px solid #e9ecef;
}

.date-cell {
    width: 40px; 
    min-width: 30px; 
    position: relative;
    box-sizing: content-box; 
    border-right: 1px solid #e9ecef;
}

.header-cell {
    width: 30px; 
    min-width: 30px; 
    height: 40px;
    line-height: 1.1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #dee2e6;
    padding-top: 2px;
    box-sizing: content-box; 
    font-size: 10px; 
}
.day-of-week { font-size: 8px; color: #6c757d; font-weight: 500; }
.day-number { font-size: 11px; font-weight: 700; }

.is-current-week { background-color: var(--week-color); }
.is-today { background-color: var(--today-color); }

.is-weekend {
    background-color: var(--weekend-color); 
}
.is-weekend-header {
    background-color: #f7d4d4 !important; 
}

.reservation-bar {
    position: absolute;
    height: 25px; 
    top: 5px;
    border-radius: 4px;
    font-size: 9px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
    z-index: 3; 
}

.tooltip-inner {
    background-color: #0eb7af !important;
}
.tooltip .tooltip-arrow::before {
   border-bottom-color: #0eb7af !important; 
   border-top-color: #0eb7af !important;
}




.overview .info p{
    margin-top: 5px;
}
.overview .info p span {
    color: #011f44;
}
.overview .item {
    text-align: center;
}
.overview .item i{
    font-size: 35px;
    color: var(--primary-color);
    margin-top: 5px;
}
.overview .item h5 {
    font-size: 18px;
    color: #011f44;
    padding: 10px;
}



.reservation-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e3e3e3;
    background: #fff;
    margin-bottom: 20px;
    transition: 0.2s ease;
}

.reservation-card:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.reservation-header {
    background: #f8f9fa;
    padding: 16px 20px;
    border-bottom: 1px solid #e3e3e3;
}

.reservation-header h5 {
    margin: 0;
    font-weight: 700;
    color: #003366;
}

.reservation-body {
    padding: 20px;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.info-row i {
    font-size: 1.1rem;
    width: 26px;
    margin-right: 10px;
    color: var(--primary-color);
}

.info-row span.label {
    font-size: 0.85rem;
    color: #666;
    width: 110px;
    font-weight: 600;
}

.info-row span.value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.reservation-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e3e3e3;
}

.reservation-footer .btn {
    background: linear-gradient(to right, color-mix(in srgb, var(--primary-color) 65%, black), var(--primary-color));
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}