:root {
    --bg: #0f172a;
    --sidebar: #1e293b;
    --card: #020617;
    --accent: #38bdf8;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --success: #22c55e;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.admin-sidebar {
    width: 280px;
    background: var(--sidebar);
    padding: 2rem;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.admin-sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item {
    display: block;
    padding: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.nav-item.active {
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
}

/* --- Main Content --- */
.admin-main {
    flex-grow: 1;
    padding: 3rem;
    max-width: 1200px;
}

.admin-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
    color: var(--accent);
}

/* --- Forms --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

input, select, textarea {
    width: 100%;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
}

.btn {
    background: var(--accent);
    color: var(--bg);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

/* --- Preview --- */
.live-link-box {
    background: #0ea5e9;
    padding: 1.5rem;
    border-radius: 1rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-link-box code {
    font-size: 1.1rem;
    font-weight: 700;
}
