/* ==========================================================================
   BlackForDays / KonsolZone — Back-Office Administration CSS
   ========================================================================== */
:root {
    --adm-navy: #0b1220;
    --adm-navy-2: #131e35;
    --adm-blue: var(--kz-blue, #1e6cff);
    --adm-blue-hover: var(--kz-blue-hover, #1557d8);
    --adm-bg: #f3f6fb;
    --adm-card: #ffffff;
    --adm-ink: #0f172a;
    --adm-muted: #64748b;
    --adm-border: #e2e8f0;
    --adm-green: #10b981;
    --adm-amber: #f59e0b;
    --adm-red: #ef4444;
    --adm-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

body.adm-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--adm-bg);
    color: var(--adm-ink);
    font-size: 14px;
    line-height: 1.55;
}

.adm-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.adm-sidebar {
    background: var(--adm-navy);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.adm-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    text-decoration: none;
}

.adm-brand__icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--adm-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.adm-brand__txt {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.adm-brand__txt span { color: #7fa8ff; }

.adm-nav-section {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    padding: 12px 12px 6px;
}

.adm-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 3px;
    transition: background 0.15s ease, color 0.15s ease;
}

.adm-nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.adm-nav-link.is-active {
    background: var(--adm-blue);
    color: #ffffff;
}

.adm-nav-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
}

.adm-sidebar__foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Main Content */
.adm-main {
    padding: 28px 34px 56px;
    min-width: 0;
}

.adm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 26px;
}

.adm-header h1 {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.adm-header p {
    margin: 4px 0 0;
    color: var(--adm-muted);
    font-size: 13.5px;
}

/* KPI Grid */
.adm-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.adm-kpi {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    padding: 20px;
}

.adm-kpi__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--adm-muted);
}

.adm-kpi__val {
    font-family: 'Sora', sans-serif;
    font-size: 26px;
    font-weight: 800;
    margin-top: 6px;
    color: var(--adm-ink);
}

.adm-kpi__sub {
    font-size: 12px;
    color: var(--adm-muted);
    margin-top: 4px;
}

/* Cards & Tables */
.adm-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    padding: 22px;
    margin-bottom: 24px;
}

.adm-card h2 {
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 16px;
}

.adm-table-wrap {
    overflow-x: auto;
}

.adm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.adm-table th {
    text-align: left;
    padding: 11px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--adm-border);
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.adm-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.adm-table tr:hover td {
    background: #fafcff;
}

/* Badges */
.adm-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}

.adm-badge--green { background: #d1fae5; color: #065f46; }
.adm-badge--amber { background: #fef3c7; color: #92400e; }
.adm-badge--blue  { background: #dbeafe; color: #1e40af; }
.adm-badge--red   { background: #fee2e2; color: #991b1b; }
.adm-badge--gray  { background: #f1f5f9; color: #475569; }

/* Buttons & Forms */
.adm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.adm-btn--primary { background: var(--adm-blue); color: #ffffff; }
.adm-btn--primary:hover { background: var(--adm-blue-hover); }
.adm-btn--ghost { background: #f1f5f9; color: var(--adm-ink); border-color: var(--adm-border); }
.adm-btn--ghost:hover { background: #e2e8f0; }
.adm-btn--success { background: #10b981; color: #ffffff; }
.adm-btn--danger { background: #fee2e2; color: #b91c1c; }
.adm-btn--danger:hover { background: #fecaca; }
.adm-btn--sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }

.adm-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.adm-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.adm-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.adm-field label {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
}

.adm-field input,
.adm-field select,
.adm-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 13.5px;
    font-family: inherit;
    background: #ffffff;
}

.adm-field input:focus,
.adm-field select:focus,
.adm-field textarea:focus {
    outline: none;
    border-color: var(--adm-blue);
    box-shadow: 0 0 0 3px rgba(30, 108, 255, 0.14);
}

.adm-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 18px;
}
.adm-alert--ok  { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.adm-alert--err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

@media (max-width: 920px) {
    .adm-layout { grid-template-columns: 1fr; }
    .adm-sidebar { position: static; height: auto; }
    .adm-main { padding: 20px 16px 40px; }
    .adm-grid-2, .adm-grid-3 { grid-template-columns: 1fr; }
}

