/* ─────────────────────────────────────────
   Layout
───────────────────────────────────────── */
body {
    font-size: 0.875rem;
    background-color: #f8f9fc;
}

.wrapper {
    min-height: 100vh;
}

/* ─────────────────────────────────────────
   Sidebar
───────────────────────────────────────── */
.sidebar {
    width: 240px;
    min-width: 240px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: width 0.25s ease;
    z-index: 100;
}


.sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    transition: all 0.15s;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background: rgba(99,102,241,0.85);
    font-weight: 600;
}

/* ─────────────────────────────────────────
   Main Content
───────────────────────────────────────── */
.main-content {
    min-width: 0;
    overflow-x: auto;
}

.content-area {
    min-height: calc(100vh - 56px);
}

/* ─────────────────────────────────────────
   Stats Cards
───────────────────────────────────────── */
.stat-card {
    transition: transform 0.15s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─────────────────────────────────────────
   Tables
───────────────────────────────────────── */
.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    white-space: nowrap;
}

.table-hover tbody tr:hover {
    background-color: rgba(99,102,241,0.04);
}

/* ─────────────────────────────────────────
   Cards
───────────────────────────────────────── */
.card {
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 12px;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* ─────────────────────────────────────────
   Badges
───────────────────────────────────────── */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.72rem;
    padding: 0.35em 0.65em;
}

/* Orange (not in Bootstrap defaults) */
.bg-orange {
    background-color: #f97316 !important;
    color: #fff !important;
}

/* ─────────────────────────────────────────
   Navbar
───────────────────────────────────────── */
.navbar {
    min-height: 56px;
    z-index: 99;
}

/* ─────────────────────────────────────────
   Follow-up Timeline
───────────────────────────────────────── */
.timeline-item {
    position: relative;
    padding-left: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    border: 2px solid #fff;
    outline: 1px solid #6366f1;
}

/* ─────────────────────────────────────────
   Misc
───────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c5c5c5; border-radius: 3px; }

/* Mobile responsiveness */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -240px;
        transition: left 0.25s ease;
    }
    .sidebar.open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0,0,0,.2);
    }
}
