html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh !important;
    display: flex;
    flex-direction: column;
}

/* Main page content expands to fill the available space */
#body_container {
    flex: 1 0 auto;
    width: 100%;
}

/* Footer stays at the bottom on short pages */
.site-footer {
    margin-top: auto !important;
    width: 100%;
    flex-shrink: 0;
}


/*topbar designs start*/
.topbar-wrapper {
    width: 100%;
    color: #fff;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-container {
    width: 100%;
    padding: 2px 28px 1px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-session {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    padding: 2px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    white-space: nowrap;
}

.session-icon {
    color: #fbbf24;
}

#logout_time {
    color: #fde047;
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-btn-link {
    color: #fff;
    text-decoration: none;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.topbar-btn-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.topbar-divider {
    width: 1px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.25);
    display: inline-block;
    flex-shrink: 0;
}

.topbar-themes {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.theme-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.theme-circle:hover {
    transform: scale(1.15);
    border-color: #ffffff;
}

.check-indicator {
    display: none;
    font-size: 8px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1;
}

.theme-circle.active {
    transform: scale(1.18);
    border-color: #ffffff;
    box-shadow: 0 0 0 2px #facc15, 0 2px 5px rgba(0, 0, 0, 0.4);
}

.theme-circle.active .check-indicator {
    display: block;
}

.blindnessskyblue { background-color: #0074D0; }
.blindnessbrown   { background-color: #910101; }
.blindnessblue    { background-color: #0E526E; }
.blindnessmerron  { background-color: #2F1112; }
.blindnessgreen   { background-color: #05430A; }

.topbar-fontsize {
    display: inline-flex;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.font-btn {
    background: transparent;
    border: none;
    color: #f1f5f9;
    padding: 2px 9px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.font-btn:last-child {
    border-right: none;
}

.font-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 1024px) {
    .topbar-container {
        padding: 2px 16px;
    }
    .topbar-right {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .topbar-container {
        padding: 5px 8px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }

    .topbar-left {
        width: 100%;
        justify-content: center;
    }

    .topbar-session {
        padding: 2px 10px;
        font-size: 11px;
    }

    .topbar-right {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .topbar-btn-link span {
        display: none;
    }

    .topbar-btn-link {
        padding: 2px 5px;
        font-size: 13px;
    }

    .topbar-divider {
        display: none;
    }

    .topbar-themes {
        gap: 4px;
    }

    .theme-circle {
        width: 13px;
        height: 13px;
    }

    .font-btn {
        padding: 1px 6px;
        font-size: 11px;
    }

    .lang-btn {
        padding: 2px 7px;
        font-size: 11px;
        gap: 4px;
    }
}

@media (max-width: 360px) {
    .topbar-right {
        gap: 4px;
    }

    .font-btn {
        padding: 1px 4px;
    }

    .lang-btn {
        padding: 2px 5px;
        font-size: 10.5px;
    }
}

.topbar-language u,
.topbar-language u.lang-btn {
    text-decoration: none !important;
}

.topbar-themes .theme-circle .check-indicator {
    display: none !important;
}

.topbar-themes .theme-circle.active .check-indicator {
    display: block !important;
}
/*topbar designs end*/

/*footer designs start*/
.site-footer {
    background: #0f1c29;
    color: #fff;
    font-size: 13px;
    padding-bottom: 8px;
    flex-shrink: 0;
}

.footer-linkbar {
    background: #0b1520;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
}

.footer-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #d1e5f8;
    text-decoration: none;
    font-size: 12.5px;
    transition: color 0.2s ease, transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.footer-link label {
    cursor: pointer;
    margin-bottom: 0;
}

.footer-link:hover {
    color: #fff;
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

.nav-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
}

.chat-link i {
    color: #38bdf8;
}

.footer-main-grid {
    padding: 10px 14px;
    gap: 28px;
    max-width: 1440px;
}

.footer-col-left,
.footer-col-right {
    flex: 1 1 0%;
}

.footer-col-right {
    justify-content: flex-end;
}

.footer-meta-text {
    gap: 4px;
    line-height: 1.45;
    color: #e2e8f0;
}

.meta-label {
    color: #cbd5e1;
}

.meta-value {
    color: #fff;
    font-weight: 500;
}

.visitor-badge {
    gap: 8px;
/*    padding: 3px 4px 3px 12px;*/
/*    border-radius: 50px;*/
/*    background: rgba(14, 165, 233, 0.12);*/
/*    border: 1px solid rgba(56, 189, 248, 0.3);*/
/*    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);*/
}

.visitor-icon {
    position: relative;
    color: #38bdf8;
    font-size: 13px;
}

.visitor-icon::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

.visitor-badge .meta-label {
/*    color: #94a3b8;*/
    font-size: 16px;
    /*font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;*/
}

.visitor-badge .meta-value {
    padding: 2px 12px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    font-weight: 700;
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
}

.footer-logobar {
    gap: 18px;
    background: rgba(255, 255, 255, 0.04);
    padding: 5px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.logo-divider {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
}

.logo-link img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), filter 0.25s ease;
}

.logo-link img:hover {
    transform: scale(1.06) translateY(-2px);
    filter: drop-shadow(0 6px 12px rgba(56, 189, 248, 0.35));
}

.footer-credits {
    text-align: right;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
}

.credit-link {
    color: #8ec5ff;
    text-decoration: none;
}

.credit-link:hover {
    color: #fff;
    text-decoration: underline;
}

.standalone-back-to-top {
    position: fixed;
    right: 20px;
    bottom: 108px;
    z-index: 9999;
    width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 50px;
    background: #182838;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    outline: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.25s ease,
                transform 0.25s ease,
                opacity 0.25s ease,
                visibility 0.25s ease;
}

.standalone-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.standalone-back-to-top i {
    font-size: 13px;
}

.standalone-back-to-top .scroll-label {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
    transition: max-width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 0.25s ease,
                margin-left 0.25s ease;
}

.standalone-back-to-top:hover {
    width: 95px;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 16px 3px rgba(24, 40, 56, 0.75), 0 4px 14px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.standalone-back-to-top:hover .scroll-label {
    max-width: 55px;
    opacity: 1;
    margin-left: 6px;
}

.standalone-back-to-top:hover i {
    transform: translateY(-1px);
}

.sidebarfeedback {
    position: fixed;
    left: -40px;
    bottom: 240px;
    transform: rotate(-90deg);
    background-color: #0074D0;
    color: #fff !important;
    padding: 5px 14px;
    border-radius: 6px 6px 0 0;
    text-decoration: none !important;
    z-index: 998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    transition: all 0.2s ease;
}

.sidebarfeedback label {
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.sidebarfeedback:hover {
    background-color: #0c5a96;
    padding-bottom: 7px;
}

.timing-drawer-panel {
    display: none;
    position: fixed;
    left: 24px;
    bottom: 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
    z-index: 999;
}

.timing-drawer-panel.feedback_open {
    display: block;
    animation: drawerPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawerPop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-drawer-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    transition: all 0.15s ease;
}

.close-drawer-btn:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.drawer-header-area label {
    cursor: pointer;
    color: #0e526e;
}

.drawer-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-right: 6px;
    text-transform: uppercase;
}

.drawer-subheading {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 6px;
}

.timing-table-wrapper {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.timing-styled-table thead tr th {
    background: #0284c7;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 10px;
    border: none;
}

.timing-styled-table .break-head-row th {
    background: #f1f5f9;
    color: #475569;
}

.timing-styled-table .break-time-row td {
    padding: 6px;
    background: #fafafa;
}

.timing-styled-table .remarks-box-row td {
    background: #f0fdf4;
    color: #166534;
    font-size: 12px;
    padding: 8px 12px;
    border-top: 1px solid #dcfce7;
}

.slot-flex {
    padding: 2px 4px;
}

.badge-session {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-morning {
    background: #fef3c7;
    color: #92400e;
}

.badge-evening {
    background: #ffedd5;
    color: #9a3412;
}

.slot-hours {
    font-weight: 600;
    color: #1e293b;
    font-size: 12.5px;
}

.break-pill {
    display: inline-block;
    background: #fff;
    border: 1px dashed #cbd5e1;
    color: #475569;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .footer-main-grid {
        flex-direction: column;
        text-align: center;
        gap: 22px;
    }

    .footer-col-left,
    .footer-col-center,
    .footer-col-right {
        width: 100%;
        justify-content: center;
    }

    .footer-meta-text {
        text-align: center;
    }

    .footer-credits {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .site-footer {
        padding-bottom: 24px;
    }

    .footer-linkbar {
        padding: 8px 10px;
    }

    .footer-nav {
        border-radius: 12px;
        padding: 6px 10px;
        gap: 4px 6px;
    }

    .footer-link,
    .nav-sep {
        font-size: 11.5px;
    }

    .footer-main-grid {
        gap: 18px;
    }

    .footer-meta-text {
        font-size: 12px;
    }

    .footer-credits {
        font-size: 12px;
        line-height: 1.5;
    }

    .footer-logobar {
        padding: 5px 18px;
        gap: 14px;
    }

    .logo-divider {
        height: 32px;
    }

    .logo-link img {
        height: 36px;
        max-width: 130px;
    }

    .standalone-back-to-top {
        right: 14px;
        bottom: 14px;
        width: 36px;
        height: 36px;
    }
}

.footer-meta-update {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.meta-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #e0f2fe;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.meta-date-badge:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.5);
    color: #ffffff;
}

.meta-date-badge i {
    color: #38bdf8;
    font-size: 12px;
}
/*footer designs end*/