:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-container {
    max-width: 400px;
    width: 100%;
    margin: auto;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.6s ease-out;
}

.dashboard-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: none; /* Shown after login */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 { font-size: 1.875rem; font-weight: 700; margin-bottom: 0.5rem; }
p.subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.875rem; }

.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.875rem; }
.input-group input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.input-group input:focus { outline: none; border-color: var(--primary); }

button {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

button.btn-primary {
    background: var(--primary);
    color: white;
}
button.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.nav {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.nav-item {
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 0.25rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-item.active {
    color: var(--text-main);
    border-bottom-color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 1rem;
}

.stat-value { font-size: 2.25rem; font-weight: 700; margin: 0.5rem 0; color: var(--primary); }
.stat-label { color: var(--text-muted); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; padding: 1rem; border-bottom: 1px solid var(--border); }
td { padding: 1rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; }

.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}
.status-active { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-inactive { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.action-btn { background: none; border: none; color: var(--text-muted); padding: 0.25rem; width: auto; font-size: 0.75rem; text-decoration: underline; }
.action-btn:hover { color: var(--text-main); }

.new-key-row { display: flex; gap: 1rem; margin-bottom: 2rem; }
.new-key-row input { flex: 1; margin-bottom: 0; }
.new-key-row button { width: auto; padding-left: 2rem; padding-right: 2rem; }

[v-cloak] { display: none; }
