:root {
    --bg: #0a0a0f;
    --surface: #14141f;
    --surface-hover: #1a1a2e;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.3);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --font: 'Inter', system-ui, sans-serif;
    --radius: 12px;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Login */
.login-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    margin-bottom: 0.5rem;
}

.login-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.login-box input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}

.login-box button {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.error {
    color: var(--error);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Dashboard */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.tab:hover {
    background: var(--surface);
}

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

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.stat-card h3 {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

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

/* Charts */
.chart-container {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.chart-container h3 {
    margin-bottom: 1rem;
}

.chart-container canvas {
    max-height: 300px;
}

/* Tables */
.table-container {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.table-container h3 {
    margin-bottom: 1rem;
}

.site-pages {
    margin-bottom: 1.5rem;
}

.site-pages h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.page-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
}

.page-row span:first-child {
    color: var(--text-muted);
}

/* Feedback */
.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--warning);
}

.feedback-card.resolved {
    border-left-color: var(--success);
    opacity: 0.6;
}

.feedback-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.feedback-url {
    color: var(--primary);
    word-break: break-all;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.feedback-desc {
    line-height: 1.5;
}

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