/* Google Fonts Import Link */
/*@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');*/


/*------------------------ NEW ------------------*/


html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}

.footer {
    background-color: white;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    bottom: 0;
    width: 100%;
    height: 70px;
    flex-wrap: wrap;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;

    flex-shrink: 0;
    position: sticky;
    z-index: 1000;
}

.footer .left {
    position: absolute;
    left: 16px;
}

.footer .center {
    text-align: center;
    min-width: 0;
}

.footer .center p {
    margin-bottom: 0 !important;
}

.sidebar {
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
    border-right: 1px solid #E5E7EB;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

.sidebar.collapsed {
    width: 72px;
}

.content {
    margin-left: 260px;
    padding: 15px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    display: flex;
    flex-direction: column;
    height: 100%;
}

.content.expanded {
    margin-left: 72px;
}

.container-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;

    padding: 20px;
}

/* Nav link hover handled in new-nav-bar.html */
.tab:hover,
.collapsible:hover {
    background-color: var(--selected-item-color) !important;
    color: white !important;
}

.sub-tab:hover {
    background-color: #0d6efd !important;
    color: white !important;
}

.sub-tab.active {
    background-color: #0d6efd !important;
    color: white !important;
}

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

/* User info styles now handled in new-nav-bar.html */

#toggleSidebar {
    position: fixed;
    top: 15px;
    left: 280px;
    z-index: 1001;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}

.sidebar-toggle.collapsed {
    left: 92px !important;
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        border-right: none;
    }

    .sidebar.collapsed {
        width: 0px !important;
    }

    .sidebar.mobile-open {
        width: 280px;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .content {
        margin-left: 0 !important;
    }

    .content.expanded {
        margin-left: 0 !important;
    }

    .sidebar-toggle.collapsed {
        left: 30px !important;
    }

    .sidebar-toggle {
        left: 30px !important;
    }

    .footer {
        display: none !important;
    }

    .filters-div .col-md-4,
    .filters-div .col-md-6 {
        margin-bottom: 5px !important;
    }
}

@media screen and (max-width: 1200px) {
    /* Remove col-md-6 class properties */
    .col-md-6,
    .col-md-10,
    .col-md-2 {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        display: block !important;
    }

    /* Ensure container maintains proper spacing */
    .row {
        margin-left: -15px !important;
        margin-right: -15px !important;
        display: block !important;
    }
}

.sidebar a:not(.active) {
    color: black !important;
}

.main-content {
    overflow: hidden;
    max-width: 100%;
    margin-left: 0px !important;
    margin-bottom: -10px !important;
}

.form-control {
    border: 1px solid lightgrey;

}

.table {
    border-radius: 15px;
    margin-top: 3px;
    margin-right: 3px;
    background-color: white;
}

.active {
    background-color: var(--selected-item-color) !important;
    color: white !important;
}

#replaceable-content,
#column-error-popup,
#id_entries_div {
    background-color: white;
    padding: 1px 20px 20px 20px;
    border-radius: 15px;
    margin-top: 30px;
}

#id_page_title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-div {
    flex-grow: 1; /* Allows div2 to take up the remaining space */
    padding: 20px; /* Example padding */
    overflow-y: auto !important;

    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: 60px;
}

/* Handled in new-nav-bar.html */

a {
    color: black !important;
}

.tab-container a {
    color: transparent !important;
}

.active > .page-link, .page-link.active {
    background-color: var(--selected-item-color) !important;
    border-color: var(--selected-item-color) !important;
    color: white !important;
}

.active-border {
    border-color: var(--selected-item-color) !important;
    color: white !important;
}

.center-content {
    width: fit-content;
    margin: auto;
    text-align: center;
}

:root {
    --table-cell-color-red: red;
    --table-text-color-white: #fff;
    --table-text-color-green: green;
    --selected-item-color: #2E6F40;
    --sub-tabs-color: #e0e0e0;
    --table-text-color-red: red;

    /* New Sidebar Colors */
    --new-sidebar-width: 220px;
    --new-sidebar-collapsed-width: 72px;
    --new-sidebar-bg: #FFFFFF;
    --new-sidebar-border: #E5E7EB;
    --new-sidebar-text: #374151;
    --new-sidebar-text-muted: #9CA3AF;
    --new-sidebar-hover-bg: #F3F4F6;
    --new-sidebar-active-text: #FFFFFF;

    /* New Brand Colors - Green Theme */
    --new-brand-primary: #059669;
    --new-brand-primary-light: #10B981;
    --new-brand-primary-lighter: #34D399;
    --new-brand-gradient: linear-gradient(135deg, #059669 0%, #10B981 100%);
    --new-brand-gradient-full: linear-gradient(135deg, #059669 0%, #10B981 50%, #34D399 100%);

    /* New Neutral Colors */
    --new-neutral-0: #FFFFFF;
    --new-neutral-50: #F9FAFB;
    --new-neutral-100: #F3F4F6;
    --new-neutral-200: #E5E7EB;
    --new-neutral-300: #D1D5DB;
    --new-neutral-400: #9CA3AF;
    --new-neutral-500: #6B7280;
    --new-neutral-600: #4B5563;
    --new-neutral-700: #374151;
    --new-neutral-800: #1F2937;
    --new-neutral-900: #111827;

    /* New Status Colors */
    --new-status-success: #059669;
    --new-status-success-bg: #D1FAE5;
    --new-status-success-border: #A7F3D0;
    --new-status-danger: #DC2626;
    --new-status-danger-bg: #FEF2F2;
    --new-status-danger-border: #FECACA;
    --new-status-warning: #D97706;
    --new-status-warning-bg: #FFFBEB;

    /* New User Section Colors */
    --new-user-avatar-bg: linear-gradient(135deg, #059669 0%, #10B981 100%);
    --new-logout-bg: #FEF2F2;
    --new-logout-border: #FECACA;
    --new-logout-text: #DC2626;
    --new-logout-hover-bg: #FEE2E2;
    --new-logout-hover-border: #FCA5A5;
}

/*<---------------new------------->*/
@media (max-width: 576px) {
    .sidebar {
        width: 0;
    }

    .sidebar.mobile-open {
        width: 85%;
        max-width: 300px;
    }

    .sidebar-toggle {
        left: 20px !important;
    }

    .content.expanded .content-div {
        display: block !important;
    }

    .content .content-div {
        display: block !important;
    }

    #toggleSidebar {
        left: 20px !important;
    }

    .sidebar-toggle.collapsed #id_page_title {
        display: contents !important;
    }

    .sidebar-toggle #id_page_title {
        display: contents !important;
    }

    .footer {
        padding: 5px;
        height: 80px !important;
        flex-direction: column;
        text-align: center;
    }

    .footer .left {
        position: static;
        margin-bottom: 5px;
    }

    .content {
        padding: 10px;
        margin-left: 0 !important;
    }

    html {
        font-size: 90%;
    }

    .nav-link i {
        margin-right: 5px;
    }

    .logout-btn {
        padding: 8px 10px;
    }

    .sidebar-toggle.collapse {
        left: 0px !important;
    }
}

@media (max-width: 800px) {
    .icon-column {
        display: none !important;
    }

    .login-div {
        width: 90% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .login-div .form-group {
        margin-bottom: 0 !important;
    }

    #id_entries_div {
        overflow-x: auto !important;
    }

    .entries-listing-div {
        overflow-x: auto !important;
    }

    .tele-ins-check {
        overflow-x: auto !important;
    }

    .tele_sent_div {
        overflow-x: auto !important;
    }

    .tele_reporting_div {
        overflow-x: auto !important;
    }

}

@media (max-height: 600px) {
    .login-container {
        /*height: calc(100vh - 80px) !important;*/
    }
}

@media (max-width: 1210px) {
    #replaceable-content {
        overflow-x: auto;
        margin-bottom: 15px !important;
    }
}

@media (max-width: 455px) {
    #inventory-content {
        overflow-x: auto !important;
        margin-bottom: 10px !important;
    }

    .inventory-update-btn {
        margin-top: 5px !important;
    }
}

@media (max-width: 780px) {
    #id_leaderboard_div {
        overflow-x: auto !important;
    }
}


@media (max-width: 998px) {
    .doc_button {
        margin-bottom: 10px !important;
        display: flex;
        flex-wrap: wrap !important;
    }
}

@media (max-width: 565px) {
    .tab-container.sub-navbar {
        display: inline-block;

    }
}

@media (max-width: 670px) {
    table .td,
    table .th {
        padding: 5px !important;
    }
}

/* Sidebar nav-link styling handled in new-nav-bar.html */

.form-table td {
    text-wrap: wrap !important;
}

input[type="date"] {
    -webkit-appearance: none; /* Disables default styling on WebKit browsers */
    appearance: none; /* Disables default styling on other browsers */
    position: relative;
    padding-right: 30px; /* Ensure space for the calendar icon */
    font-family: inherit;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    cursor: pointer;
    opacity: 0.7; /* Adjust the icon visibility */
}

input[type="date"]::-webkit-clear-button {
    display: none;
}

.highlight td {
    background-color: transparent !important;
}

.highlight-green {
    background-color: lightgreen !important;
}

.highlight-pink {
    background-color: lightpink !important;
}

.highlight-yellow {
    background-color: lightyellow !important;
}

.text-red {
    color: red !important;
}

.text-green {
    color: green !important;
}

.td-True {
    background: var(--table-text-color-green) !important;
    color: var(--table-text-color-white);
}

.td-Yes {
    background: var(--table-text-color-green) !important;
    color: var(--table-text-color-white) !important;
}

.td-False {
    background: var(--table-cell-color-red) !important;
    color: var(--table-text-color-white) !important;
}

.td-No {
    background: var(--table-cell-color-red) !important;
    color: var(--table-text-color-white) !important;
}

@keyframes flash-green {
    0% {
        color: var(--table-text-color-green);
    }
    50% {
        color: transparent;
    }
    100% {
        color: var(--table-text-color-green);
    }
}

.flashing-ready-button {
    animation: flash-green 0.5s infinite;
    font-weight: bold;
}

.flashing-button {
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: var(--table-text-color-green) !important;
    color: white;
    animation: flash-button 1s infinite;
}

@keyframes flash-button {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

.flashing-button:hover {
    background-color: var(--table-text-color-green);
}

.light-purple-color-btn {
    background: #CBC3E3 !important;
    border: #CBC3E3 !important;
}

.text-grey {
    color: grey !important;
}

.flashing-navbar-button-red {
    cursor: pointer;
    border: none;
    color: var(--table-text-color-red) !important;
    background-color: white;
    animation: flash-button 1s infinite;
    font-weight: bold;
}

@keyframes flash-button {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}