/*
 * assets/css/custom.css
 * CES Portal — custom overrides on top of StrikingDash theme
 */

/* ── Layout helpers ──────────────────────────────────────────────────────── */

.nxl-everything {
    display: flex;
    min-height: 100vh;
}

.nxl-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 1.5rem;
    background: #f5f6fa;
}

/* ── Fixed top header clearance ──────────────────────────────────────────── */

body {
    padding-top: 0;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */

.sidebar-wrapper {
    width: 250px;
    min-height: 100vh;
    background: #1e2a3a;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    overflow-y: auto;
    padding-top: 0;
    transition: transform 0.25s ease;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-content {
    padding: 0.75rem 0;
}

.sidebar-menu-list {
    margin: 0;
}

.sidebar-menu-header {
    padding: 0.8rem 1.5rem 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,.35);
}

.sidebar-menu-item {
    list-style: none;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}

.sidebar-menu-link:hover,
.sidebar-menu-item.active .sidebar-menu-link {
    background: rgba(255,255,255,.08);
    color: #fff;
    text-decoration: none;
}

.sidebar-menu-item.active .sidebar-menu-link {
    border-left: 3px solid #3b5de7;
    padding-left: calc(1.5rem - 3px);
}

.sidebar-menu-link .menu-icon {
    width: 18px;
    height: 18px;
    opacity: 0.75;
}

/* ── Main content offset for sidebar ─────────────────────────────────────── */

.nxl-container {
    margin-left: 250px;
}

@media (max-width: 991.98px) {
    .sidebar-wrapper {
        transform: translateX(-100%);
    }
    .sidebar-wrapper.open {
        transform: translateX(0);
    }
    .nxl-container {
        margin-left: 0;
    }
}

/* ── Cards ───────────────────────────────────────────────────────────────── */

.card {
    border-radius: 0.75rem;
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.header-container {
    margin-left: 250px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.08);
    z-index: 1030;
}

.nxl-header {
    height: 64px;
    padding: 0 1.5rem;
}

.header-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

@media (max-width: 991.98px) {
    .header-container {
        margin-left: 0;
    }
}

/* ── Page header ─────────────────────────────────────────────────────────── */

.page-header h4 {
    color: #1e2a3a;
}

/* ── Tables ──────────────────────────────────────────────────────────────── */

.table th {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    border-top: none;
}

.table td {
    vertical-align: middle;
    font-size: 0.875rem;
}

/* ── Auth / login page ────────────────────────────────────────────────────── */

.auth-cover-bg-color {
    background: #f5f6fa;
}

.auth-main {
    min-height: 100vh;
    display: flex;
}

.auth-sidebar {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-cover-sidebar {
    width: 45%;
    flex-shrink: 0;
}

.auth-cover-content {
    flex: 1;
    padding: 2rem;
    background: #fff;
}

/* ── Badges ──────────────────────────────────────────────────────────────── */

.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */

.form-control:focus {
    border-color: #3b5de7;
    box-shadow: 0 0 0 0.2rem rgba(59,93,231,.15);
}

.btn-primary {
    background: #3b5de7;
    border-color: #3b5de7;
}

.btn-primary:hover {
    background: #2d4fd3;
    border-color: #2d4fd3;
}

/* ── Feather icon alignment ──────────────────────────────────────────────── */

[data-feather], .feather {
    vertical-align: -2px;
}

/* ── Utilities ───────────────────────────────────────────────────────────── */

.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.me-1  { margin-right: 0.25rem !important; }
.me-2  { margin-right: 0.5rem !important; }
.ms-auto { margin-left: auto !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold     { font-weight: 700 !important; }
