/* Teach Hub glassmorphism theme. Loaded last from includes/header.php. */
:root {
    --glass-bg: rgba(255, 255, 255, 0.22);
    --glass-bg-strong: rgba(255, 255, 255, 0.42);
    --glass-bg-soft: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-border-dark: rgba(255, 255, 255, 0.32);
    --glass-shadow: 0 22px 52px rgba(36, 49, 58, 0.16);
    --glass-shadow-soft: 0 12px 30px rgba(36, 49, 58, 0.1);
    --glass-blur: blur(24px) saturate(115%);
}

body {
    background-color: #7c736f !important;
    background-image: url('../img/teach_hub-background.jpg') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

body::before {
    background: transparent !important;
    content: '';
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

body#page-top,
body#page-top #wrapper,
body#page-top #content-wrapper,
body#page-top #content-wrapper .container-fluid,
body#page-top #content {
    background-color: transparent !important;
}

body#page-top {
    background-color: #7c736f !important;
    background-image: url('../img/teach_hub-background.jpg') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

body#page-top #content-wrapper {
    background-color: rgba(255, 255, 255, 0.08) !important;
    background-image: url('../img/teach_hub-background.jpg') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

body#page-top #wrapper,
body#page-top #content {
    background: transparent !important;
}

body#page-top #content-wrapper .container-fluid {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

body#page-top #content > .topbar,
.navbar-public,
.site-footer,
.card,
.card-modern,
.card-body,
.content-card,
.stat-card,
.info-card,
.modal-content,
.dropdown-menu,
.alert,
.list-group,
.accordion-item,
.profile-header,
.auth-card,
.dashboard-card,
.glass-panel {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow-soft) !important;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}

body#page-top #content > .topbar {
    border-radius: 20px !important;
    margin-bottom: 1.25rem !important;
}

.card,
.card-modern,
.content-card,
.stat-card,
.info-card,
.modal-content,
.dropdown-menu,
.alert,
.list-group,
.accordion-item,
.profile-header,
.auth-card,
.dashboard-card,
.glass-panel {
    border-radius: 18px !important;
}

.card:hover,
.card-modern:hover,
.content-card:hover,
.stat-card:hover,
.info-card:hover,
.dashboard-card:hover,
.glass-panel:hover {
    box-shadow: var(--glass-shadow) !important;
}

body#page-top .card,
body#page-top .card-modern,
body#page-top .dashboard-card,
body#page-top .dashboard-header,
body#page-top .stat-card,
body#page-top .quick-actions,
body[data-role='student'] .card,
body[data-role='student'] .card-modern,
body[data-role='teacher'] .card,
body[data-role='teacher'] .card-modern {
    background: rgba(255, 255, 255, 0.14) !important;
    background-image: none !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow-soft) !important;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
}

body#page-top .dashboard-header::after,
body#page-top .card::after,
body#page-top .stat-card::after,
body#page-top .dashboard-card::after,
body#page-top .quick-actions::after {
    background: none !important;
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}

body#page-top .card-header,
body#page-top .card-modern .card-header,
body[data-role='student'] .card-header,
body[data-role='teacher'] .card-header {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: var(--glass-border-dark) !important;
}

.card-header,
.card-modern .card-header,
.card-modern .card-body,
.content-card .card-header,
.stat-card .card-header,
.card-footer,
.modal-header,
.modal-footer,
.list-group-item,
.accordion-button,
.accordion-body {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: var(--glass-border-dark) !important;
}

.form-control,
.form-select,
.input-group-text,
.custom-select,
textarea,
select,
input:not([type='checkbox']):not([type='radio']):not([type='file']) {
    background: rgba(255, 255, 255, 0.62) !important;
    border: 1px solid rgba(148, 163, 184, 0.34) !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.34) !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
select:focus,
input:not([type='checkbox']):not([type='radio']):not([type='file']):focus {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(37, 99, 235, 0.48) !important;
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.12) !important;
}

.btn {
    border-radius: 12px !important;
    box-shadow: 0 6px 15px rgba(44, 62, 80, 0.1);
}

.btn-light,
.btn-outline-secondary,
.btn-outline-dark,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info {
    background: rgba(255, 255, 255, 0.38) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.table,
.table-responsive {
    border-radius: 22px;
    overflow: hidden;
}

.table thead th {
    background: rgba(255, 255, 255, 0.42) !important;
    border-bottom-color: var(--glass-border-dark) !important;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.36) !important;
}

.sidebar,
ul.navbar-nav.sidebar,
.navbar-nav.bg-gradient-primary.sidebar.sidebar-dark.accordion {
    background: rgba(33, 55, 64, 0.58) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 10px 0 32px rgba(26, 45, 61, 0.18) !important;
    -webkit-backdrop-filter: blur(22px) saturate(120%);
    backdrop-filter: blur(22px) saturate(120%);
}

body#page-top .sidebar,
body#page-top ul.navbar-nav.sidebar,
body#page-top .navbar-nav.bg-gradient-primary.sidebar.sidebar-dark.accordion {
    background: rgba(33, 55, 64, 0.58) !important;
    -webkit-backdrop-filter: blur(22px) saturate(120%);
    backdrop-filter: blur(22px) saturate(120%);
}

.sidebar .nav-link,
.sidebar .collapse-item {
    border: 1px solid transparent;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus-visible,
.sidebar .nav-item.active > .nav-link,
.sidebar .nav-link.active,
.sidebar .collapse-item:hover,
.sidebar .collapse-item:focus-visible,
.sidebar .collapse-item.active {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 20px rgba(5, 18, 31, 0.15) !important;
}

.sidebar .collapse,
.sidebar .collapse-inner {
    background: rgba(0, 0, 0, 0.12) !important;
}

.site-footer {
    background: rgba(67, 43, 39, 0.72) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

.navbar-public {
    background: rgba(255, 255, 255, 0.58) !important;
    color: #203040 !important;
}

.navbar-public .navbar-brand,
.navbar-public a:not(.btn) {
    color: inherit !important;
}

/* Public index: keep the uploaded scene visible behind the landing-page UI. */
body#page-top[data-page='home'] .navbar-public,
body#page-top[data-page='home'] .hero-section,
body#page-top[data-page='home'] .features-section,
body#page-top[data-page='home'] .testimonials-section,
body#page-top[data-page='home'] .cta-section {
    background-color: transparent !important;
}

body#page-top[data-page='home'] {
    background: #082632 url('../img/teach_hub-background.jpg') center / cover fixed !important;
}

body#page-top[data-page='home'] .navbar-public {
    background: rgba(255, 255, 255, 0.24) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.62) !important;
    box-shadow: 0 10px 30px rgba(35, 48, 56, 0.1) !important;
    -webkit-backdrop-filter: blur(24px) saturate(115%);
    backdrop-filter: blur(24px) saturate(115%);
}

body#page-top[data-page='home'] .navbar-public .navbar-brand {
    max-width: none;
    font-size: 1.05rem;
}

body#page-top[data-page='home'] .navbar-public .navbar-brand span {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
}

body#page-top[data-page='home'] .hero-section {
    background-image: linear-gradient(90deg, rgba(7, 24, 35, .88) 0%, rgba(7, 48, 59, .7) 48%, rgba(7, 48, 59, .32) 100%), url('../img/teach_hub-background.jpg') !important;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    border-bottom: 1px solid rgba(255, 255, 255, 0.38) !important;
}

body#page-top[data-page='home'] .hero-content,
body#page-top[data-page='home'] .hero-visual,
body#page-top[data-page='home'] .section-header,
body#page-top[data-page='home'] .cta-content {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body#page-top[data-page='home'] .hero-content {
    padding: 12px 0 !important;
}

body#page-top[data-page='home'] .teach-hub-hero-logo {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.35rem;
    perspective: 700px;
}

body#page-top[data-page='home'] .teach-hub-logo-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #facc15;
    font-size: 1.9rem;
    border: 2px solid rgba(250, 204, 21, .7);
    border-radius: 22px;
    background: rgba(0, 0, 0, .26);
    box-shadow: 0 0 0 6px rgba(250, 204, 21, .08), 0 10px 26px rgba(0, 0, 0, .2);
    animation: teach-hub-mark-in 1s cubic-bezier(.16, 1, .3, 1) both, teach-hub-mark-float 4s 1s ease-in-out infinite, teach-hub-mark-glow 3.2s 1.4s ease-in-out infinite;
}

body#page-top[data-page='home'] .teach-hub-logo-words {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .05rem;
    padding: .62rem .85rem;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 24px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    line-height: .85;
    font-weight: 900;
    letter-spacing: -.04em;
    overflow: hidden;
    animation: teach-hub-panel-in .9s .25s cubic-bezier(.16, 1, .3, 1) both, teach-hub-panel-float 5s 1.4s ease-in-out infinite;
}

body#page-top[data-page='home'] .teach-hub-logo-words::after {
    content: '';
    position: absolute;
    top: -35%;
    bottom: -35%;
    left: -45%;
    width: 28%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
    transform: skewX(-20deg);
    animation: teach-hub-shine 4.8s 1.8s ease-in-out infinite;
}

body#page-top[data-page='home'] .logo-word {
    display: flex;
    align-items: baseline;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    text-shadow: 0 5px 18px rgba(0, 0, 0, .2);
}

body#page-top[data-page='home'] .logo-word b {
    font-size: 1.18em;
    font-weight: 950;
    animation: teach-hub-letter-pop 4.8s 2s ease-in-out infinite;
}

body#page-top[data-page='home'] .teach-logo-word { color: #000000; }
body#page-top[data-page='home'] .hub-logo-word { color: #facc15; }
body#page-top[data-page='home'] .hub-logo-word b { animation-delay: 2.35s; }
body#page-top[data-page='home'] .logo-word span {
    display: inline-block;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transform: translateX(-10px);
    animation: teach-hub-word-reveal 1s .65s cubic-bezier(.16, 1, .3, 1) forwards;
}
body#page-top[data-page='home'] .hub-logo-word span { animation-delay: 1.05s; }

@keyframes teach-hub-mark-in {
    from { opacity: 0; transform: rotateY(-75deg) scale(.65); }
    to { opacity: 1; transform: rotateY(0) scale(1); }
}
@keyframes teach-hub-mark-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes teach-hub-mark-glow {
    0%, 100% { box-shadow: 0 0 0 6px rgba(250, 204, 21, .08), 0 10px 26px rgba(0, 0, 0, .2); }
    50% { box-shadow: 0 0 0 10px rgba(250, 204, 21, .16), 0 12px 30px rgba(0, 0, 0, .26); }
}
@keyframes teach-hub-panel-in {
    from { opacity: 0; transform: translateX(18px) rotateY(-20deg) scale(.82); }
    to { opacity: 1; transform: translateX(0) rotateY(0) scale(1); }
}
@keyframes teach-hub-panel-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-4px) rotate(.8deg); }
}
@keyframes teach-hub-shine {
    0%, 52% { left: -45%; opacity: 0; }
    62% { opacity: 1; }
    76%, 100% { left: 125%; opacity: 0; }
}
@keyframes teach-hub-letter-pop {
    0%, 78%, 100% { transform: translateY(0) rotate(0); }
    84% { transform: translateY(-5px) rotate(-4deg); }
    90% { transform: translateY(0) rotate(3deg); }
    94% { transform: translateY(-2px) rotate(0); }
}
@keyframes teach-hub-word-reveal {
    0% { max-width: 0; opacity: 0; transform: translateX(-10px); }
    100% { max-width: 4.5em; opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    body#page-top[data-page='home'] .teach-hub-hero-logo {
        justify-content: center;
        margin-bottom: 1.1rem;
    }
}

body#page-top[data-page='home'] .hero-visual {
    min-height: 330px;
}

body#page-top[data-page='home'] .features-section,
body#page-top[data-page='home'] .testimonials-section {
    background: rgba(8, 38, 50, .48) !important;
    padding-bottom: 5rem !important;
    padding-top: 5rem !important;
}

body#page-top[data-page='home'] .testimonials-section {
    background: linear-gradient(135deg, rgba(5, 31, 43, .84), rgba(15, 79, 89, .7)) !important;
}

body#page-top[data-page='home'] .testimonials-section .section-title,
body#page-top[data-page='home'] .testimonials-section .section-subtitle {
    color: #ffffff !important;
}

body#page-top[data-page='home'] .testimonials-section .testimonial-card {
    background: rgba(255, 255, 255, .14) !important;
    border: 1px solid rgba(255, 255, 255, .32) !important;
    box-shadow: 0 18px 38px rgba(2, 28, 42, .22), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
    -webkit-backdrop-filter: blur(20px) saturate(125%);
    backdrop-filter: blur(20px) saturate(125%);
}

body#page-top[data-page='home'] .testimonials-section .testimonial-content {
    color: rgba(255, 255, 255, .94) !important;
}

body#page-top[data-page='home'] .testimonials-section .testimonial-author-name {
    color: #ffffff !important;
}

body#page-top[data-page='home'] .testimonials-section .testimonial-author-role {
    color: rgba(255, 255, 255, .72) !important;
}

body#page-top[data-page='home'] .testimonials-section .testimonial-rating {
    color: #facc15 !important;
}

body#page-top[data-page='home'] .feature-card,
body#page-top[data-page='home'] .testimonial-card {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.62) !important;
    box-shadow: 0 14px 34px rgba(35, 48, 56, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    -webkit-backdrop-filter: blur(22px) saturate(115%);
    backdrop-filter: blur(22px) saturate(115%);
}

body#page-top[data-page='home'] #how-it-works {
    position: relative;
    background: linear-gradient(135deg, #082632 0%, #0f5962 55%, #173d59 100%) !important;
    overflow: hidden;
}

body#page-top[data-page='home'] #how-it-works::before,
body#page-top[data-page='home'] #how-it-works::after {
    content: '';
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    pointer-events: none;
    opacity: .32;
    filter: blur(2px);
}

body#page-top[data-page='home'] #how-it-works::before {
    top: -90px;
    left: -70px;
    background: rgba(250, 204, 21, .34);
}

body#page-top[data-page='home'] #how-it-works::after {
    right: -80px;
    bottom: -110px;
    background: rgba(15, 118, 110, .2);
}

body#page-top[data-page='home'] #how-it-works .container {
    position: relative;
    z-index: 1;
}

body#page-top[data-page='home'] #how-it-works .feature-card {
    background: rgba(255, 255, 255, .13) !important;
    border: 1px solid rgba(255, 255, 255, .34) !important;
    box-shadow: 0 18px 38px rgba(2, 28, 42, .24), inset 0 1px 0 rgba(255, 255, 255, .24) !important;
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
}

body#page-top[data-page='home'] #how-it-works .feature-card:hover {
    background: rgba(255, 255, 255, .24) !important;
    border-color: rgba(250, 204, 21, .72) !important;
}

body#page-top[data-page='home'] #how-it-works .section-title,
body#page-top[data-page='home'] #how-it-works .section-subtitle,
body#page-top[data-page='home'] #how-it-works .feature-title,
body#page-top[data-page='home'] #how-it-works .feature-description {
    color: #ffffff !important;
}

body#page-top[data-page='home'] #how-it-works .feature-icon {
    color: #facc15 !important;
    background: rgba(250, 204, 21, .16) !important;
    border: 1px solid rgba(250, 204, 21, .34);
}

body#page-top[data-page='home'] #benefits {
    position: relative;
    background: linear-gradient(135deg, #0d3f4b 0%, #126b70 52%, #173d59 100%) !important;
    overflow: hidden;
}

body#page-top[data-page='home'] #benefits .section-title,
body#page-top[data-page='home'] #benefits .section-subtitle {
    color: #ffffff !important;
}

body#page-top[data-page='home'] #benefits .feature-card {
    background: rgba(255, 255, 255, .14) !important;
    border: 1px solid rgba(255, 255, 255, .34) !important;
    box-shadow: 0 18px 38px rgba(2, 28, 42, .22), inset 0 1px 0 rgba(255, 255, 255, .24) !important;
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    backdrop-filter: blur(20px) saturate(130%);
}

body#page-top[data-page='home'] #benefits .feature-card:hover {
    background: rgba(255, 255, 255, .24) !important;
    border-color: rgba(250, 204, 21, .7) !important;
}

body#page-top[data-page='home'] #benefits .feature-title,
body#page-top[data-page='home'] #benefits .feature-description {
    color: #ffffff !important;
}

body#page-top[data-page='home'] .hero-stats {
    background: linear-gradient(135deg, #081f2e 0%, #0f4f59 100%) !important;
    border-bottom: 0 !important;
}

body#page-top[data-page='home'] .hero-stats-grid > div {
    border-color: rgba(255, 255, 255, .18) !important;
}

body#page-top[data-page='home'] .hero-stats-grid strong {
    color: #facc15 !important;
}

body#page-top[data-page='home'] .hero-stats-grid span {
    color: rgba(255, 255, 255, .78) !important;
}

@media (max-width: 768px) {
    body#page-top[data-page='home'] #how-it-works .features-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 430px;
        margin-inline: auto;
    }

    body#page-top[data-page='home'] #how-it-works .feature-card {
        min-height: 228px;
    }
}

body#page-top[data-page='home'] .cta-section {
    background-image: linear-gradient(135deg, rgba(4, 25, 36, .84), rgba(15, 118, 110, .68)), url('../img/teach_hub-background.jpg') !important;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.bg-white,
.bg-light,
.bg-body,
.bg-gray-100,
.bg-gray-200 {
    background-color: rgba(255, 255, 255, 0.56) !important;
}

body#page-top .container-fluid,
body#page-top #content-wrapper .container-fluid,
body#page-top #content > .topbar,
body[data-role='student'] #content > .topbar,
body[data-role='teacher'] #content > .topbar {
    background: rgba(255, 255, 255, 0.12) !important;
    background-image: none !important;
}

body#page-top #content-wrapper .container-fluid {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

body#page-top .page-holder,
body#page-top .content-holder,
body#page-top #content,
body#page-top .container-fluid,
body#page-top #content > .container-fluid {
    background: transparent !important;
    background-color: transparent !important;
}

body#page-top .card,
body#page-top .card-modern,
body#page-top .dashboard-card,
body#page-top .stat-card,
body#page-top .quick-actions,
body#page-top .dashboard-header {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 16px 38px rgba(42, 31, 29, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    backdrop-filter: blur(24px) saturate(120%);
}

/* Final liquid-glass pass: no opaque white page holders or dialogs. */
body#page-top #wrapper,
body#page-top #content-wrapper,
body#page-top #content {
    background-color: rgba(34, 48, 56, 0.12) !important;
    background-image: url('../img/teach_hub-background.jpg') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

body#page-top #content,
body#page-top .container-fluid,
body#page-top #content > .container-fluid {
    background-color: transparent !important;
    background-image: none !important;
}

body#page-top #content > .topbar,
body#page-top .card,
body#page-top .card-modern,
body#page-top .dashboard-card,
body#page-top .stat-card,
body#page-top .quick-actions,
body#page-top .dashboard-header,
body#page-top .ops-panel,
body#page-top .ops-status,
body#page-top .attention-strip,
body#page-top .chart-area,
body#page-top .recent-item,
body#page-top .row > [class*='col-'] > .card,
body#page-top .modal-content,
body#page-top .dropdown-menu,
body#page-top .offcanvas,
body#page-top .toast,
body#page-top .alert,
.modal-content,
.dropdown-menu,
.offcanvas,
.toast {
    background: rgba(255, 255, 255, 0.14) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.64) !important;
    box-shadow: 0 18px 44px rgba(25, 37, 43, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
    -webkit-backdrop-filter: blur(26px) saturate(120%);
    backdrop-filter: blur(26px) saturate(120%);
}

.modal-backdrop {
    background: rgba(28, 39, 45, 0.26) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

body#page-top .card-header,
body#page-top .card-footer,
body#page-top .quick-actions-header,
body#page-top .modal-header,
body#page-top .modal-footer,
body#page-top .list-group-item {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Authenticated dashboards use the same photo-backed liquid glass shell as index. */
body#page-top[data-role='admin'] #wrapper,
body#page-top[data-role='admin'] #content-wrapper,
body#page-top[data-role='teacher'] #wrapper,
body#page-top[data-role='teacher'] #content-wrapper,
body#page-top[data-role='student'] #wrapper,
body#page-top[data-role='student'] #content-wrapper,
body#page-top[data-role='super_admin'] #wrapper,
body#page-top[data-role='super_admin'] #content-wrapper {
    background-color: rgba(255, 255, 255, 0.08) !important;
    background-image: url('../img/teach_hub-background.jpg') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

body#page-top[data-role='admin'] #content,
body#page-top[data-role='admin'] .container-fluid,
body#page-top[data-role='teacher'] #content,
body#page-top[data-role='teacher'] .container-fluid,
body#page-top[data-role='student'] #content,
body#page-top[data-role='student'] .container-fluid,
body#page-top[data-role='super_admin'] #content,
body#page-top[data-role='super_admin'] .container-fluid {
    background: transparent !important;
    background-image: none !important;
}

body#page-top[data-role] #content-wrapper #content > .container-fluid,
body#page-top[data-role] #content > .container-fluid,
body#page-top[data-role] #content-wrapper .container-fluid {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

body#page-top[data-role] #content-wrapper #content > .topbar,
body#page-top[data-role] #content > .topbar {
    background: rgba(255, 255, 255, 0.14) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.64) !important;
    box-shadow: 0 18px 44px rgba(25, 37, 43, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
    -webkit-backdrop-filter: blur(26px) saturate(120%);
    backdrop-filter: blur(26px) saturate(120%);
}

body#page-top[data-role='admin'] .card,
body#page-top[data-role='admin'] .card-modern,
body#page-top[data-role='admin'] .dashboard-card,
body#page-top[data-role='admin'] .page-header,
body#page-top[data-role='teacher'] .card,
body#page-top[data-role='teacher'] .card-modern,
body#page-top[data-role='teacher'] .dashboard-card,
body#page-top[data-role='teacher'] .page-header,
body#page-top[data-role='student'] .card,
body#page-top[data-role='student'] .card-modern,
body#page-top[data-role='student'] .dashboard-card,
body#page-top[data-role='student'] .page-header,
body#page-top[data-role='super_admin'] .card,
body#page-top[data-role='super_admin'] .card-modern,
body#page-top[data-role='super_admin'] .dashboard-card,
body#page-top[data-role='super_admin'] .page-header {
    background: rgba(255, 255, 255, 0.16) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.64) !important;
    box-shadow: 0 16px 38px rgba(25, 37, 43, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
    -webkit-backdrop-filter: blur(24px) saturate(115%);
    backdrop-filter: blur(24px) saturate(115%);
}

body#page-top .quick-actions,
body#page-top .ops-panel,
body#page-top .row > [class*='col-'] > .card,
body#page-top .ops-status,
body#page-top .attention-strip,
body#page-top .chart-area {
    background: rgba(255, 255, 255, 0.1) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.48) !important;
    box-shadow: 0 16px 38px rgba(25, 37, 43, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
    -webkit-backdrop-filter: blur(26px) saturate(120%);
    backdrop-filter: blur(26px) saturate(120%);
}

body#page-top .ops-status,
body#page-top .attention-strip,
body#page-top .recent-item {
    border-color: rgba(255, 255, 255, 0.26) !important;
}

/* Manage Accounts crystal surfaces. */
body#page-top[data-page='user_management'] .card,
body#page-top[data-page='user_management'] .card.mb-4 {
    background: rgba(255, 255, 255, 0.14) !important;
    background-image: none !important;
    background-color: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.64) !important;
    box-shadow: 0 18px 44px rgba(25, 37, 43, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
    -webkit-backdrop-filter: blur(26px) saturate(120%);
    backdrop-filter: blur(26px) saturate(120%);
}

body#page-top[data-page='user_management'] #content > .container-fluid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0 2rem !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    background-image: none !important;
}

body#page-top[data-page='user_management'] .table-responsive {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

body#page-top[data-page='user_management'] #content > .container-fluid > .card,
body#page-top[data-page='user_management'] #content > .container-fluid > .table-responsive {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body#page-top[data-page='user_management'] .card-header,
body#page-top[data-page='user_management'] .card-body,
body#page-top[data-page='user_management'] .table,
body#page-top[data-page='user_management'] .table thead,
body#page-top[data-page='user_management'] .table tbody,
body#page-top[data-page='user_management'] .table tr,
body#page-top[data-page='user_management'] .table td,
body#page-top[data-page='user_management'] .table th {
    background: transparent !important;
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

body#page-top[data-page='user_management'] .card-body {
    background: rgba(255, 255, 255, 0.06) !important;
    background-image: none !important;
    color: #263b47 !important;
}

body#page-top[data-page='user_management'] .form-control,
body#page-top[data-page='user_management'] .form-select,
body#page-top[data-page='user_management'] select,
body#page-top[data-page='user_management'] input {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.48) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 20px rgba(35, 47, 54, 0.08) !important;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body#page-top[data-page='user_management'] .table th,
body#page-top[data-page='user_management'] .table td,
body#page-top[data-page='user_management'] .table td span,
body#page-top[data-page='user_management'] .table td small,
body#page-top[data-page='user_management'] .form-label,
body#page-top[data-page='user_management'] .card-header,
body#page-top[data-page='user_management'] .card-header h5,
body#page-top[data-page='user_management'] .card-header h6 {
    color: #263b47 !important;
    text-shadow: none;
}

body#page-top[data-page='user_management'] .table th {
    color: #1f3541 !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
}

body#page-top[data-page='user_management'] .form-control::placeholder,
body#page-top[data-page='user_management'] .form-select,
body#page-top[data-page='user_management'] select {
    color: #49616e !important;
}

body#page-top[data-page='user_management'] .table td a {
    color: #1769aa !important;
    font-weight: 600;
}

body#page-top[data-page='user_management'] .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

body#page-top[data-role='super_admin'][data-page='user_management'] .table thead th,
body#page-top[data-role='super_admin'][data-page='user_management'] .table > :not(caption) > * > * {
    color: #263b47 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.24) !important;
}

.sticky-footer {
    background: var(--glass-bg) !important;
    border-top: 1px solid var(--glass-border) !important;
}

body#page-top .sticky-footer,
body#page-top footer.sticky-footer {
    background: rgba(255, 255, 255, 0.14) !important;
    background-color: rgba(255, 255, 255, 0.14) !important;
    background-image: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.64) !important;
    box-shadow: 0 -12px 30px rgba(25, 37, 43, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    -webkit-backdrop-filter: blur(26px) saturate(120%);
    backdrop-filter: blur(26px) saturate(120%);
}

body#page-top .sticky-footer span,
body#page-top .sticky-footer a {
    color: #263b47 !important;
}

body#page-top .site-footer {
    background: rgba(255, 255, 255, 0.14) !important;
    background-color: rgba(255, 255, 255, 0.14) !important;
    background-image: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.64) !important;
    box-shadow: 0 -12px 30px rgba(25, 37, 43, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    -webkit-backdrop-filter: blur(26px) saturate(120%);
    backdrop-filter: blur(26px) saturate(120%);
}

body#page-top .site-footer h5,
body#page-top .site-footer p,
body#page-top .site-footer a,
body#page-top .site-footer li {
    color: #263b47 !important;
}

@media (max-width: 768px) {
    body#page-top #content > .topbar {
        border-radius: 14px !important;
    }

    .card,
    .card-modern,
    .content-card,
    .stat-card,
    .info-card,
    .modal-content,
    .dropdown-menu,
    .profile-header,
    .auth-card,
    .dashboard-card,
    .glass-panel {
        border-radius: 14px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

body#page-top[data-page='user_management'] .text-muted,
body#page-top[data-page='user_management'] .small,
body#page-top[data-page='user_management'] label {
    color: #49616e !important;
}

/* Public About and Posts pages use the same glassmorphism language as the homepage. */
body#page-top[data-page='about'],
body#page-top[data-page='posts'] {
    min-height: 100vh;
    background: #082632 url('../img/teach_hub-background.jpg') center / cover fixed !important;
}

body#page-top[data-page='about'] .page-header,
body#page-top[data-page='posts'] .posts-feed-header {
    background: linear-gradient(135deg, rgba(4, 25, 36, .88), rgba(15, 118, 110, .72)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .28) !important;
}

body#page-top[data-page='about'] .page-header h1,
body#page-top[data-page='about'] .page-header p,
body#page-top[data-page='posts'] .posts-feed-header h1,
body#page-top[data-page='posts'] .posts-feed-header p {
    color: #ffffff !important;
}

body#page-top[data-page='about'] > .container.py-5 {
    background: rgba(8, 38, 50, .5) !important;
    border-inline: 1px solid rgba(255, 255, 255, .12);
}

body#page-top[data-page='about'] .card-modern {
    background: rgba(255, 255, 255, .14) !important;
    border: 1px solid rgba(255, 255, 255, .34) !important;
    box-shadow: 0 20px 44px rgba(2, 28, 42, .24), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
    -webkit-backdrop-filter: blur(22px) saturate(125%);
    backdrop-filter: blur(22px) saturate(125%);
}

body#page-top[data-page='about'] .about-content,
body#page-top[data-page='about'] .about-content p,
body#page-top[data-page='about'] .about-content li,
body#page-top[data-page='about'] .about-content h2,
body#page-top[data-page='about'] .about-content h3,
body#page-top[data-page='about'] .about-content h4 {
    color: #ffffff !important;
}

body#page-top[data-page='about'] .about-content a { color: #facc15 !important; }
body#page-top[data-page='about'] .about-profile-image { border: 2px solid rgba(250, 204, 21, .72); box-shadow: 0 16px 34px rgba(2, 28, 42, .24) !important; }

body#page-top[data-page='posts'] .posts-feed-wrapper {
    background: rgba(8, 38, 50, .52) !important;
}

body#page-top[data-page='posts'] .feed-container { max-width: 760px; }

body#page-top[data-page='posts'] .fb-post-card,
body#page-top[data-page='posts'] .fb-empty {
    background: rgba(255, 255, 255, .14) !important;
    border: 1px solid rgba(255, 255, 255, .32) !important;
    box-shadow: 0 18px 38px rgba(2, 28, 42, .22), inset 0 1px 0 rgba(255, 255, 255, .2) !important;
    -webkit-backdrop-filter: blur(20px) saturate(125%);
    backdrop-filter: blur(20px) saturate(125%);
}

body#page-top[data-page='posts'] .fb-author-name,
body#page-top[data-page='posts'] .fb-post-title,
body#page-top[data-page='posts'] .fb-post-content,
body#page-top[data-page='posts'] .fb-empty p {
    color: #ffffff !important;
}

body#page-top[data-page='posts'] .fb-post-time,
body#page-top[data-page='posts'] .see-more-btn,
body#page-top[data-page='posts'] .fb-empty i {
    color: rgba(255, 255, 255, .72) !important;
}

body#page-top[data-page='posts'] .fb-post-footer { border-top-color: rgba(255, 255, 255, .2) !important; }
body#page-top[data-page='posts'] .fb-post-image { background: rgba(0, 0, 0, .22); }

/* Keep secondary labels readable over translucent panels. */
body:not(.bas-dark-mode):not([data-dark='1']) .card,
body:not(.bas-dark-mode):not([data-dark='1']) .card-modern,
body:not(.bas-dark-mode):not([data-dark='1']) .card-body,
body:not(.bas-dark-mode):not([data-dark='1']) .content-card,
body:not(.bas-dark-mode):not([data-dark='1']) .stat-card,
body:not(.bas-dark-mode):not([data-dark='1']) .info-card,
body:not(.bas-dark-mode):not([data-dark='1']) .dashboard-card,
body:not(.bas-dark-mode):not([data-dark='1']) .glass-panel,
body:not(.bas-dark-mode):not([data-dark='1']) .modal-content,
body:not(.bas-dark-mode):not([data-dark='1']) .dropdown-menu,
body:not(.bas-dark-mode):not([data-dark='1']) .list-group,
body:not(.bas-dark-mode):not([data-dark='1']) .accordion-item {
    color: #1e293b;
}

body:not(.bas-dark-mode):not([data-dark='1']) :is(
    .card,
    .card-modern,
    .content-card,
    .stat-card,
    .info-card,
    .dashboard-card,
    .glass-panel,
    .modal-content,
    .dropdown-menu,
    .list-group,
    .accordion-item
) :is(.text-muted, .text-secondary, .text-light, .text-gray-300, .small, small) {
    color: #475569 !important;
    opacity: 1 !important;
}

body:not(.bas-dark-mode):not([data-dark='1']) .text-gray-800,
body:not(.bas-dark-mode):not([data-dark='1']) .card a:not(.btn),
body:not(.bas-dark-mode):not([data-dark='1']) .modal-content a:not(.btn),
body:not(.bas-dark-mode):not([data-dark='1']) .dropdown-menu a:not(.btn) {
    color: #1e293b !important;
}

body:not(.bas-dark-mode):not([data-dark='1']) label,
body:not(.bas-dark-mode):not([data-dark='1']) .form-label,
body:not(.bas-dark-mode):not([data-dark='1']) .table,
body:not(.bas-dark-mode):not([data-dark='1']) .table th,
body:not(.bas-dark-mode):not([data-dark='1']) .table td {
    color: #334155;
}

/* Accessible glass surfaces: keep the frost, but reduce background interference. */
body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) :is(
    .card:not([class*='bg-']),
    .card-modern:not([class*='bg-']),
    .content-card:not([class*='bg-']),
    .stat-card:not([class*='bg-']),
    .info-card:not([class*='bg-']),
    .dashboard-card:not([class*='bg-']),
    .glass-panel:not([class*='bg-']),
    .card-body,
    .modal-content,
    .dropdown-menu,
    .list-group,
    .accordion-item,
    .auth-card,
    .request-card,
    .table-responsive
) {
    background-color: rgba(255, 255, 255, .94) !important;
    border-color: rgba(71, 85, 105, .24) !important;
    color: #1f2937 !important;
    -webkit-backdrop-filter: blur(10px) saturate(110%);
    backdrop-filter: blur(10px) saturate(110%);
}

body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) :is(
    .card-header:not([class*='bg-']),
    .card-footer:not([class*='bg-']),
    .modal-header:not([class*='bg-']),
    .modal-footer:not([class*='bg-']),
    .list-group-item:not([class*='bg-']),
    .accordion-button:not([class*='bg-']),
    .accordion-body
) {
    background-color: rgba(248, 250, 252, .94) !important;
    border-color: rgba(71, 85, 105, .2) !important;
    color: #1f2937 !important;
}

body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) :is(
    .card-body,
    .modal-body,
    .dropdown-menu,
    .list-group-item,
    .accordion-body,
    .table:not(.table-dark),
    .card-header:not([class*='bg-'])
) .text-white:not(.btn):not(.badge):not(.alert):not(.bg-primary):not(.bg-secondary):not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info):not(.bg-dark):not(.bg-black):not(.btn .text-white):not(.badge .text-white):not(.alert .text-white):not(.bg-primary .text-white):not(.bg-secondary .text-white):not(.bg-success .text-white):not(.bg-danger .text-white):not(.bg-warning .text-white):not(.bg-info .text-white):not(.bg-dark .text-white):not(.bg-black .text-white) {
    color: #1f2937 !important;
}

body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) .form-control,
body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) .form-select,
body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) .input-group-text,
body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) textarea,
body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) select,
body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) input:not([type='checkbox']):not([type='radio']):not([type='file']) {
    background-color: rgba(255, 255, 255, .96) !important;
    color: #1f2937 !important;
}

body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) :is(input, textarea, select)::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) .table:not(.table-dark) {
    --bs-table-color: #1f2937;
    --bs-table-bg: rgba(255, 255, 255, .96);
    color: #1f2937 !important;
    background-color: rgba(255, 255, 255, .96) !important;
}

body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) .table:not(.table-dark) :is(th, td) {
    color: #1f2937 !important;
}

body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) .table thead th {
    background-color: rgba(226, 232, 240, .96) !important;
}

body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) .alert-success {
    background-color: #ecfdf3 !important;
    border-color: #86efac !important;
    color: #14532d !important;
}

body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) .alert-danger {
    background-color: #fff1f2 !important;
    border-color: #fda4af !important;
    color: #9f1239 !important;
}

body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) .alert-warning {
    background-color: #fffbeb !important;
    border-color: #fcd34d !important;
    color: #854d0e !important;
}

body#page-top:not(.bas-dark-mode):not([data-dark='1']):not([data-theme='dark']):not([data-page='home']):not([data-page='about']):not([data-page='posts']) .alert-info {
    background-color: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1e3a8a !important;
}

body#page-top[data-page='home'] :is(#how-it-works, #benefits) .feature-card,
body#page-top[data-page='home'] .testimonials-section .testimonial-card {
    background-color: rgba(8, 38, 50, .94) !important;
    border-color: rgba(255, 255, 255, .38) !important;
    -webkit-backdrop-filter: blur(10px) saturate(110%);
    backdrop-filter: blur(10px) saturate(110%);
}

body#page-top[data-page='about'] .card-modern,
body#page-top[data-page='posts'] .fb-post-card,
body#page-top[data-page='posts'] .fb-empty {
    background-color: rgba(8, 38, 50, .94) !important;
    border-color: rgba(255, 255, 255, .38) !important;
    -webkit-backdrop-filter: blur(10px) saturate(110%);
    backdrop-filter: blur(10px) saturate(110%);
}

body#page-top[data-page='about'] > .container.py-5 .card.card-modern {
    background: rgba(8, 38, 50, .94) !important;
    border-color: rgba(255, 255, 255, .38) !important;
}

body#page-top[data-page='posts'] .fb-post-time,
body#page-top[data-page='posts'] .see-more-btn,
body#page-top[data-page='about'] .about-content .text-muted {
    color: #e2e8f0 !important;
    opacity: 1 !important;
}