/* Modern Premium Dark Theme CSS for Tu Audio Academy */

:root {
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --card-border: #334155;
    --brand-blue: #2837FC;
    --brand-gold: #FCB728;
    --brand-gold-hover: #e09f19;
    --slate-text: #94a3b8;
    --heading-text: #f8fafc;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-glow: 0 10px 30px -10px rgba(40, 55, 252, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.dark-theme {
    background-color: var(--bg-dark);
    color: #e2e8f0;
    font-family: var(--font-main);
    line-height: 1.5;
    min-height: 100vh;
}

/* UNDER CONSTRUCTION BANNER (ALWAYS FIXED ON SCROLL) */
.under-construction-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(90deg, #FCB728, #f59e0b);
    color: #000;
    padding: 10px 24px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(252, 183, 40, 0.4);
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* HEADER */
.app-header {
    background-color: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 41px;
    z-index: 900;
    padding: 12px 24px;
    margin-top: 41px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    background: linear-gradient(135deg, #2837FC, #818cf8);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(40, 55, 252, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--heading-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-tag {
    background: linear-gradient(90deg, #FCB728, #f59e0b);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.subdomain-text {
    font-size: 12px;
    color: var(--brand-gold);
    font-weight: 600;
}

/* HEADER SEARCH */
.header-search {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.header-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-text);
}

.header-search input {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 10px 16px 10px 42px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.header-search input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(40, 55, 252, 0.25);
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-level-pill {
    background: rgba(252, 183, 40, 0.12);
    border: 1px solid rgba(252, 183, 40, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-gold);
}

.icon-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: #cbd5e1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-dark);
}

.user-profile-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-gold);
    cursor: pointer;
}

/* NAVIGATION TABS (SKOOL STYLE - 2-LINE FLEX WRAP) */
.navigation-tabs {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
    padding: 8px 24px;
}

.tabs-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible;
    align-items: center;
}

.nav-tab {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--card-border);
    color: var(--slate-text);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: normal;
}

.nav-tab:hover {
    color: #fff;
    border-color: rgba(252, 183, 40, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
    color: var(--brand-gold);
    border-color: var(--brand-gold);
    background: rgba(252, 183, 40, 0.15);
    box-shadow: 0 0 12px rgba(252, 183, 40, 0.2);
}

.nav-tab.highlight-tab {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.1);
}

/* MAIN CONTENT */
.main-content {
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 24px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CLASSROOM LAYOUT */
.classroom-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
}

.modules-sidebar {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
}

.sidebar-header h3 {
    font-size: 16px;
    color: var(--heading-text);
    margin-bottom: 12px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--slate-text);
    margin-bottom: 6px;
}

.progress-bar {
    height: 8px;
    background: #0f172a;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
    border-radius: 4px;
}

.module-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.module-item:hover {
    border-color: var(--card-border);
    background-color: rgba(15, 23, 42, 0.8);
}

.module-item.active {
    border-color: var(--brand-gold);
    background-color: rgba(252, 183, 40, 0.1);
}

.module-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #334155;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.module-item.completed .module-icon {
    background: var(--accent-green);
    color: #fff;
}

.module-item.active .module-icon {
    background: var(--brand-gold);
    color: #000;
}

.module-info h4 {
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 600;
}

.module-info .duration {
    font-size: 11px;
    color: var(--slate-text);
}

/* MODAL STYLES FOR GOOGLE LOGIN */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.modal-card {
    background: #1e293b;
    border: 2px solid #FCB728;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    position: relative;
    color: #fff;
}

.btn-google-login {
    background: #FCB728;
    color: #0f172a;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-google-login:hover {
    background: #e09f19;
    transform: translateY(-1px);
}
