/* ===== CSS Variables & Reset ===== */
:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(30, 30, 55, 0.7);
    --bg-card-hover: rgba(40, 40, 70, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #e8e8f0;
    --text-secondary: #9090b0;
    --text-muted: #606080;
    --accent: #7c5cff;
    --accent-hover: #9a7fff;
    --accent-glow: rgba(124, 92, 255, 0.3);
    --danger: #ff4d6a;
    --danger-hover: #ff6b84;
    --success: #4dffb8;
    --warning: #ffb84d;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 20% 50%, rgba(124, 92, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(77, 166, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 77, 166, 0.04) 0%, transparent 50%);
    z-index: -1;
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-5%, -5%) rotate(3deg);
    }
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* ===== Layout ===== */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ===== Auth Pages ===== */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    animation: fadeUp 0.5s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--accent), #4da6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-card .subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #5a3de6);
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-danger {
    background: rgba(255, 77, 106, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 77, 106, 0.25);
}

.btn-danger:hover {
    background: rgba(255, 77, 106, 0.25);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

/* ===== Flash Messages ===== */
.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    animation: fadeUp 0.3s ease-out;
}

.flash.error {
    background: rgba(255, 77, 106, 0.12);
    border: 1px solid rgba(255, 77, 106, 0.25);
    color: var(--danger);
}

.flash.success {
    background: rgba(77, 255, 184, 0.12);
    border: 1px solid rgba(77, 255, 184, 0.25);
    color: var(--success);
}

.flash.info {
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.25);
    color: var(--accent);
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.navbar .logo .icon {
    font-size: 1.4rem;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar .user-badge {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* ===== Dashboard Header ===== */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #4da6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Add Password Panel ===== */
.add-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.add-panel h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.length-display {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.5rem;
    min-width: 28px;
    text-align: center;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin-top: 0.5rem;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 8px var(--accent-glow);
    transition: transform var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ===== Password Table ===== */
.table-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.password-table {
    width: 100%;
    border-collapse: collapse;
}

.password-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.password-table th {
    padding: 0.85rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.password-table td {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.password-table tbody tr {
    transition: background var(--transition);
}

.password-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.password-table tbody tr:last-child td {
    border-bottom: none;
}

.password-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
}

.password-dots {
    letter-spacing: 2px;
}

.toggle-pw {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem;
    transition: color var(--transition);
}

.toggle-pw:hover {
    color: var(--accent);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem;
    transition: color var(--transition);
}

.copy-btn:hover {
    color: var(--success);
}

.copy-btn.copied {
    color: var(--success);
}

.notes-cell {
    max-width: 180px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ===== Header Right Group ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ===== View / Edit Buttons ===== */
.btn-view {
    background: rgba(77, 166, 255, 0.12);
    color: #4da6ff;
    border: 1px solid rgba(77, 166, 255, 0.25);
}

.btn-view:hover {
    background: rgba(77, 166, 255, 0.22);
    transform: translateY(-1px);
}

.btn-edit {
    background: rgba(255, 184, 77, 0.12);
    color: var(--warning);
    border: 1px solid rgba(255, 184, 77, 0.25);
    padding: 0.55rem 1.2rem;
}

.btn-edit:hover {
    background: rgba(255, 184, 77, 0.22);
    transform: translateY(-1px);
}

/* ===== Modal Overlay ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem 0.75rem;
}

.modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
}

.modal-close:hover {
    background: rgba(255, 77, 106, 0.12);
    color: var(--danger);
    border-color: rgba(255, 77, 106, 0.25);
}

.modal-body {
    padding: 1rem 1.75rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem 1.5rem;
}

/* ===== Password Input with Toggle ===== */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 3rem;
}

.toggle-pw-input {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color var(--transition);
}

.toggle-pw-input:hover {
    color: var(--accent);
}

/* ===== Readonly Fields ===== */
.form-control.readonly {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    cursor: default;
    border-color: transparent;
}

.form-control.readonly:focus {
    border-color: transparent;
    box-shadow: none;
}

/* ===== Generate Row (Edit Modal) ===== */
.generate-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(124, 92, 255, 0.06);
    border: 1px solid rgba(124, 92, 255, 0.15);
    border-radius: var(--radius-sm);
}

.generate-length {
    flex: 1;
}

.generate-length label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #5a3de6);
    color: #fff;
    border: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* ===== Password Mode Toggle (Add Modal) ===== */
.password-mode-toggle {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
    margin-bottom: 0.25rem;
}

.mode-btn {
    flex: 1;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.mode-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--accent), #5a3de6);
    color: #fff;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.generated-preview {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(124, 92, 255, 0.06);
    border: 1px solid rgba(124, 92, 255, 0.15);
    border-radius: var(--radius-sm);
}

.generated-preview label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.generated-pw {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--success) !important;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.empty-state .hint {
    font-size: 0.85rem;
}

/* ===== Footer link ===== */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 700px) {

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .password-table th,
    .password-table td {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
    }

    .stats {
        gap: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .modal-card {
        width: 96%;
        margin: 1rem;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== Tab Bar ===== */
.tab-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.35rem;
    backdrop-filter: blur(16px);
}

.tab-btn {
    flex: 1;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent), #5a3de6);
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.tab-content {
    display: none;
    animation: fadeUp 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.25rem;
}

/* ===== Class Cards Grid ===== */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.class-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.class-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}

.class-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, 0.3);
    box-shadow: 0 12px 40px rgba(124, 92, 255, 0.15);
}

.class-card:hover::before {
    opacity: 1;
}

.class-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.class-icon {
    font-size: 2rem;
    line-height: 1;
}

.class-card-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.class-card:hover .class-card-actions {
    opacity: 1;
}

.btn-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-icon-danger:hover {
    background: rgba(255, 77, 106, 0.15);
    color: var(--danger);
    border-color: rgba(255, 77, 106, 0.25);
}

.class-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    position: relative;
    z-index: 1;
}

.class-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.class-card-footer {
    position: relative;
    z-index: 1;
}

.class-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(124, 92, 255, 0.1);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    border: 1px solid rgba(124, 92, 255, 0.2);
}

/* ===== Icon Picker ===== */
.icon-picker {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.icon-input {
    width: 70px !important;
    text-align: center;
    font-size: 1.5rem;
    padding: 0.5rem !important;
}

.icon-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.icon-chip {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition);
}

.icon-chip:hover {
    background: rgba(124, 92, 255, 0.15);
    border-color: var(--accent);
    transform: scale(1.1);
}

/* ===== Select Dropdown ===== */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239090b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.form-control option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ===== Class Detail Page ===== */
.class-page-header {
    margin-bottom: 2rem;
}

.class-page-header .btn-ghost {
    margin-bottom: 1.25rem;
}

.class-page-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.class-page-icon {
    font-size: 2.5rem;
    line-height: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.75rem;
}

.class-page-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.class-page-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.class-page-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 700px) {
    .class-grid {
        grid-template-columns: 1fr;
    }

    .tab-bar {
        gap: 0.25rem;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.82rem;
    }
}