/*
NightBox Enterprise Theme Foundation 1.0
*/

:root {
    --nbx-bg: #050a12;
    --nbx-surface: #0f172a;
    --nbx-surface-2: #111827;
    --nbx-surface-3: #172033;
    --nbx-border: #22344d;
    --nbx-primary: #1597e5;
    --nbx-primary-hover: #0b7cc0;
    --nbx-text: #f8fafc;
    --nbx-muted: #cbd5e1;
    --nbx-subtle: #94a3b8;
    --nbx-success: #22c55e;
}

body {
    background: var(--nbx-bg);
}

.nbx-theme-dashboard {
    margin: 0 0 32px;
}

.nbx-theme-hero {
    padding: 34px;
    margin-bottom: 20px;
    background:
        radial-gradient(circle at 88% 18%, rgba(21,151,229,.24), transparent 32%),
        linear-gradient(135deg, #091321 0%, #102238 100%);
    border: 1px solid #24415f;
    border-radius: 18px;
}

.nbx-theme-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.nbx-theme-hero h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
}

.nbx-theme-hero p {
    max-width: 760px;
    margin: 0 0 10px;
    color: var(--nbx-muted);
}

.nbx-theme-hero small {
    color: var(--nbx-subtle);
}

.nbx-theme-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.nbx-theme-stat {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 13px;
    padding: 18px;
    background: var(--nbx-surface);
    border: 1px solid var(--nbx-border);
    border-radius: 14px;
    text-decoration: none !important;
}

.nbx-theme-stat:hover {
    background: var(--nbx-surface-3);
    border-color: var(--nbx-primary);
}

.nbx-theme-stat-icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: rgba(21,151,229,.14);
    border-radius: 12px;
    color: #38bdf8;
}

.nbx-theme-stat strong {
    color: #fff;
    font-size: 26px;
    line-height: 1;
}

.nbx-theme-stat small {
    color: var(--nbx-subtle);
}

.nbx-theme-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.nbx-theme-actions a {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 15px;
    background: var(--nbx-surface-2);
    border: 1px solid var(--nbx-border);
    border-radius: 12px;
    color: #e5edf7 !important;
    text-decoration: none !important;
}

.nbx-theme-actions a:hover {
    border-color: var(--nbx-primary);
}

.nbx-theme-actions i {
    width: 36px;
    margin-right: 10px;
    color: #38bdf8;
    text-align: center;
}

.nbx-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.nbx-theme-card {
    padding: 20px;
    background: var(--nbx-surface);
    border: 1px solid var(--nbx-border);
    border-radius: 14px;
}

.nbx-theme-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.nbx-theme-card h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.nbx-theme-card p {
    min-height: 46px;
    color: var(--nbx-muted);
}

.nbx-theme-card-button {
    display: inline-block;
    padding: 9px 13px;
    background: var(--nbx-primary);
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
}

.nbx-theme-card-button:hover {
    background: var(--nbx-primary-hover);
}

.nbx-theme-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    background: var(--nbx-surface-2);
    border: 1px solid var(--nbx-border);
    border-radius: 14px;
}

.nbx-theme-status > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nbx-theme-status strong,
.nbx-theme-status small {
    display: block;
}

.nbx-theme-status strong {
    color: #fff;
}

.nbx-theme-status small {
    color: var(--nbx-subtle);
}

.nbx-theme-dot {
    width: 12px;
    height: 12px;
    background: var(--nbx-success);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(34,197,94,.11);
}

.nbx-theme-status > a {
    padding: 9px 13px;
    background: var(--nbx-primary);
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
}

@media (max-width: 1050px) {
    .nbx-theme-actions {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .nbx-theme-stats,
    .nbx-theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .nbx-theme-hero {
        padding: 24px 20px;
    }

    .nbx-theme-stats,
    .nbx-theme-actions,
    .nbx-theme-grid {
        grid-template-columns: 1fr;
    }

    .nbx-theme-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .nbx-theme-status > a {
        width: 100%;
        text-align: center;
    }
}
