/* ==================================================
   Voisys Client Portal - Main Stylesheet
   Dark Sidebar / White Content / Blue Primary
   ================================================== */

:root {
    --voisys-blue: #2563eb;
    --voisys-blue-dark: #1d4ed8;
    --sidebar-bg: #111827;
    --sidebar-bg-hover: #1f2937;
    --sidebar-text: #9ca3af;
    --sidebar-text-active: #ffffff;
    --content-bg: #f4f6f9;
}

body {
    background-color: var(--content-bg);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.btn-primary {
    background-color: var(--voisys-blue);
    border-color: var(--voisys-blue);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--voisys-blue-dark);
    border-color: var(--voisys-blue-dark);
}
a { color: var(--voisys-blue); }

/* ---------- Auth pages ---------- */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827 0%, #1f2a44 55%, #2563eb 100%);
}
.auth-wrapper { width: 100%; max-width: 440px; padding: 1rem; }
.auth-card { border-radius: 16px; }
.auth-logo { font-size: 2.5rem; color: var(--voisys-blue); }

/* ---------- Layout ---------- */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    flex-shrink: 0;
    transition: margin-left .25s ease;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar .brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar .brand i { color: var(--voisys-blue); font-size: 1.4rem; }
.sidebar .nav-link {
    color: var(--sidebar-text);
    padding: .65rem 1.25rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .93rem;
}
.sidebar .nav-link i { font-size: 1.05rem; width: 20px; text-align: center; }
.sidebar .nav-link:hover { background-color: var(--sidebar-bg-hover); color: #fff; }
.sidebar .nav-link.active {
    background-color: var(--voisys-blue);
    color: #fff;
    font-weight: 500;
}
.sidebar .nav-section-title {
    color: #6b7280;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 1rem 1.25rem .35rem;
}

.main-content { flex-grow: 1; min-width: 0; }

.topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-body { padding: 1.5rem; }

/* ---------- Cards ---------- */
.stat-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef0f3;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    height: 100%;
}
.stat-card .stat-icon {
    width: 46px; height: 46px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; color: #111827; }
.stat-card .stat-label { color: #6b7280; font-size: .85rem; }

.bg-icon-blue { background: var(--voisys-blue); }
.bg-icon-green { background: #16a34a; }
.bg-icon-orange { background: #ea580c; }
.bg-icon-red { background: #dc2626; }
.bg-icon-purple { background: #7c3aed; }
.bg-icon-teal { background: #0d9488; }

.card { border-radius: 12px; border: 1px solid #eef0f3; }
.card-header { background: #fff; border-bottom: 1px solid #eef0f3; font-weight: 600; }

.table thead th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6b7280;
    border-bottom-width: 1px;
    white-space: nowrap;
}
.table td { vertical-align: middle; font-size: .92rem; }

.badge { font-weight: 500; }

/* Sidebar mobile toggle */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: 0; top: 0;
        margin-left: -260px;
        z-index: 1050;
    }
    .sidebar.show { margin-left: 0; }
    .sidebar-backdrop {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 1040;
    }
    .sidebar-backdrop.show { display: block; }
}

/* Print styles for receipts */
@media print {
    .no-print { display: none !important; }
    .sidebar, .topbar { display: none !important; }
    .page-body { padding: 0; }
}
