/* Modern layout styling for header, footer, and sidebar */

:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: #0b1220;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #ef4444;
  --sidebar-width: 240px;
        --sidebar-footer-height: 80px;
    --ink: #0f172a;
    --ink-soft: #1f2937;
    --muted-strong: #475569;
}

html, body { height: 100%; }
body.layout-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    background: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
    color: var(--text);
}

/* Sidebar */
.layout-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    left: 0;
    width: var(--sidebar-width);
    background: #0f172a; /* solid to avoid overlay feel on desktop */
    backdrop-filter: none;
    border-right: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
    z-index: 1055; /* above Bootstrap offcanvas backdrop (1040) */
    display: flex;
    flex-direction: column;
}
.layout-sidebar .offcanvas-body {
    flex: 1;
    overflow-y: auto; /* allow scroll without overlap */
    padding: 10px 0 16px; /* breathing room above footer */
    scrollbar-width: auto; /* more visible */
    scrollbar-gutter: stable both-edges; /* keep space visible for scrollbar */
    scrollbar-color: rgba(255,255,255,0.55) rgba(255,255,255,0.16);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.layout-sidebar .offcanvas-body::-webkit-scrollbar { width: 12px; }
.layout-sidebar .offcanvas-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(56,189,248,0.65), rgba(167,139,250,0.65));
    border-radius: 10px;
}
.layout-sidebar .offcanvas-body::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
}
.layout-sidebar .header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; font-weight: 600; letter-spacing: 0.2px;
    color: var(--text);
}
.layout-sidebar .header .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px var(--accent);
}

/* Sidebar resizer */
.layout-sidebar .sidebar-resizer {
    position: absolute;
    top: 0;
    right: -6px;
    width: 12px;
    height: 100%;
    cursor: col-resize;
    z-index: 1200;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.04));
    display: none;
}
.layout-sidebar .sidebar-resizer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
    opacity: 0;
    transition: opacity 0.15s ease;
}
.layout-sidebar .sidebar-resizer:hover::after {
    opacity: 1;
}

@media (min-width: 992px) {
    .layout-sidebar .sidebar-resizer {
        display: block;
    }
}
/* Improve header text visibility on dark sidebar */
.layout-sidebar .header .text-muted {
    color: #cfe8ff !important; /* soft blue-white for 'Melka Oda' */
}
.layout-sidebar .header .fw-semibold {
    background: linear-gradient(90deg, #38bdf8, #60a5fa 40%, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.layout-sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin: 5px 10px; border-radius: 10px;
  color: #e5e7eb; text-decoration: none;
  transition: all 160ms ease;
  border: 1px solid transparent;
}
.layout-sidebar nav a:hover { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.08); }
.layout-sidebar nav a.active {
    color: var(--text);
    background: linear-gradient(90deg, rgba(34,211,238,0.12), rgba(167,139,250,0.12));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 6px 14px rgba(34,211,238,0.08);
}

/* Section label spacing and subtle divider */
.layout-sidebar .nav-section-label {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,0.12);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    /* Blue-purple gradient text for high visibility */
    background: linear-gradient(90deg, #38bdf8, #60a5fa 40%, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Optional colorful accent for section labels */
/* Remove underline accent now that label itself is gradient-colored */
.layout-sidebar .nav-section-label::after { display: none; }

/* Icon sizing for polish */
.layout-sidebar i.bi { font-size: 1rem; opacity: 0.9; }

/* Sidebar footer (optional) */
.layout-sidebar .sidebar-footer {
    position: sticky;
    bottom: 0;
    height: var(--sidebar-footer-height);
    padding: 16px 18px; color: var(--muted);
    border-top: 1px solid rgba(255,255,255,0.06);
    background: #0f172a;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Main */
.layout-main {
    grid-column: 2;
    margin-left: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden; /* prevent horizontal scroll bleed */
    overflow-y: auto;   /* allow vertical scroll */
}

/* Collapsed sidebar state (support both html and body class application) */
html.sidebar-collapsed,
body.sidebar-collapsed {
    --sidebar-width: 80px;
}
html.sidebar-collapsed .layout-sidebar,
body.sidebar-collapsed .layout-sidebar {
    transition: width 180ms ease;
}
html.sidebar-collapsed .layout-main,
body.sidebar-collapsed .layout-main {
    transition: margin-left 180ms ease;
}
html.sidebar-collapsed .layout-sidebar .header .dot,
body.sidebar-collapsed .layout-sidebar .header .dot { margin-right: 0; }
html.sidebar-collapsed .layout-sidebar .header div span,
body.sidebar-collapsed .layout-sidebar .header div span,
html.sidebar-collapsed .layout-sidebar .header div .fw-semibold,
body.sidebar-collapsed .layout-sidebar .header div .fw-semibold { display: none; }
html.sidebar-collapsed .layout-sidebar nav a span,
body.sidebar-collapsed .layout-sidebar nav a span { display: none; }
html.sidebar-collapsed .layout-sidebar nav a,
body.sidebar-collapsed .layout-sidebar nav a { justify-content: center; }

/* Desktop toggle button in topbar */
.layout-topbar .toggle-btn {
    color: var(--muted);
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
}

/* Topbar */
.layout-topbar {
  position: sticky; top: 0; z-index: 900;
  background: rgba(12, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.layout-topbar .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.layout-topbar .inner .breadcrumb { flex-wrap: wrap; }
.layout-topbar .inner .btn { border-radius: 10px; }
.layout-topbar .title { font-size: 16px; font-weight: 600; color: var(--text); }
.breadcrumb {
  margin: 0; padding: 0; background: transparent;
}
.breadcrumb .breadcrumb-item a { color: var(--muted); text-decoration: none; }
.breadcrumb .breadcrumb-item.active { color: var(--text); }

/* Content */
.layout-content {
    flex: 1;
    padding-left: 16px;
    padding-right: 16px;
    color: var(--ink);
}

/* Constrain content for readability while keeping full-width components usable */
.container-fluid.layout-content {
    max-width: 1280px;
}
.card { background: rgba(14, 20, 34, 0.75); border: 1px solid rgba(255,255,255,0.08); color: var(--text); }
.card .card-header { border-bottom-color: rgba(255,255,255,0.10); }
.card .card-footer { border-top-color: rgba(255,255,255,0.10); }
.table { color: var(--text); }
.table thead th { border-bottom-color: rgba(255,255,255,0.12); color: var(--muted); }
.table tbody td { border-top-color: rgba(255,255,255,0.06); }

/* Footer */
.layout-footer {
  margin-top: auto;
  padding: 16px 20px;
  background: rgba(12, 18, 32, 0.85);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
}

/* Fancy accents */
.glow-accent {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(34,211,238,0.6);
}

/* Status badges: vibrant, pill, subtle glow */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.14);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.badge-status.available {
    background: rgba(34,197,94,0.18);
    color: #bbf7d0;
    border-color: rgba(34,197,94,0.35);
    text-shadow: 0 0 8px rgba(34,197,94,0.35);
}
.badge-status.on_duty {
    background: rgba(59,130,246,0.18);
    color: #bfdbfe;
    border-color: rgba(59,130,246,0.45);
    text-shadow: 0 0 8px rgba(59,130,246,0.35);
}
.badge-status.partially_available {
    background: rgba(234,179,8,0.18);
    color: #fde68a;
    border-color: rgba(234,179,8,0.40);
    text-shadow: 0 0 8px rgba(234,179,8,0.30);
}
.badge-status.unavailable {
    background: rgba(239,68,68,0.20);
    color: #fecaca;
    border-color: rgba(239,68,68,0.40);
    text-shadow: 0 0 8px rgba(239,68,68,0.28);
}
.badge-status.off_duty {
    background: rgba(148,163,184,0.15);
    color: #e2e8f0;
    border-color: rgba(148,163,184,0.35);
    text-shadow: 0 0 8px rgba(148,163,184,0.30);
}
.badge-status.open {
    background: rgba(56,189,248,0.20);
    color: #bae6fd;
    border-color: rgba(56,189,248,0.45);
}
.badge-status.escalated {
    background: rgba(147,51,234,0.20);
    color: #e9d5ff;
    border-color: rgba(147,51,234,0.45);
}
.badge-status.resolved,
.badge-status.acknowledged {
    background: rgba(34,197,94,0.18);
    color: #bbf7d0;
    border-color: rgba(34,197,94,0.35);
}
.badge-status.approved { background: rgba(34,197,94,0.18); color: #bbf7d0; border-color: rgba(34,197,94,0.35); }
.badge-status.rejected { background: rgba(248,113,113,0.18); color: #fecaca; border-color: rgba(248,113,113,0.4); }
.badge-status.pending,
.badge-status.notified {
    background: rgba(250,204,21,0.20);
    color: #fef08a;
    border-color: rgba(250,204,21,0.45);
}
.badge-urgency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.badge-urgency.normal { background: rgba(59,130,246,0.15); color: #bfdbfe; }
.badge-urgency.urgent { background: rgba(250,204,21,0.2); color: #fef08a; }
.badge-urgency.critical { background: rgba(248,113,113,0.2); color: #fecdd3; }
.badge-status.available::before { content: "\f26a"; font-family: "bootstrap-icons"; }
.badge-status.partially_available::before { content: "\f5c7"; font-family: "bootstrap-icons"; }
.badge-status.unavailable::before { content: "\f623"; font-family: "bootstrap-icons"; }
.badge-status.on_duty::before { content: "\f1af"; font-family: "bootstrap-icons"; }
.badge-status.off_duty::before { content: "\f634"; font-family: "bootstrap-icons"; }
.badge-status.escalated::before { content: "\f622"; font-family: "bootstrap-icons"; }
.badge-status.resolved::before,
.badge-status.acknowledged::before { content: "\f26a"; font-family: "bootstrap-icons"; }
.badge-status.pending::before,
.badge-status.notified::before { content: "\f4f4"; font-family: "bootstrap-icons"; }

/* Early Initiated badges: distinct icons and soft backgrounds */
.badge-init {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px dashed rgba(255,255,255,0.20);
    padding: 4px 10px;
    border-radius: 10px;
    color: var(--muted);
    text-transform: uppercase;
}
.badge-init.yes { color: #bbf7d0; background: rgba(34,197,94,0.16); border-color: rgba(34,197,94,0.35); }
.badge-init.no { color: #fecaca; background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.35); }
.badge-init.pending { color: #fde68a; background: rgba(234,179,8,0.16); border-color: rgba(234,179,8,0.35); }
.badge-init.yes::before { content: "\f26a"; font-family: "bootstrap-icons"; }
.badge-init.no::before { content: "\f623"; font-family: "bootstrap-icons"; }
.badge-init.pending::before { content: "\f4f4"; font-family: "bootstrap-icons"; }

.table-actions .btn { border-radius: 10px; }
.table-actions .btn-outline-secondary { border-color: rgba(255,255,255,0.18); color: var(--text); }
.table-actions .btn-outline-secondary:hover { background: rgba(255,255,255,0.08); }
.table-actions .btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border: none; }
.timeline {
    position: relative;
    padding-left: 1.5rem;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.1);
}
.timeline-row {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.timeline-point {
    position: absolute;
    left: -0.05rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(32,211,238,0.6);
}
.timeline-point.resolved,
.timeline-point.acknowledged { background: #22c55e; }
.timeline-point.pending { background: #eab308; }
.btn-accent {
  --bs-btn-color: #07131a;
  --bs-btn-bg: linear-gradient(90deg, var(--accent), var(--accent-2));
  --bs-btn-border-color: rgba(255,255,255,0.18);
  --bs-btn-hover-bg: linear-gradient(90deg, var(--accent-2), var(--accent));
}

/* Table polish: zebra rows and hover */
.table.table-hover tbody tr { transition: background 140ms ease; }
.table.table-hover tbody tr:hover { background: rgba(255,255,255,0.04); }
.table.zebra tbody tr:nth-child(odd) { background: rgba(255,255,255,0.02); }
.table td { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.card.shadow-sm { box-shadow: 0 20px 40px rgba(0,0,0,0.25); }

/* Responsive */
@media (max-width: 992px) {
    body.layout-shell {
        grid-template-columns: 1fr;
    }
    .layout-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        height: 100vh;
        width: 240px;
        transform: translateX(-100%);
        transition: transform 200ms ease;
        box-shadow: 0 16px 40px rgba(0,0,0,0.35);
        z-index: 1055;
    }
    .layout-sidebar.open,
    .layout-sidebar.show { transform: translateX(0); }
    .layout-main {
        grid-column: 1;
        margin-left: 0;
    }
    .container-fluid.layout-content { max-width: 100%; }
    .layout-topbar .inner { padding-left: 12px; padding-right: 12px; flex-wrap: wrap; row-gap: 8px; }
    .layout-topbar .title { font-size: 15px; }
    .layout-topbar .btn { padding: 6px 10px; }
}

/* Force sidebar visible on desktop even if offcanvas "show" is not toggled */
@media (min-width: 992px) {
    .layout-sidebar.offcanvas {
        visibility: visible !important;
        transform: none !important;
    }
    /* Keep desktop sidebar flex-driven without forcing a new scroll container */
    .layout-sidebar .offcanvas-body {
        max-height: none;
        overflow-y: auto;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --sidebar-bg: #0f172a;
    --sidebar-accent: #2563eb;
    --content-bg: #f2f6ff;
    --card-bg: #ffffff;
    --text-muted: #6b7280;
    --border-soft: #e2e8f0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--content-bg);
    color: #0f172a;
    margin: 0;
}

.layout-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

.auth-shell {
    background: radial-gradient(circle at top, #eff3ff 0%, #dbeafe 35%, #f8fafc 100%);
    padding: 2rem 1rem;
}

.auth-content .card {
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15);
    border-radius: 1.25rem;
}

.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: rgba(255, 255, 255, 0.88);
    border-right: 1px solid rgba(15, 23, 42, 0.45);
}

.sidebar .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 0;
    /* Enable vertical scrolling for long menus while keeping header/footer visible */
    overflow-y: auto;
    max-height: calc(100vh - 64px);
}

.sidebar .sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--sidebar-accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.sidebar .nav-link {
    padding: 0.9rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 3px solid transparent;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar .nav-link.active {
    color: #fff;
    font-weight: 600;
    border-left-color: #38bdf8;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.25), rgba(59, 130, 246, 0.25));
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.22);
}

.nav-section-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    margin-top: 1rem;
    padding: 0 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.layout-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--content-bg);
}

/* Modern Service page refinements */
.service-hero {
    /* Clean white hero */
    background: #ffffff !important;
    border: 1px solid rgba(15,23,42,0.06);
    color: var(--ink) !important;
    --bs-card-bg: transparent;
    background-color: #ffffff !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.service-hero .bg-glow {
    background: rgba(15,23,42,0.04);
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(15,23,42,0.08);
}
.service-hero .card-body { color: var(--ink) !important; }
.service-hero h3 { font-size: 1.75rem; line-height: 1.05; font-weight: 800; color: var(--ink); }
.service-hero p { color: var(--muted-strong); font-size: 1rem; }
.service-hero .btn { min-height: 36px; }
.service-hero .btn-light { background: linear-gradient(90deg, #38bdf8, #a78bfa); color: #0b1120; font-weight: 800; border: none; box-shadow: 0 8px 22px rgba(0,0,0,0.12); }
.service-hero .btn-outline-light { border-color: rgba(15,23,42,0.14); color: var(--ink); background: rgba(255,255,255,0.7); box-shadow: 0 8px 22px rgba(15,23,42,0.08); }
.service-hero .btn-outline-light:hover { background: #0f172a; color: #fff; }

/* Ensure card doesn't get overridden by other .card rules */
.service-hero { box-shadow: 0 18px 40px rgba(2,6,23,0.45); border-radius: 12px; }
.service-hero .hero-copy *,
.service-hero .card-body *:not(.btn):not(.btn *) {
    color: inherit !important;
}
.facility-hero {
    background: #ffffff !important;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 14px 32px rgba(2,6,23,0.18);
}
.stat-pill {
    background: rgba(15,23,42,0.03);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 12px;
    padding: 10px 12px;
}
.stat-pill .label { color: var(--muted-strong); font-size: 0.78rem; letter-spacing: 0.02em; text-transform: uppercase; }
.stat-pill .value { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.pill span { display: inline; }
.filter-card {
    border: 1px solid rgba(15,23,42,0.08);
}
.modern-table-card {
    border: 1px solid rgba(15,23,42,0.08);
}
.modern-table thead {
    background: rgba(15,23,42,0.04);
}
.modern-table td, .modern-table th {
    vertical-align: middle;
    color: var(--ink-soft);
}
.modern-table td .text-muted { color: #6b7280 !important; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    text-transform: capitalize;
    background: rgba(15,23,42,0.04);
    color: var(--ink);
}
.pill i { font-size: 0.95rem; }
.pill-available { background: rgba(34,197,94,0.15); color: #065f46; border-color: rgba(34,197,94,0.2); }
.pill-partially_available { background: rgba(234,179,8,0.18); color: #92400e; border-color: rgba(234,179,8,0.24); }
.pill-unavailable { background: rgba(239,68,68,0.16); color: #7f1d1d; border-color: rgba(239,68,68,0.22); }
.pill-warning { background: rgba(234,179,8,0.16); color: #854d0e; border-color: rgba(234,179,8,0.22); }
.pill-critical { background: rgba(239,68,68,0.18); color: #7f1d1d; border-color: rgba(239,68,68,0.26); }
.pill-ghost { background: rgba(15,23,42,0.06); color: var(--ink-soft); border-color: rgba(15,23,42,0.1); }
.modern-table .status-cell { background: rgba(15,23,42,0.02); }
.modern-table .status-cell .pill { box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.modern-table .status-cell .pill i { font-size: 0.95rem; }

/* Sharper text contrast on light pages */
.layout-main, .layout-main .card, .layout-main .table { color: var(--ink-soft); }
.layout-main .card .card-header small { color: #64748b; }
.layout-main .text-muted { color: #6b7280 !important; }
.layout-main h1, .layout-main h2, .layout-main h3, .layout-main h4, .layout-main h5, .layout-main h6 { color: var(--ink); }

.topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem 0;
}

.topbar h1 {
    font-weight: 600;
    font-size: 1.1rem;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

.layout-content {
    flex: 1;
}

.app-footer {
    background: #fff;
    border-top: 1px solid var(--border-soft);
}

.card,
.stat-card {
    border: none;
    border-radius: 1rem;
    background: var(--card-bg);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

/* Keep hero neutral after base card styles */
.service-hero.card {
    background: #ffffff !important;
}

/* Table alignment on light pages */
.table td,
.table th {
    vertical-align: middle;
    border-color: var(--border-soft);
}

.badge {
    font-size: 0.75rem;
}

.auth-shell {
    background: radial-gradient(circle at 10% 20%, #dbeafe 0%, #eff6ff 45%, #f7f9fc 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 2.25rem);
}
.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}
.auth-shell::before {
    background: #c7d2fe;
    top: -120px;
    right: -90px;
}
.auth-shell::after {
    background: #bfdbfe;
    bottom: -140px;
    left: -100px;
}

.auth-hero {
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
}

.logo-glow {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.14));
    display: grid;
    place-items: center;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16), 0 0 0 10px rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
}

.logo-img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.18));
}

.auth-title {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.4rem;
}

.auth-subtitle {
    color: #475569;
    font-size: 0.92rem;
}

.badge-soft {
    background: rgba(37, 99, 235, 0.08);
    color: #0f172a;
    border: 1px solid rgba(37, 99, 235, 0.18);
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.78rem;
    backdrop-filter: blur(4px);
}

.auth-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(243, 246, 255, 0.95));
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    border-radius: 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(12px);
    transform: translateZ(0);
}

.glass-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
}

@media (max-width: 767.98px) {
    .auth-shell {
        padding: 1.25rem 0.75rem;
    }
    .auth-content {
        max-width: 100%;
        padding: 0 0.25rem;
    }
    .auth-hero {
        text-align: center;
    }
    .logo-glow {
        width: 84px;
        height: 84px;
        border-radius: 22px;
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14), 0 0 0 8px rgba(255, 255, 255, 0.65);
    }
    .logo-img {
        width: 60px;
        height: 60px;
    }
    .auth-title {
        font-size: 1.35rem;
    }
    .auth-subtitle {
        font-size: 0.9rem;
    }
    .badge-soft {
        padding: 0.28rem 0.6rem;
        font-size: 0.78rem;
    }
    .auth-card {
        padding: 0.25rem;
    }
    .auth-card .card-body {
        padding: 1.25rem;
    }
}

/* Auth layout overrides to center and constrain width */
.auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2rem);
}
.auth-content {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
.auth-card {
    width: 100%;
}
.auth-hero {
    text-align: center;
}
.auth-hero .badge-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Center the heading block inside the auth card */
.auth-card .card-body {
    text-align: center;
}
.auth-card .card-body .d-inline-flex {
    justify-content: center;
}

@media (max-width: 991px) {
    .sidebar {
        width: 260px;
    }

    .layout-shell {
        grid-template-columns: 1fr;
    }
}

/* Forms: clearer labels and modern inputs */
.form-label {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0b132b; /* darker for contrast */
    margin-bottom: 0.35rem;
    font-size: 0.98rem;
}
.form-label.required::after {
    content: " *";
    color: var(--danger);
    font-weight: 700;
}
.form-text { color: var(--text-muted); }

.form-control,
.form-select,
.form-check-input {
    border-radius: 0.75rem;
    border-color: rgba(15, 23, 42, 0.22);
    background: #ffffff;
    color: #0b132b;
    font-weight: 600;
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: rgba(37, 99, 235, 0.6); /* blue-600 */
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
    outline: none;
}
.form-control::placeholder { color: #94a3b8; }

.input-group .form-control,
.input-group .form-select { border-radius: 0.75rem; }

/* Inline badges on labels in tables/forms */
label .badge { vertical-align: middle; margin-left: .25rem; }
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --sidebar-bg: #0f172a;
    --sidebar-accent: #2563eb;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --content-bg: #f2f6ff;
    --card-bg: #ffffff;
    --text-muted: #6b7280;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--content-bg);
    color: #0f172a;
}

.layout-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: rgba(255, 255, 255, 0.85);
    border-right: 1px solid rgba(15, 23, 42, 0.45);
}

.sidebar .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.sidebar .sidebar-brand {
    border-bottom: 1px solid var(--sidebar-border);
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--sidebar-accent);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.sidebar .nav-link {
    padding: 0.9rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 3px solid transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar .nav-link.active {
    color: #fff;
    font-weight: 600;
    border-left-color: #38bdf8;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), rgba(59, 130, 246, 0.25));
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.nav-section-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0 1.5rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.layout-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--content-bg);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 1rem 0;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

.layout-content {
    flex: 1;
}

.app-footer {
    background: #fff;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.card,
.stat-card {
    border: none;
    border-radius: 1rem;
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
}

.table td,
.table th {
    vertical-align: middle;
}

.list-group-item {
    border-color: #e5e7eb;
}

.badge {
    font-size: 0.75rem;
}

@media (max-width: 991px) {
    .sidebar {
        width: 260px;
    }

    .layout-shell {
        grid-template-columns: 1fr;
    }
}

