/* ============================================================
   GSVerwaltung – Modern Pro Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius:    8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --sidebar-width: 248px;
    --topbar-height: 58px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.18s var(--ease);
}

/* ── Dark Theme ──────────────────────────────────────────── */
[data-theme="dark"] {
    --bg-base:        #080b12;
    --bg-surface:     #0e1117;
    --bg-elevated:    #141822;
    --bg-hover:       #1c2235;
    --bg-active:      #202740;
    --border:         #1f2537;
    --border-subtle:  #191e2e;
    --border-strong:  #2d3550;
    --text-primary:   #edf0ff;
    --text-secondary: #8892b0;
    --text-muted:     #4e5a7a;
    --sidebar-bg:     #090c14;
    --input-bg:       #0e1117;
    --input-border:   #252d42;
    --code-bg:        #080b12;

    --blue:     #5b8dee;
    --blue-dim: rgba(91,141,238,0.12);
    --green:    #3ecf8e;
    --green-dim:rgba(62,207,142,0.12);
    --red:      #f06a6a;
    --red-dim:  rgba(240,106,106,0.12);
    --orange:   #f5a623;
    --orange-dim:rgba(245,166,35,0.12);
    --purple:   #9b6dff;
    --purple-dim:rgba(155,109,255,0.12);
    --yellow:   #fbbf24;

    --gradient-primary: linear-gradient(135deg, #5b8dee 0%, #7c5eff 100%);
    --gradient-surface: linear-gradient(180deg, #141822 0%, #0e1117 100%);
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow:     0 4px 16px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
    --shadow-glow:0 0 0 1px rgba(91,141,238,0.2), 0 4px 24px rgba(91,141,238,0.12);
    --glow-blue:  0 0 0 3px rgba(91,141,238,0.18);
    --glow-green: 0 0 0 3px rgba(62,207,142,0.15);
}

/* ── Light Theme ─────────────────────────────────────────── */
[data-theme="light"] {
    --bg-base:        #f4f6fb;
    --bg-surface:     #ffffff;
    --bg-elevated:    #f8f9fd;
    --bg-hover:       #eef1fa;
    --bg-active:      #e6eaf8;
    --border:         #e4e8f4;
    --border-subtle:  #edf0f9;
    --border-strong:  #cdd3e8;
    --text-primary:   #111827;
    --text-secondary: #4b5675;
    --text-muted:     #94a3b8;
    --sidebar-bg:     #0e1117;
    --input-bg:       #ffffff;
    --input-border:   #dde2f0;
    --code-bg:        #f1f4fb;

    --blue:     #3b6fd4;
    --blue-dim: rgba(59,111,212,0.1);
    --green:    #0f9b6a;
    --green-dim:rgba(15,155,106,0.1);
    --red:      #d94040;
    --red-dim:  rgba(217,64,64,0.1);
    --orange:   #d97706;
    --orange-dim:rgba(217,119,6,0.1);
    --purple:   #7c3aed;
    --purple-dim:rgba(124,58,237,0.1);
    --yellow:   #d97706;

    --gradient-primary: linear-gradient(135deg, #3b6fd4 0%, #7c3aed 100%);
    --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8f9fd 100%);
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:     0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-glow:0 0 0 1px rgba(59,111,212,0.2), 0 4px 24px rgba(59,111,212,0.1);
    --glow-blue:  0 0 0 3px rgba(59,111,212,0.15);
    --glow-green: 0 0 0 3px rgba(15,155,106,0.12);
}

/* ── Base ────────────────────────────────────────────────── */
html, body {
    height: 100%;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--blue); }
code, pre { font-family: var(--font-mono); }
::selection { background: rgba(91,141,238,0.25); }

/* ============================================================
   Layout
   ============================================================ */
.layout { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--transition);
}

[data-theme="light"] .sidebar {
    border-right-color: rgba(0,0,0,0.1);
}

.sidebar::-webkit-scrollbar { width: 0; }

.sidebar-brand {
    display: flex;
    align-items: center;
    padding: 18px 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    min-height: 60px;
}
.sidebar-brand img { flex-shrink: 0; max-width: 100%; filter: brightness(1.1); }

.sidebar-nav { flex: 1; padding: 10px 8px; }

.nav-section { margin-bottom: 2px; }
.nav-section-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.2);
    padding: 12px 10px 5px;
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all var(--transition);
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    margin-bottom: 1px;
}
.nav-item svg { flex-shrink: 0; opacity: 0.7; transition: opacity var(--transition); }
.nav-item:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}
.nav-item:hover svg { opacity: 1; }
.nav-item.active {
    color: #fff;
    background: rgba(91,141,238,0.18);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(91,141,238,0.2);
}
.nav-item.active svg { opacity: 1; color: var(--blue); }
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 2px;
    background: var(--blue);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px var(--blue);
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.version-info { font-size: 11px; color: rgba(255,255,255,0.2); }

/* ── Main Content ────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
    height: var(--topbar-height);
    background: rgba(14,17,23,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    position: sticky;
    top: 0;
    z-index: 100;
}
[data-theme="light"] .topbar {
    background: rgba(255,255,255,0.88);
}

.sidebar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.sidebar-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}
.topbar-right { display: flex; align-items: center; gap: 10px; }

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }

/* User Menu */
.user-menu { position: relative; }
.user-menu-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 5px 10px 5px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
}
.user-menu-btn:hover { border-color: var(--blue); background: var(--bg-hover); }

.avatar {
    width: 26px; height: 26px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0; top: calc(100% + 8px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 190px;
    z-index: 300;
    overflow: hidden;
    padding: 4px;
}
.user-dropdown.show { display: block; animation: dropIn 0.15s var(--ease); }
@keyframes dropIn { from { opacity:0; transform:translateY(-6px) scale(.97); } to { opacity:1; transform:none; } }

.user-dropdown a, .user-dropdown .dropdown-logout {
    display: block;
    padding: 8px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-family: inherit;
}
.user-dropdown a:hover, .user-dropdown .dropdown-logout:hover {
    background: var(--bg-hover);
    text-decoration: none;
    color: var(--text-primary);
}
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ============================================================
   Page
   ============================================================ */
.page-content {
    flex: 1;
    padding: 28px 28px 16px;
}

.page-footer {
    padding: 14px 28px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 14px;
    align-items: center;
}
.footer-sep { color: var(--border-strong); }

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.page-header h2 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition);
}
.card:hover { border-color: var(--border-strong); }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.card-header h3 { font-size: 14px; font-weight: 600; letter-spacing: -0.1px; }
.card-body { padding: 20px; }
.card-body.p-0 { padding: 0; }

/* ============================================================
   Stats Grid
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-surface);
    opacity: 0;
    transition: opacity var(--transition);
}
.stat-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}
.stat-card:hover::before { opacity: 1; }

.stat-icon {
    width: 46px; height: 46px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.stat-icon-blue   { background: var(--blue-dim);   color: var(--blue);   box-shadow: 0 0 0 1px rgba(91,141,238,0.15); }
.stat-icon-green  { background: var(--green-dim);  color: var(--green);  box-shadow: 0 0 0 1px rgba(62,207,142,0.15); }
.stat-icon-orange { background: var(--orange-dim); color: var(--orange); box-shadow: 0 0 0 1px rgba(245,166,35,0.15); }
.stat-icon-purple { background: var(--purple-dim); color: var(--purple); box-shadow: 0 0 0 1px rgba(155,109,255,0.15); }
.stat-icon-red    { background: var(--red-dim);    color: var(--red);    box-shadow: 0 0 0 1px rgba(240,106,106,0.15); }

.stat-content { display: flex; flex-direction: column; position: relative; z-index: 1; }
.stat-value { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; font-weight: 500; }

/* ============================================================
   Tables
   ============================================================ */
.table-wrapper { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
    color: var(--text-primary);
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--bg-hover); }

/* ============================================================
   Badges
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 99px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.badge-success { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(62,207,142,0.2); }
.badge-danger  { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(240,106,106,0.2); }
.badge-warning { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(245,166,35,0.2); }
.badge-info    { background: var(--blue-dim);   color: var(--blue);   border: 1px solid rgba(91,141,238,0.2); }
.badge-primary { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(155,109,255,0.2); }
.badge-neutral { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-secondary { background: var(--bg-hover); color: var(--text-secondary); border: 1px solid var(--border); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
    font-family: inherit;
    letter-spacing: -0.1px;
    position: relative;
    overflow: hidden;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(91,141,238,0.3), 0 4px 12px rgba(91,141,238,0.2);
    border-color: rgba(255,255,255,0.1);
}
.btn-primary:hover {
    color: #fff;
    box-shadow: 0 2px 6px rgba(91,141,238,0.4), 0 8px 20px rgba(91,141,238,0.25);
    filter: brightness(1.08);
}

.btn-success {
    background: linear-gradient(135deg, #3ecf8e 0%, #2ab578 100%);
    color: #fff;
    box-shadow: 0 1px 3px rgba(62,207,142,0.3);
}
.btn-success:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 2px 8px rgba(62,207,142,0.4); }

.btn-danger {
    background: linear-gradient(135deg, #f06a6a 0%, #d94545 100%);
    color: #fff;
    box-shadow: 0 1px 3px rgba(240,106,106,0.3);
}
.btn-danger:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 2px 8px rgba(240,106,106,0.4); }

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--blue); }

.btn-warning { background: linear-gradient(135deg, #f5a623, #e8920d); color: #fff; }
.btn-warning:hover { color:#fff; filter:brightness(1.08); }

.btn-sm  { padding: 5px 11px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-lg  { padding: 11px 24px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-full{ width: 100%; }
.btn-link{ background: none; border: none; color: var(--blue); cursor: pointer; font-size: 13.5px; padding: 0; font-family:inherit; transform:none !important; }
.btn-link:hover { text-decoration: underline; }

.action-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-inline-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.form-inline-row .form-group { margin-bottom: 0; }

/* Zwei-Spalten-Layout für Geplante Aufgaben */
.two-col-layout { display: flex !important; flex-direction: row !important; gap: 24px; align-items: flex-start; }
.two-col-layout .col-main { flex: 1 1 0%; min-width: 0; }
.two-col-layout .col-side { flex: 0 0 320px; width: 320px; background: #1a1f30; border-radius: 10px; padding: 20px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text-secondary);
    letter-spacing: -0.1px;
}

.form-input, select.form-input, textarea.form-input {
    width: 100%;
    padding: 9px 13px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    appearance: none;
    -webkit-appearance: none;
}
select.form-input {
    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='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}
.form-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: var(--glow-blue);
    background: var(--bg-surface);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input-center { text-align: center; letter-spacing: 6px; font-size: 22px; font-weight: 700; }
textarea.form-input { min-height: 100px; resize: vertical; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint, small.text-muted { font-size: 12px; color: var(--text-muted); margin-top: 5px; display: block; }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; }

.input-password-wrapper { position: relative; }
.input-password-wrapper .form-input { padding-right: 42px; }
.password-toggle {
    position: absolute;
    right: 11px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding: 0;
    transition: color var(--transition);
}
.password-toggle:hover { color: var(--text-primary); }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 13px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13.5px;
    gap: 10px;
    font-weight: 500;
}
.alert-success { background: var(--green-dim); border: 1px solid rgba(62,207,142,0.25); color: var(--green); }
.alert-error   { background: var(--red-dim);   border: 1px solid rgba(240,106,106,0.25); color: var(--red); }
.alert-warning { background: var(--orange-dim);border: 1px solid rgba(245,166,35,0.25);  color: var(--orange); }
.alert-info    { background: var(--blue-dim);  border: 1px solid rgba(91,141,238,0.25);  color: var(--blue); }
.alert-close { background: none; border: none; font-size: 18px; cursor: pointer; color: inherit; opacity: 0.6; padding: 0; line-height: 1; flex-shrink: 0; }
.alert-close:hover { opacity: 1; }

/* ============================================================
   Auth Page
   ============================================================ */
.auth-page {
    background: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}
.auth-page::before {
    content: '';
    position: fixed;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(91,141,238,0.08) 0%, transparent 70%);
    top: -200px; left: -100px;
    pointer-events: none;
}
.auth-page::after {
    content: '';
    position: fixed;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(155,109,255,0.06) 0%, transparent 70%);
    bottom: -150px; right: -50px;
    pointer-events: none;
}

.auth-container { width: 100%; max-width: 400px; padding: 20px; position: relative; z-index: 1; }

.auth-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 38px 36px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.02);
}

.auth-brand { text-align: center; margin-bottom: 30px; }
.auth-brand h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-top: 14px; }
.auth-brand p  { color: var(--text-muted); font-size: 13px; margin-top: 5px; }

.auth-form { display: flex; flex-direction: column; }
.auth-links { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.auth-links a { color: var(--blue); font-weight: 500; }
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}
.auth-footer a { color: var(--text-muted); }
.auth-footer a:hover { color: var(--text-primary); }

/* ============================================================
   Console
   ============================================================ */
.console-output {
    background: #06080f;
    color: #7ee787;
    font-family: var(--font-mono);
    font-size: 12.5px;
    padding: 16px;
    border-radius: var(--radius);
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
    line-height: 1.75;
    border: 1px solid rgba(255,255,255,0.06);
}
.console-line { display: block; }
.console-line.err  { color: #f85149; }
.console-line.warn { color: #e3b341; }

/* ============================================================
   File Manager
   ============================================================ */
.file-list { list-style: none; }
.file-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}
.file-item:hover { background: var(--bg-hover); }
.file-item:last-child { border-bottom: none; }
.file-icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.file-name { flex: 1; font-size: 13.5px; }
.file-name a { color: var(--text-primary); }
.file-name a:hover { color: var(--blue); text-decoration: none; }
.file-size     { font-size: 12px; color: var(--text-muted); width: 80px; text-align: right; }
.file-modified { font-size: 12px; color: var(--text-muted); width: 140px; text-align: right; }

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-muted);
}
.empty-state svg { margin-bottom: 16px; opacity: 0.2; }
.empty-state p { margin-bottom: 20px; font-size: 14px; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; background: var(--blue-dim); }
.pagination .active { background: var(--gradient-primary); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(91,141,238,0.3); }

/* ============================================================
   Utilities
   ============================================================ */
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.text-primary   { color: var(--blue) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-success   { color: var(--green) !important; }
.text-danger    { color: var(--red) !important; }
.text-sm        { font-size: 12px; }
.fw-semibold    { font-weight: 600; }
.fw-bold        { font-weight: 700; }
.d-flex         { display: flex; }
.align-center   { align-items: center; }
.gap-2          { gap: 8px; }
.w-100          { width: 100%; }
.text-center    { text-align: center; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .page-content { padding: 16px; }
    .topbar { padding: 0 16px; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .auth-box { padding: 28px 22px; }
}

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
