/* ============================================================
   GERICHTSURTEILS-DATENBANK - Design System
   Dark Theme, Glassmorphism, Ultra-Modern
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-strong: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.06);

    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(99, 140, 255, 0.5);
    --border-card: rgba(255, 255, 255, 0.06);

    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --text-muted: #5f6368;
    --text-link: #8ab4f8;

    --accent: #638cff;
    --accent-hover: #7da1ff;
    --accent-glow: rgba(99, 140, 255, 0.2);
    --accent-bg: rgba(99, 140, 255, 0.1);

    --success: #34d399;
    --warning: #fbbf24;
    --error: #f87171;
    --info: #60a5fa;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text-link); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }

/* --- Preloader --- */
#preloader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--bg-primary);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-logo {
    font-size: 2.5rem; font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 50%, var(--accent) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    margin-bottom: 2rem;
}
.preloader-subtitle {
    color: var(--text-secondary); font-size: 0.95rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 3rem;
}
.preloader-bar {
    width: 200px; height: 3px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.preloader-bar-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), #a78bfa);
    border-radius: var(--radius-full);
    animation: preload-fill 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preload-fill { to { width: 100%; } }
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- App Shell --- */
#app { opacity: 0; transition: opacity 0.5s ease; }
#app.visible { opacity: 1; }

.view.hidden { display: none !important; }
.navbar.hidden { display: none !important; }

/* --- Navigation --- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 64px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 2rem;
}
.nav-brand {
    font-size: 1.25rem; font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}
.nav-stats {
    margin-left: auto;
    display: flex; gap: 2rem; align-items: center;
}
.nav-stat {
    display: flex; flex-direction: column; align-items: center;
    font-size: 0.7rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em;
}
.nav-stat-value {
    font-size: 1.1rem; font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.nav-user {
    margin-left: 2rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.nav-user-name {
    font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
}
.btn-logout {
    padding: 0.4rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.8rem; cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-logout:hover { background: var(--bg-glass-strong); color: var(--text-primary); }

/* --- Auth Pages --- */
.auth-container {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 140, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.06) 0%, transparent 50%),
        var(--bg-primary);
}

.auth-card {
    width: 100%; max-width: 420px;
    background: var(--bg-glass);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    animation: slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-logo {
    font-size: 1.8rem; font-weight: 800; text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-subtitle {
    text-align: center; color: var(--text-secondary);
    font-size: 0.9rem; margin-bottom: 2.5rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block; font-size: 0.8rem; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 0.5rem;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.form-input {
    width: 100%; padding: 0.85rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem; font-family: var(--font-sans);
    transition: all var(--transition-fast);
    outline: none;
}
.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255,255,255,0.08);
}
.form-input::placeholder { color: var(--text-muted); }

.btn-primary {
    width: 100%; padding: 0.9rem;
    background: linear-gradient(135deg, var(--accent), #5a7de6);
    border: none; border-radius: var(--radius-md);
    color: #fff; font-size: 0.95rem; font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer; transition: all var(--transition-fast);
    position: relative; overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
    opacity: 0.5; cursor: not-allowed; transform: none;
}

.auth-switch {
    text-align: center; margin-top: 1.5rem;
    font-size: 0.85rem; color: var(--text-secondary);
}
.auth-switch a { color: var(--accent); font-weight: 500; cursor: pointer; }

.form-error {
    padding: 0.75rem 1rem;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: var(--radius-sm);
    color: var(--error);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: none;
}
.form-error.visible { display: block; animation: shake 0.4s ease; }

/* --- Main Layout --- */
.main-content {
    padding-top: 64px;
    min-height: 100vh;
}

/* --- Search Section --- */
.search-section {
    padding: 3rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.search-bar-wrap {
    position: relative;
    margin-bottom: 1.5rem;
}
.search-input {
    width: 100%;
    padding: 1.1rem 1.25rem 1.1rem 3.2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-sans);
    outline: none;
    transition: all var(--transition-fast);
}
.search-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
    background: var(--bg-glass-strong);
}
.search-icon {
    position: absolute; left: 1.1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); font-size: 1.1rem;
    pointer-events: none;
}
.search-shortcut {
    position: absolute; right: 1rem; top: 50%;
    transform: translateY(-50%);
    padding: 0.2rem 0.6rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.7rem; font-family: var(--font-mono);
}

/* --- Filters --- */
.filters-row {
    display: flex; gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.filter-select {
    padding: 0.6rem 2rem 0.6rem 0.85rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-family: var(--font-sans);
    cursor: pointer; outline: none;
    transition: all var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235f6368'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
}
.filter-select:focus {
    border-color: var(--border-focus);
    color: var(--text-primary);
}
.filter-date {
    padding: 0.6rem 0.85rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-family: var(--font-sans);
    outline: none;
    transition: all var(--transition-fast);
}
.filter-date:focus {
    border-color: var(--border-focus);
    color: var(--text-primary);
}
.filter-sort {
    margin-left: auto;
}
.btn-clear-filters {
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8rem; cursor: pointer;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
}
.btn-clear-filters:hover {
    border-color: var(--error);
    color: var(--error);
}

/* --- Results Meta --- */
.results-meta {
    display: flex; justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.results-count span { color: var(--text-primary); font-weight: 600; }
.results-time { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.75rem; }

/* --- Result Cards --- */
.results-list { display: flex; flex-direction: column; gap: 0.5rem; }

.result-card {
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    animation: fade-in 0.3s ease both;
}
.result-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 140, 255, 0.15);
    transform: translateX(4px);
}

.result-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 0.6rem;
}
.result-gericht {
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    background: var(--accent-bg);
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.result-az {
    font-size: 0.9rem; font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}
.result-datum {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: auto;
    white-space: nowrap;
}

.result-title {
    font-size: 0.92rem; font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-preview {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-tags {
    display: flex; gap: 0.5rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}
.result-tag {
    font-size: 0.68rem;
    padding: 0.15rem 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

/* --- Pagination --- */
.pagination {
    display: flex; justify-content: center;
    align-items: center; gap: 0.5rem;
    padding: 2rem 0;
}
.page-btn {
    min-width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem; cursor: pointer;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
}
.page-btn:hover { background: var(--bg-glass-strong); color: var(--text-primary); }
.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff; font-weight: 600;
}
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-dots { color: var(--text-muted); font-size: 0.85rem; }

/* --- Detail View (Modal) --- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 64px 2rem 2rem;
    overflow-y: auto;
    animation: fade-in 0.2s ease;
}
.modal-overlay.hidden { display: none; }

.modal-card {
    width: 100%; max-width: 900px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 2rem;
}

.modal-header {
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.modal-close {
    float: right;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.modal-close:hover { background: rgba(248,113,113,0.1); color: var(--error); border-color: rgba(248,113,113,0.3); }

.modal-gericht {
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.modal-az {
    font-size: 1.6rem; font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.modal-meta {
    display: flex; gap: 1.5rem;
    font-size: 0.82rem; color: var(--text-secondary);
    flex-wrap: wrap;
}
.modal-meta-item { display: flex; align-items: center; gap: 0.3rem; }

.modal-body { padding: 2rem 2.5rem; }

.modal-section { margin-bottom: 2rem; }
.modal-section-title {
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.modal-section-text {
    font-size: 0.9rem; line-height: 1.7;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.modal-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid var(--border);
    display: flex; gap: 1rem;
    flex-wrap: wrap;
}
.modal-link {
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.modal-link:hover { border-color: var(--accent); color: var(--accent); }

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-title {
    font-size: 1.2rem; font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.empty-desc { color: var(--text-muted); font-size: 0.9rem; }

/* --- Loading --- */
.loading-spinner {
    display: flex; align-items: center; justify-content: center;
    padding: 3rem;
}
.spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* --- Landing Stats (public) --- */
.landing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.stat-card {
    padding: 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}
.stat-value {
    font-size: 2rem; font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em;
}

/* --- Animations --- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-4px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Responsive --- */
@media (max-width: 768px) {
    .navbar { padding: 0 1rem; }
    .nav-stats { gap: 1rem; }
    .nav-stat { display: none; }
    .nav-stat:first-child { display: flex; }

    .auth-card { padding: 2rem 1.5rem; }
    .search-section { padding: 2rem 1rem; }
    .search-input { font-size: 1rem; padding-left: 2.8rem; }

    .filters-row { gap: 0.5rem; }
    .filter-select, .filter-date { font-size: 0.78rem; flex: 1 1 auto; min-width: 0; }
    .filter-sort { margin-left: 0; }

    .result-card { padding: 1rem; }
    .result-header { flex-wrap: wrap; }
    .result-datum { margin-left: 0; }

    .modal-overlay { padding: 0; }
    .modal-card { border-radius: 0; min-height: 100vh; }
    .modal-header, .modal-body, .modal-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
    .modal-az { font-size: 1.2rem; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Content Badges --- */
.content-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.content-badge.full {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.content-badge.meta {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}
.result-card-sparse {
    opacity: 0.7;
}
.result-card-sparse:hover {
    opacity: 1;
}

/* --- Search Highlighting --- */
mark.search-highlight {
    background: rgba(99, 140, 255, 0.25);
    color: #c5d5ff;
    padding: 0.05em 0.15em;
    border-radius: 2px;
    font-style: normal;
}
.result-title mark.search-highlight {
    background: rgba(99, 140, 255, 0.3);
    color: #dfe8ff;
}
.result-preview mark.search-highlight {
    background: rgba(251, 191, 36, 0.15);
    color: #fde68a;
}

/* --- Modal Improvements --- */
.modal-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.5;
}
.modal-meta-item.ecli {
    font-family: var(--font-mono);
    font-size: 0.75rem;
}
.section-highlight {
    background: rgba(99, 140, 255, 0.05);
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.modal-section-text p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-primary);
}
.modal-section-text p:last-child {
    margin-bottom: 0;
}
.modal-source {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.tag-fundstelle {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */

.btn-admin {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    transition: all 0.2s;
}
.btn-admin:hover {
    background: rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
}

.admin-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.admin-header h2 {
    color: #e2e8f0;
    font-size: 1.4rem;
    font-weight: 700;
}

.admin-create-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.admin-create-card h3 {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.admin-create-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.admin-create-form .form-input {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}
.admin-create-form .filter-select {
    min-width: 100px;
}
.admin-create-form .btn-primary {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
}
.admin-table thead th {
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
    padding: 0.7rem 0.8rem;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-table tbody td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: #cbd5e1;
    font-size: 0.85rem;
}
.admin-table tbody tr:hover {
    background: rgba(255,255,255,0.04);
}
.admin-date {
    color: #64748b;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
}

.admin-select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.admin-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    margin: 0 2px;
}
.admin-btn-active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}
.admin-btn-inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}
.admin-btn-reset {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}
.admin-btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}
.admin-btn:hover {
    filter: brightness(1.3);
}
