/* AcclimateServer Admin — Dark theme matching AcclimateStudio */
:root {
    --bg-base: #0f172a;
    --bg-surface: #1e293b;
    --bg-elevated: #283548;
    --accent: #78d10b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --status-pass: #22c55e;
    --status-warn: #eab308;
    --status-fail: #ef4444;
    --border: rgba(255,255,255,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.nav-bar {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    height: 48px;
    gap: 4px;
}

.nav-brand {
    font-weight: 600;
    color: var(--accent);
    margin-right: 20px;
    font-size: 15px;
}

.nav-link, .btn-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    transition: background 0.15s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover, .btn-link:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.nav-spacer { flex: 1; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

/* Cards */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.stat-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    flex: 1;
    text-align: center;
}

.stat-card .number {
    font-size: 28px;
    font-weight: 700;
}

.stat-card .label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

tr:hover td {
    background: var(--bg-elevated);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-new { background: rgba(239,68,68,0.2); color: var(--status-fail); }
.badge-acknowledged { background: rgba(234,179,8,0.2); color: var(--status-warn); }
.badge-inprogress { background: rgba(59,130,246,0.2); color: #3b82f6; }
.badge-resolved { background: rgba(34,197,94,0.2); color: var(--status-pass); }

.badge-low { background: rgba(100,116,139,0.2); color: var(--text-muted); }
.badge-medium { background: rgba(59,130,246,0.2); color: #3b82f6; }
.badge-high { background: rgba(234,179,8,0.2); color: var(--status-warn); }
.badge-critical { background: rgba(239,68,68,0.2); color: var(--status-fail); }

/* Feedback type badges */
.badge-bug { background: rgba(239,68,68,0.2); color: var(--status-fail); }
.badge-feature { background: rgba(168,85,247,0.2); color: #a855f7; }
.badge-question { background: rgba(100,116,139,0.2); color: var(--text-secondary); }

/* HTTP method badges */
.badge-method-get { background: rgba(34,197,94,0.2); color: var(--status-pass); }
.badge-method-post { background: rgba(59,130,246,0.2); color: #3b82f6; }
.badge-method-patch { background: rgba(234,179,8,0.2); color: var(--status-warn); }
.badge-method-put { background: rgba(168,85,247,0.2); color: #a855f7; }
.badge-method-delete { background: rgba(239,68,68,0.2); color: var(--status-fail); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: opacity 0.15s;
}

.btn:hover { opacity: 0.85; }

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-danger {
    background: var(--status-fail);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* Forms */
input[type="text"], input[type="password"], textarea, select {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
}

label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group {
    margin-bottom: 16px;
}

/* Gate indicator */
.gate-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.gate-open {
    background: rgba(34,197,94,0.15);
    color: var(--status-pass);
}

.gate-closed {
    background: rgba(239,68,68,0.15);
    color: var(--status-fail);
}

/* Screenshot */
.screenshot-preview {
    max-width: 100%;
    max-height: 400px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 8px;
}

/* Login */
.login-box {
    max-width: 360px;
    margin: 100px auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 24px;
}

/* Muted text */
.text-muted { color: var(--text-muted); }
.text-small { font-size: 12px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mt-16 { margin-top: 16px; }
