:root {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #6c5ce7;
    --green: #00b894;
    --red: #d63031;
    --blue: #0984e3;
    --orange: #e17055;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

.nav-links { display: flex; gap: 1.5rem; }

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }
.nav-logout { color: var(--red) !important; }

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

/* Flash messages */
.flash-messages { margin-bottom: 1.5rem; }

.flash {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.flash-success { background: rgba(0, 184, 148, 0.15); border: 1px solid var(--green); }
.flash-error { background: rgba(214, 48, 49, 0.15); border: 1px solid var(--red); }

/* Login */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-box {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-box h1 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Forms */
input[type="text"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

button {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:hover { opacity: 0.85; }

label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    text-align: left;
}

/* Stats */
h1 { margin-bottom: 1.5rem; }
h2 { margin: 1.5rem 0 1rem; color: var(--text-muted); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-value-sm { font-size: 1rem; }

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.data-table th,
.data-table td {
    padding: 0.65rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table a {
    color: var(--accent);
    text-decoration: none;
}

.data-table a:hover { text-decoration: underline; }

/* Badges */
.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-green { background: rgba(0, 184, 148, 0.2); color: var(--green); }
.badge-red { background: rgba(214, 48, 49, 0.2); color: var(--red); }
.badge-blue { background: rgba(9, 132, 227, 0.2); color: var(--blue); }
.badge-orange { background: rgba(225, 112, 85, 0.2); color: var(--orange); }

/* Collect */
.collect-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.collect-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.collect-card h2 {
    margin: 0 0 0.5rem;
    color: var(--text);
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0;
}

.collect-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.collect-card code {
    background: var(--bg);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Lists */
.list-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.pagination a {
    color: var(--accent);
    text-decoration: none;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state a { color: var(--accent); }

/* Responsive */
@media (max-width: 640px) {
    .navbar { flex-direction: column; gap: 0.75rem; }
    .collect-methods { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
