@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* =============================================
   DESIGN SYSTEM – Variables & Reset
   ============================================= */
:root {
    /* Core palette */
    --color-bg: #f8f9fa;
    --color-bg-white: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #637085;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    /* Accent */
    --color-primary: #4f46e5;
    --color-primary-dark: #4338ca;
    --color-primary-light: #e0e7ff;
    --color-primary-glow: rgba(79,70,229,0.35);

    /* Semantic */
    --color-success: #047857;
    --color-success-bg: #d1fae5;
    --color-warning: #b45309;
    --color-warning-bg: #fef3c7;
    --color-danger: #b91c1c;
    --color-danger-bg: #fee2e2;
    --color-info: #2563eb;
    --color-info-bg: #dbeafe;

    /* Surfaces */
    --color-dark: #0f172a;
    --color-dark-mid: #1e293b;
    --color-dark-border: #1e293b;

    /* Sidebar */
    --sidebar-width: 240px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
}

html {
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}


/* =============================================
   APP LAYOUT – Navbar / Sidebar / Main
   ============================================= */

/* Body */
.app-body {
    min-height: 100vh;
    overflow: hidden;
}

/* Wrapper for sidebar + main */
.app-wrapper {
    display: flex;
    height: calc(100vh - 60px);
}

/* --- Navbar --- */
.app-navbar {
    background: var(--color-dark) !important;
    border-bottom: 1px solid var(--color-dark-border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    padding: 0 1.25rem;
    height: auto;
    min-height: 60px;
    z-index: 1050;
}
.app-navbar .navbar-collapse {
    background: var(--color-dark);
}
@media (max-width: 991.98px) {
    .app-navbar .navbar-collapse {
        padding: 0.75rem 0;
        border-top: 1px solid var(--color-dark-border);
        margin-top: 0.5rem;
    }
}
.app-navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff !important;
    letter-spacing: -0.01em;
}
.app-navbar-brand i {
    font-size: 1.1rem !important;
    color: var(--color-primary);
}
.navbar-search-icon.input-group-text {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-right: 0 !important;
    color: rgba(255,255,255,0.4);
    padding: 0.25rem 0.5rem;
}
.navbar-search-input.form-control {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-left: 0 !important;
    color: #fff;
    min-width: 180px;
}
.navbar-search-input.form-control::placeholder { color: rgba(255,255,255,0.35); }
.navbar-search-input.form-control:focus {
    background: rgba(255,255,255,0.1) !important;
    color: #fff;
    border-color: rgba(255,255,255,0.2) !important;
    box-shadow: none !important;
}
.input-group:focus-within .navbar-search-icon.input-group-text { border-color: rgba(255,255,255,0.2) !important; }
.navbar-icon-link {
    color: rgba(255,255,255,0.8) !important;
    padding: 0.25rem 0.5rem;
}
.nav-user-badge {
    color: var(--color-text-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 0.75rem;
}
.nav-user-badge i {
    font-size: 0.95rem !important;
}
.btn-nav-logout {
    color: var(--color-text-light);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--color-dark-border);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.85rem;
    transition: all 0.2s;
    background: transparent;
}
.btn-nav-logout:hover {
    color: #fff;
    border-color: var(--color-text-light);
    background: rgba(255,255,255,0.05);
}

/* --- Sidebar --- */
.app-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--color-dark);
    border-right: 1px solid var(--color-dark-border);
    height: calc(100vh - 60px);
    padding: 1.5rem 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.app-sidebar-inner {
    padding: 0 0.75rem;
    flex: 1;
}
.sidebar-section-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    padding: 0 0.75rem;
    margin-bottom: 0.75rem;
}
.app-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem !important;
    border-radius: var(--radius-sm);
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-bottom: 2px;
    text-decoration: none;
}
.sidebar-link:hover {
    background: rgba(255,255,255,0.06) !important;
    color: #fff !important;
}
.sidebar-link.active {
    background: rgba(99,102,241,0.15) !important;
    color: #fff !important;
}
.sidebar-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-icon i {
    font-size: 0.9rem !important;
}
.sidebar-icon--green  { background: rgba(5,150,105,0.15); color: #34d399; }
.sidebar-icon--blue   { background: rgba(37,99,235,0.15); color: #60a5fa; }
.sidebar-icon--indigo { background: rgba(99,102,241,0.15); color: #818cf8; }
.sidebar-icon--amber  { background: rgba(217,119,6,0.15); color: #fbbf24; }
.sidebar-icon--teal   { background: rgba(13,148,136,0.15); color: #2dd4bf; }
.sidebar-icon--purple { background: rgba(139,92,246,0.15); color: #a78bfa; }
.sidebar-icon--rose   { background: rgba(244,63,94,0.15); color: #fb7185; }
.sidebar-label {
    white-space: nowrap;
}
.sidebar-spacer {
    height: 1px;
    background: var(--color-dark-border);
    margin: 0.75rem 0.75rem;
    list-style: none;
}

/* --- Sidebar footer --- */
.app-sidebar-settings {
    padding: 0 0.75rem;
    border-top: 1px solid var(--color-dark-border);
    padding-top: 0.5rem;
}
.app-sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--color-dark-border);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.5rem;
}
.sidebar-user > i {
    font-size: 1.25rem;
    flex-shrink: 0;
}
.sidebar-user-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.sidebar-user form {
    flex-shrink: 0;
    margin-left: auto;
}
.btn.btn-sidebar-logout {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #94a3b8;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    padding: 0;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn.btn-sidebar-logout:hover {
    background: rgba(185,28,28,0.2);
    color: #fca5a5;
}

/* --- Main content area --- */
.app-main {
    flex: 1;
    padding: 2rem 2.5rem;
    min-width: 0;
    background: var(--color-bg);
    overflow-y: auto;
}
.app-messages {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .app-sidebar {
        display: none;
    }
    .app-main {
        padding: 1.25rem;
    }
}


/* =============================================
   PAGE HEADER – Used on dashboards & list pages
   ============================================= */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.page-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.page-header-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.page-header-icon i {
    font-size: 1.3rem !important;
}
.page-header-icon--green  { background: rgba(5,150,105,0.15); color: #34d399; }
.page-header-icon--blue   { background: rgba(37,99,235,0.15); color: #60a5fa; }
.page-header-icon--indigo { background: rgba(99,102,241,0.15); color: #818cf8; }
.page-header-icon--amber  { background: rgba(217,119,6,0.15); color: #fbbf24; }
.page-header-icon--teal   { background: rgba(13,148,136,0.15); color: #2dd4bf; }
.page-header-icon--purple { background: rgba(139,92,246,0.15); color: #a78bfa; }
.page-header-icon--rose   { background: rgba(244,63,94,0.15); color: #fb7185; }
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
}
.page-subtitle {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin: 0.15rem 0 0;
}


/* =============================================
   DASHBOARD LAYOUT
   ============================================= */
.dashboard-quick-actions {
    margin-bottom: 1.25rem;
}
.dashboard-metrics-area {
    min-width: 0;
}


/* =============================================
   PANELS – Content containers
   ============================================= */
.panel {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.panel .table-responsive {
    overflow: visible;
}
.panel-header {
    padding: 0.85rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.panel-body {
    padding: 1rem 1.25rem;
}

.content-panel {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}


/* =============================================
   QUICK ACTIONS – Dashboard tab-style nav
   ============================================= */
.quick-action-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
}
.quick-action-list a,
.quick-action-list .list-group-item {
    display: inline-flex;
    width: auto;
    margin-top: 0;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 0;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    transition: color 0.15s, border-color 0.15s;
}
.quick-action-list a:hover,
.quick-action-list .list-group-item:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-border);
    background: transparent;
}


/* =============================================
   METRIC CARDS – Dashboard stats
   ============================================= */
.metric-card-link {
    text-decoration: none;
    display: block;
}
.metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    height: 100%;
}
.metric-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.metric-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.metric-card-icon i {
    font-size: 1.2rem !important;
}
.metric-card-icon--dark    { background: var(--color-primary-light); color: var(--color-primary); }
.metric-card-icon--success { background: var(--color-success-bg); color: var(--color-success); }
.metric-card-icon--warning { background: var(--color-warning-bg); color: var(--color-warning); }
.metric-card-icon--danger  { background: var(--color-danger-bg); color: var(--color-danger); }
.metric-card-icon--primary { background: var(--color-info-bg); color: var(--color-info); }
.metric-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.metric-card-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}
.metric-card-value {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.metric-card--secondary {
    background: var(--color-bg);
}
.metric-card--secondary .metric-card-value {
    font-size: clamp(0.875rem, 2vw, 1.2rem);
    font-weight: 600;
}
.metrics-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-muted);
    border-left: 3px solid var(--color-primary);
    padding-left: 0.5rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* =============================================
   DETAIL TABS
   ============================================= */
.detail-tabs {
    border-bottom: 2px solid var(--color-border);
    gap: 0.25rem;
}
.detail-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 0;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.15s, border-color 0.15s;
}
.detail-tabs .nav-link:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-border);
}
.detail-tabs .nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: transparent;
}


/* =============================================
   TABLES – Polished data tables
   ============================================= */
.table {
    border-collapse: separate;
    border-spacing: 0;
}
.table thead th {
    background-color: var(--color-bg);
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--color-border);
    border-top: none;
    white-space: nowrap;
}
.table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.9rem;
    color: var(--color-text);
    vertical-align: middle;
}
.table tbody tr:hover {
    background-color: #f8faff;
}
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fafbfc;
}
.table-striped > tbody > tr:nth-of-type(odd):hover {
    background-color: #f8faff;
}


/* =============================================
   BUTTONS – Consistent button system
   ============================================= */
.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}
.btn-secondary {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.btn-secondary:hover {
    background: var(--color-border-light);
    border-color: #cbd5e1;
    color: var(--color-text);
}
.btn-success {
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.btn-danger {
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.btn-warning {
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.btn-sm {
    font-size: 0.82rem;
    padding: 0.3rem 0.75rem;
}
.btn-app-secondary {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.5rem;
    font-weight: 500;
    transition: all 0.15s ease;
}
.btn-app-secondary:hover {
    background: var(--color-border-light);
    border-color: #cbd5e1;
}


/* =============================================
   CARDS – Bootstrap card overrides
   ============================================= */
.card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: none;
}
.card-header {
    background: var(--color-bg) !important;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}
.card-body h3 {
    font-size: 1.3rem;
}
.card-body i {
    font-size: 1.5rem;
}


/* =============================================
   FILTER BARS – List page search/filter
   ============================================= */
.list-filter {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    box-shadow: none;
    margin-bottom: 1.25rem;
}
.list-filter .form-select,
.list-filter .form-control {
    border-radius: var(--radius-sm);
    border-color: var(--color-border);
    font-size: 0.9rem;
}
.list-filter .form-select:focus,
.list-filter .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.list-filter .btn {
    border-radius: var(--radius-sm);
}
.list-filter .input-group {
    gap: 0;
}
.search-icon-btn i {
    font-size: 1rem !important;
}


/* =============================================
   FORMS – Crispy form styling
   ============================================= */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border-color: var(--color-border);
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-label, label {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--color-text);
    margin-bottom: 0.3rem;
}

.logo-dropzone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--color-bg);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.logo-dropzone:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}
.logo-dropzone img {
    max-height: 80px;
    margin-bottom: 0.75rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* =============================================
   PAGINATION
   ============================================= */
.app-pagination {
    gap: 0.25rem;
}
.app-pagination .page-link {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    transition: all 0.15s;
}
.app-pagination .page-link:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}
.app-pagination .page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.app-pagination .page-item.disabled .page-link {
    background: var(--color-bg);
    color: var(--color-text-light);
}


/* =============================================
   AUTH PAGES – Login / Register
   ============================================= */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}
.auth-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.auth-logo i {
    font-size: 1.4rem !important;
}
.auth-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.auth-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}
.auth-link {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}
.auth-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}


/* =============================================
   DELETE CONFIRMATION
   ============================================= */
.delete-confirm-panel {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.delete-confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-danger-bg);
    color: var(--color-danger);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.delete-confirm-icon i {
    font-size: 1.5rem !important;
}
.delete-confirm-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.delete-confirm-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.delete-confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}


/* =============================================
   ALERTS – Bootstrap overrides
   ============================================= */
.alert {
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
}


/* =============================================
   TOASTS – App notification toasts
   ============================================= */
.app-toast {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: none;
    min-width: 300px;
    font-size: 0.9rem;
}
.app-toast .toast-header {
    border-bottom: 1px solid var(--color-border-light);
    font-weight: 600;
    font-size: 0.85rem;
}
.app-toast .toast-body {
    font-weight: 500;
}
.app-toast-success { border-left: 4px solid var(--color-success); }
.app-toast-error   { border-left: 4px solid var(--color-danger); }
.app-toast-warning { border-left: 4px solid var(--color-warning); }
.app-toast-info    { border-left: 4px solid var(--color-info); }


/* =============================================
   FINANCE DASHBOARD – Card refinements
   ============================================= */
.dashboard-metrics-area .card {
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}
.dashboard-metrics-area .card .text-muted {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dashboard-metrics-area .card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}


/* =============================================
   HOME PAGE – Professional Landing Styles
   ============================================= */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 6rem 0 5rem;
    margin: -2rem -2.5rem 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.12) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 50%, rgba(16,185,129,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-block;
    background: rgba(99,102,241,0.15);
    color: #818cf8;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(99,102,241,0.25);
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-hero-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.5);
    color: #fff;
}
.btn-hero-outline {
    background: transparent;
    color: #cbd5e1;
    border: 1.5px solid #334155;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
}
.btn-hero-outline:hover {
    border-color: #6366f1;
    color: #fff;
}
.min-vh-50 {
    min-height: 50vh;
}

/* Metrics Bar */
.metrics-bar {
    background: #1e293b;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
    padding: 2.5rem 0;
    margin: 0 -2.5rem;
}
.metrics-bar .metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
.metrics-bar .metric-label {
    font-size: 0.82rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Shared Section Headers */
.section-header {
    margin-bottom: 3rem;
}
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.section-desc {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
}

/* Spotlight Section */
.spotlight-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    margin: 0 -2.5rem;
    color: #fff;
}
.spotlight-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1rem;
}
.spotlight-text {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.spotlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.spotlight-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.spotlight-list li i {
    color: #818cf8;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.spotlight-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}
.spotlight-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    min-width: 130px;
}
.spotlight-node i {
    font-size: 2rem;
    color: #818cf8;
}
.spotlight-node span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    white-space: nowrap;
}
.spotlight-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.spotlight-connector-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 1px;
}
.spotlight-connector-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #818cf8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: #fdfdfd;
}
.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: #c7d2fe;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.feature-icon i {
    font-size: 1.4rem !important;
}
.feature-icon--green  { background: #d1fae5; color: #059669; }
.feature-icon--blue   { background: #dbeafe; color: #2563eb; }
.feature-icon--indigo { background: #e0e7ff; color: #4f46e5; }
.feature-icon--amber  { background: #fef3c7; color: #d97706; }
.feature-icon--teal   { background: #ccfbf1; color: #0d9488; }
.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.feature-text {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 0;
}

/* Steps Section */
.steps-section {
    padding: 5rem 0;
    background: #f8fafc;
    margin: 0 -2.5rem;
}
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}
.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.step-text {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
}
.step-text code {
    background: #e0e7ff;
    color: #4338ca;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 5rem 0;
    margin: 0 -2.5rem;
}
.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.cta-text {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 2rem;
}
.cta-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
    background: #fdfdfd;
    margin: 0 -2.5rem;
}
.footer-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
}
.footer-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #6366f1;
}

/* Responsive tweaks for home page */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-section {
        padding: 4rem 0 3rem;
        margin: -1.25rem -1.25rem 0;
    }
    .metrics-bar,
    .spotlight-section,
    .steps-section,
    .cta-section,
    .site-footer {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .spotlight-title {
        font-size: 1.7rem;
    }
    .spotlight-visual {
        gap: 1rem;
        padding: 1.5rem 0;
    }
    .spotlight-node {
        padding: 1rem 1.25rem;
        min-width: 100px;
    }
    .spotlight-connector-line {
        width: 50px;
    }
    .features-section,
    .steps-section {
        padding: 3rem 0;
    }
}

/* =============================================
   UTILITY OVERRIDES
   ============================================= */
.bg-light {
    background-color: var(--color-bg) !important;
}
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}
.vh-75 {
    min-height: 75vh;
}

/* list-group inside dashboard_base old-compat */
.list-group-item {
    border: none;
}
.list-group-item-action {
    border-radius: var(--radius-sm);
}


/* =============================================
   DETAIL PAGES – Info grid & section dividers
   ============================================= */
.detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
}
.detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.detail-info-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}
.detail-info-value {
    font-size: 0.95rem;
    color: var(--color-text);
    word-break: break-word;
}
.detail-info-value:empty::after,
.detail-info-value .text-muted {
    color: var(--color-text-light);
    font-style: italic;
}
.detail-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.detail-section {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    margin-top: 2rem;
}
.dashboard-metrics-area .detail-section {
    border-top: none;
    margin-top: 0;
}
.detail-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.detail-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}
.btn-outline-primary {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--color-primary);
    color: #fff;
}
.btn-outline-danger {
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
    border-radius: var(--radius-sm);
    font-weight: 500;
    background: transparent;
}
.btn-outline-danger:hover {
    background: var(--color-danger);
    color: #fff;
}

/* =============================================
   ACCESSIBILITY
   ============================================= */
.skip-to-main {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.skip-to-main:focus {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    width: auto;
    height: auto;
    overflow: visible;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}


