/* Shared REZYN theme: brings dashboard pages in line with the homepage + sidebar.
   Injected last in <head> (see app.py), so `html body` selectors win over each page's inline styles. */
:root {
    --rz-bg: #07070c;
    --rz-panel: rgba(255,255,255,0.035);
    --rz-panel-hi: rgba(255,255,255,0.06);
    --rz-line: rgba(255,255,255,0.08);
    --rz-text: #f4f4f8;
    --rz-muted: #9a9ab0;
    --rz-accent: #818cf8;
    --rz-accent2: #22d3ee;
    --rz-danger: #f87171;
    --rz-success: #34d399;
    --rz-radius: 16px;
}

html body {
    background: var(--rz-bg);
    background-image:
        radial-gradient(600px 400px at 25% 0%, rgba(99,102,241,0.16), transparent 70%),
        radial-gradient(500px 400px at 95% 10%, rgba(34,211,238,0.08), transparent 70%);
    background-attachment: fixed;
    color: var(--rz-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}
html body * { font-family: inherit; }
html body code, html body pre, html body textarea.code, html body .mono { font-family: ui-monospace, 'JetBrains Mono', Consolas, monospace; }

/* Layout */
html body .main, html body .main-container, html body .container {
    max-width: 1080px;
    padding: 44px 32px 56px;
}

/* Typography */
html body h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    text-shadow: none;
    margin: 0 0 22px;
    background: linear-gradient(120deg, #fff 20%, var(--rz-accent) 70%, var(--rz-accent2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
html body h2, html body h3 {
    color: var(--rz-text);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: none;
    border-bottom-color: var(--rz-line);
}
html body h2 { font-size: 1.3rem; }
html body h3 { font-size: 1.05rem; }
html body p, html body label, html body small { color: var(--rz-muted); }
html body a { color: var(--rz-accent); }
html body a:hover { color: #a5b4fc; }
html body .sidebar-cyber a { color: inherit; }

/* Panels */
html body .card, html body .dash-card, html body .settings-card, html body .command-card,
html body .stat-card, html body .site-card, html body .table-container, html body .modal-content {
    background: var(--rz-panel);
    border: 1px solid var(--rz-line);
    border-radius: var(--rz-radius);
    box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 20px 40px -24px rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    box-sizing: border-box;
}
html body .card, html body .dash-card, html body .settings-card { padding: 26px 28px; }
html body .command-card, html body .stat-card { transition: border-color .2s, background .2s, transform .2s; }
html body .command-card:hover, html body .stat-card:hover { border-color: rgba(129,140,248,0.35); background: var(--rz-panel-hi); }
html body .stat-card-title, html body .stat-card-sub-title, html body .card-title {
    color: var(--rz-muted); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
html body .stat-card-value { color: var(--rz-text); font-weight: 800; letter-spacing: -0.02em; }
html body .modal-backdrop, html body .overlay { background: rgba(5,5,10,0.7); backdrop-filter: blur(6px); }
html body .modal-header { border-bottom: 1px solid var(--rz-line); }

/* Forms */
html body input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]),
html body select, html body textarea, html body .themed-input, html body .form-input, html body .form-select {
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--rz-line);
    border-radius: 10px;
    color: var(--rz-text);
    padding: 10px 12px;
    font-size: .92rem;
    box-shadow: none;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
html body input:focus, html body select:focus, html body textarea:focus {
    border-color: rgba(129,140,248,0.6);
    box-shadow: 0 0 0 3px rgba(129,140,248,0.18);
}
html body input::placeholder, html body textarea::placeholder { color: #5d5d72; }
html body select option { background: #12121a; color: var(--rz-text); }
html body input[type=checkbox], html body input[type=radio] { accent-color: var(--rz-accent); }
html body .form-group label, html body label {
    font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--rz-muted);
}

/* Buttons */
html body button, html body .btn, html body .action-btn, html body .save-btn, html body .btn-primary, html body .link-button {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: 1px solid rgba(165,180,252,0.25);
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: 0;
    text-shadow: none;
    box-shadow: 0 8px 24px -12px rgba(99,102,241,0.8);
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, filter .2s;
}
html body button:hover, html body .btn:hover, html body .action-btn:hover, html body .save-btn:hover, html body .link-button:hover {
    transform: translateY(-1px); filter: brightness(1.1); color: #fff;
}
html body button:disabled, html body .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
html body .btn-secondary, html body .filter-btn, html body .edit-btn, html body .close-btn {
    background: var(--rz-panel-hi); border: 1px solid var(--rz-line); color: var(--rz-text); box-shadow: none;
}
html body .filter-btn.active { background: rgba(99,102,241,0.22); border-color: rgba(129,140,248,0.45); }
html body .btn-danger, html body .delete-btn {
    background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.35); color: #fca5a5; box-shadow: none;
}
html body .btn-danger:hover, html body .delete-btn:hover { background: rgba(248,113,113,0.22); color: #fff; }
html body .btn-success { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 8px 24px -12px rgba(16,185,129,0.8); }
html body .btn-discord { background: #5865F2; }
html body .btn-kick { background: #53fc18; color: #08110a; }
html body .btn-small, html body .btn-sm { padding: 6px 12px; font-size: .8rem; border-radius: 8px; }
html body .sidebar-cyber button { all: revert; }

/* Tables */
html body table { border-collapse: separate; border-spacing: 0; width: 100%; }
html body th {
    color: var(--rz-muted); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--rz-line);
}
html body td { border-bottom: 1px solid var(--rz-line); color: var(--rz-text); }
html body tr:hover td { background: rgba(255,255,255,0.025); }

/* Small bits */
html body .badge {
    background: rgba(129,140,248,0.14); color: #c7d2fe; border: 1px solid rgba(129,140,248,0.3);
    border-radius: 999px; padding: 2px 10px; font-size: .72rem; font-weight: 600;
}
html body .error-box {
    background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.3); color: #fecaca; border-radius: 12px;
}
html body .server-header img, html body .server-icon { border-radius: 14px; }
html body hr { border: 0; border-top: 1px solid var(--rz-line); }
html body ::selection { background: rgba(129,140,248,0.35); }
html body ::-webkit-scrollbar { width: 10px; height: 10px; }
html body ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 999px; }

@media (max-width: 800px) {
    html body .main, html body .main-container, html body .container { padding: 24px 16px 40px; }
    html body .card, html body .dash-card, html body .settings-card { padding: 20px; }
}
