/* CREATESONLINE Admin Panel - Monochrome */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root {
    --bg: #0b0d12;
    --panel: #0f1118;
    --card: #11131c;
    --border: #1c2030;
    --text: #f6f7fb;
    --muted: #9ca3af;
    --accent: #ffffff;
    --success: #6ee7b7;
    --warning: #fbbf24;
    --danger: #f87171;
}

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

body {
    font-family: 'Space Grotesk', 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.admin-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    background: rgba(15,17,24,0.9);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    display: grid;
    place-items: center;
    padding: 6px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-title {
    font-weight: 700;
    letter-spacing: 0.06em;
}

.brand-version {
    color: var(--muted);
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.btn {
    border: 1px solid var(--border);
    background: var(--text);
    color: #0b0d12;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.admin-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 72px);
}

.admin-sidebar {
    width: 240px;
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 18px;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}

.sidebar-nav {
    display: grid;
    gap: 18px;
}

.nav-section-title {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.nav-menu {
    list-style: none;
    display: grid;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255,255,255,0.04);
}

.nav-icon {
    width: 16px;
    display: inline-flex;
    justify-content: center;
}

.admin-main {
    flex: 1;
    padding: 26px;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.04), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.breadcrumbs {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

.breadcrumbs a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.breadcrumbs a:hover {
    border-color: rgba(255,255,255,0.4);
}

.admin-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 18px 38px rgba(0,0,0,0.45);
}

.admin-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.admin-card-header {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    color: var(--text);
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.admin-table th {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.admin-table tr:hover {
    background: rgba(255,255,255,0.03);
}

.admin-form-group { margin-bottom: 12px; }
.admin-form-label {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.admin-form-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text);
}

.admin-form-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 10px 26px rgba(0,0,0,0.3);
}

.admin-btn {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    transition: all 0.2s ease;
}

.admin-btn:hover { transform: translateY(-1px); }
.admin-btn-primary { background: var(--text); color: #0b0d12; border-color: transparent; }
.admin-btn-success { background: var(--success); color: #0b0d12; border-color: transparent; }
.admin-btn-danger { background: var(--danger); color: #0b0d12; border-color: transparent; }

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

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

.admin-stat-label { color: var(--muted); }

.admin-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-badge-success { background: rgba(110,231,183,0.12); color: var(--success); }
.admin-badge-warning { background: rgba(251,191,36,0.12); color: var(--warning); }
.admin-badge-danger { background: rgba(248,113,113,0.12); color: var(--danger); }

@media (max-width: 960px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { position: static; width: 100%; height: auto; display: flex; gap: 12px; }
    .admin-main { padding: 18px; }
}
