
/* --- STB PREMIUM & MODERN FRAMEWORK (COMPLETE & FIXED) --- */
:root {
    --stb-primary: #059669; 
    --stb-primary-bright: #10b981;
    --stb-primary-glow: rgba(5, 150, 105, 0.4);
    --stb-secondary: #0284c7;
    --stb-dark-glass: rgba(7, 13, 31, 0.9);
    --stb-border: rgba(16, 185, 129, 0.3);
    --stb-text-bright: #ffffff;
    --stb-text-dim: #94a3b8;
}

/* --- Animations --- */
@keyframes entranceHeader {
    0% { transform: translateY(-50px) scale(0.95); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* --- Header Structure (Isla Flotante) --- */
#stb-modern-header {
    position: fixed;
    top: 32px;
    left: 10px;
    right: 10px;
    z-index: 10000;
    min-height: 76px;
    padding: 0.7rem 2.45rem;
    background: var(--stb-dark-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--stb-border);
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 17px rgba(0,0,0,0.55), 0 0 13px var(--stb-primary-glow);
    animation: entranceHeader 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition: all 0.4s ease;
}

/* Logo Fix */
.stb-logo-img {
    height: 46px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
    transition: transform 0.3s ease;
}

.stb-logo-container:hover .stb-logo-img {
    transform: rotate(-5deg) scale(1.1);
}

/* Navigation Center */
.header-center {
    display: flex;
    background: rgba(255,255,255,0.03);
    padding: 5px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stb-nav-link {
    padding: 0.56rem 1.28rem;
    color: var(--stb-text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 13px;
    transition: all 0.3s ease;
}

.stb-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.stb-nav-link.active-link {
    color: #fff;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2), rgba(2, 132, 199, 0.2));
    border: 1px solid var(--stb-border);
}

/* Access Button */
.stb-btn-access {
    background: linear-gradient(135deg, var(--stb-primary), #059669);
    color: #fff;
    padding: 0.65rem 1.6rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.84rem;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* User Card & Dropdown */
.stb-user-wrapper {
    position: relative;
    cursor: pointer;
}

.stb-welcome-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 15px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2), rgba(2, 132, 199, 0.1));
    border-radius: 16px;
    border: 1px solid var(--stb-border);
}

.stb-welcome-card .user-name {
    color: var(--stb-primary-bright);
    font-weight: 800;
    font-size: 0.9rem;
}

.stb-profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 220px;
    background: var(--stb-dark-glass);
    border: 1px solid var(--stb-border);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(25px);
}

.stb-user-wrapper.is-open .stb-profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.stb-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
}

.stb-dropdown-item:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--stb-primary-bright);
}

/* --- Footer Style --- */
#stb-modern-footer {
    background: #01040f;
    color: var(--stb-text-dim);
    padding: 2rem 3rem 0rem;
    border-top: 1px solid var(--stb-border);
    margin-top: 0rem;
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.stb-footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.2));
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, var(--stb-primary-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: var(--stb-text-dim); text-decoration: none; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--stb-primary-bright); transform: translateX(5px); }

.social-icons { display: flex; gap: 1.2rem; margin-top: 2rem; }
.social-btn {
    width: 45px; height: 45px; border-radius: 12px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.3rem; border: 1px solid var(--stb-border);
}

.social-btn:hover {
    background: var(--stb-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

.footer-bottom {
    max-width: 1300px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    #stb-modern-header { display: none !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
    #stb-modern-footer { display: none !important; }
}

.hide-chrome { opacity: 0; pointer-events: none; transform: translateY(-100px); }

body.bpp-course-builder #stb-modern-header,
body.bolt-course-builder #stb-modern-header,
body.tutor-dashboard-create-course #stb-modern-header {
    display: none !important;
}

/* Final header override: floating position and medium-large scale. */
#stb-modern-header {
    position: fixed !important;
    top: 28px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: calc(100vw - 20px) !important;
    max-width: none !important;
    height: 130px !important;
    min-height: 130px !important;
    padding: 1.6rem 3rem !important;
    box-sizing: border-box !important;
    border-radius: 24px !important;
    align-items: center !important;
    transform: translateX(-50%) !important;
}

body:not(.bpp-course-builder):not(.bolt-course-builder):not(.tutor-dashboard-create-course) {
    padding-top: 0 !important;
}

#stb-modern-header .stb-logo-img {
    height: 56px !important;
}

#stb-modern-header .header-center {
    padding: 7px !important;
    border-radius: 18px !important;
}

#stb-modern-header .stb-nav-link {
    padding: 0.68rem 1.45rem !important;
    font-size: 0.94rem !important;
    border-radius: 15px !important;
}

#stb-modern-header .stb-btn-access {
    padding: 0.78rem 1.95rem !important;
    font-size: 0.88rem !important;
    border-radius: 17px !important;
}

#stb-modern-header .stb-welcome-card {
    gap: 12px !important;
    padding: 9px 19px !important;
    border-radius: 18px !important;
}

#stb-modern-header .stb-welcome-card .user-name {
    font-size: 0.96rem !important;
}
