:root {
    --bg: #0f1117;
    --bg-card: #161822;
    --bg-input: #1e2030;
    --text: #e1e4eb;
    --text-muted: #8b8fa3;
    --accent: #4f8ff7;
    --accent-hover: #3a7de6;
    --green: #27ae60;
    --red: #e74c3c;
    --yellow: #f1c40f;
    --border: #2a2d3a;
    --radius: 8px;
}

* { 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; align-items: center; gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.nav-brand a { color: var(--accent); font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.nav-search { flex: 1; max-width: 500px; position: relative; }
.nav-search input {
    width: 100%; padding: 0.5rem 1rem;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text); font-size: 0.9rem;
}
.nav-search input:focus { outline: none; border-color: var(--accent); }
.nav-links { display: flex; gap: 1rem; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); }

/* Search dropdown */
.search-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 400px; overflow-y: auto; display: none; z-index: 200;
}
.search-dropdown.active { display: block; }
.search-item {
    padding: 0.6rem 1rem; border-bottom: 1px solid var(--border);
    cursor: pointer; display: flex; align-items: center; gap: 0.5rem;
    text-decoration: none; color: var(--text);
}
.search-item:hover { background: var(--bg-input); }
.search-item .badge {
    font-size: 0.7rem; padding: 2px 6px; border-radius: 4px;
    background: var(--accent); color: #fff;
}

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

/* Cards */
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }

/* Stats */
.stat { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Buttons */
.btn {
    display: inline-block; padding: 0.5rem 1.25rem;
    background: var(--accent); color: #fff; border: none;
    border-radius: var(--radius); cursor: pointer; font-size: 0.9rem;
    text-decoration: none;
}
.btn:hover { background: var(--accent-hover); }
.btn-outline {
    background: transparent; border: 1px solid var(--accent); color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.8rem; }

/* Progress bar */
.progress-bar {
    height: 8px; background: var(--bg-input);
    border-radius: 4px; overflow: hidden;
}
.progress-fill {
    height: 100%; border-radius: 4px; transition: width 0.3s;
}
.progress-fill.green { background: var(--green); }
.progress-fill.red { background: var(--red); }
.progress-fill.yellow { background: var(--yellow); }

/* Table */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
tr:hover { background: var(--bg-input); }

/* Footer */
footer {
    text-align: center; padding: 1.5rem;
    color: var(--text-muted); font-size: 0.8rem;
}

/* Hero */
.hero { padding: 2rem 0; text-align: center; }
.hero h1 { font-size: 2rem; color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
    .navbar { flex-wrap: wrap; padding: 0.5rem 1rem; }
    .nav-search { order: 3; flex-basis: 100%; max-width: none; }
    .nav-links { font-size: 0.8rem; gap: 0.5rem; }
}
