/* Global Theme */
:root {
    --brand-primary: #4f46e5;
    --brand-secondary: #6366f1;
    --brand-accent: #8b5cf6;
    --brand-dark: #1f2937;
    --brand-muted: #6b7280;
    --brand-surface: #ffffff;
    --brand-border: #e5e7eb;
    --brand-success: #16a34a;
    --brand-warning: #f59e0b;
    --brand-danger: #ef4444;
    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    --brand-muted-gradient: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(139, 92, 246, 0.12) 100%);
    --shadow-soft: 0 12px 24px -12px rgba(79, 70, 229, 0.35);
    --shadow-card: 0 20px 40px -20px rgba(15, 23, 42, 0.25);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
    font-family: var(--font-primary);
}

html, body {
    background: #f3f4f6;
    min-height: 100%;
    color: #111827;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);
}

a {
    text-decoration: none;
}

.page-wrapper {
    padding-bottom: 48px;
}

.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--brand-gradient);
    box-shadow: var(--shadow-soft);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.4px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82) !important;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.hero {
    background: var(--brand-gradient);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-card {
    border-radius: var(--radius-lg);
    background: var(--brand-surface);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(79, 70, 229, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -24px rgba(79, 70, 229, 0.45);
}

.stat-card h6 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--brand-muted);
    letter-spacing: 0.08em;
}

.stat-card .value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.card-modern {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    background: var(--brand-surface);
}

.card-head {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    background: var(--brand-muted-gradient);
}

.card-head h2,
.card-head h3,
.card-head h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.card-body-lg {
    padding: 24px;
}

.btn-gradient {
    background: var(--brand-gradient);
    border: none;
    color: #ffffff;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.btn-gradient:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline-gradient {
    border: 1px solid rgba(79, 70, 229, 0.4);
    color: var(--brand-primary);
    font-weight: 600;
}

.btn-outline-gradient:hover {
    background: rgba(79, 70, 229, 0.06);
    color: var(--brand-primary);
}

.badge-soft {
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.badge-soft.success {
    background: rgba(22, 163, 74, 0.1);
    color: var(--brand-success);
}

.badge-soft.warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--brand-warning);
}

.badge-soft.info {
    background: rgba(79, 70, 229, 0.12);
    color: var(--brand-secondary);
}

.badge-soft.muted {
    background: rgba(107, 114, 128, 0.12);
    color: var(--brand-muted);
}

.table-modern {
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
    margin-top: -12px;
}

.table-modern thead th {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--brand-muted);
    border: none;
    padding: 0.75rem 1rem;
    background: transparent;
}

.table-modern tbody tr {
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 12px 32px -20px rgba(15, 23, 42, 0.4);
}

.table-modern tbody tr td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

.table-modern tbody tr td:first-child,
.table-modern thead th:first-child {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.table-modern tbody tr td:last-child,
.table-modern thead th:last-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.table-modern tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -20px rgba(79, 70, 229, 0.35);
}

.list-group-modern .list-group-item {
    border: none;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 10px 30px -20px rgba(15, 23, 42, 0.35);
    padding: 18px 20px;
}

.form-modern .form-label {
    font-weight: 600;
    color: var(--brand-dark);
}

.form-modern .form-control,
.form-modern .form-select {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-modern .form-control:focus,
.form-modern .form-select:focus {
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.filter-bar {
    border-radius: var(--radius-md);
    background: #fff;
    padding: 16px;
    border: 1px solid rgba(79, 70, 229, 0.08);
    box-shadow: var(--shadow-soft);
}

.section-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--brand-dark);
}

.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(79, 70, 229, 0.18);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.alert-modern {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-soft);
    padding: 18px 20px;
}

.alert-modern strong {
    color: var(--brand-dark);
}

.summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.85rem;
}

.summary-pill .icon {
    font-size: 1.1rem;
}

.action-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-toolbar .btn {
    border-radius: 999px;
    padding-inline: 20px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(79, 70, 229, 0.12);
    color: var(--brand-secondary);
}

.chip i {
    font-size: 0.85rem;
}

.empty-state {
    padding: 40px 32px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: var(--brand-surface);
    box-shadow: var(--shadow-soft);
}

.empty-state h4 {
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-note {
    color: var(--brand-muted);
    font-size: 0.85rem;
}

@media (max-width: 991.98px) {
    .hero {
        padding: 28px;
    }

    .stat-card .value {
        font-size: 1.5rem;
    }

    .card-head {
        padding: 16px;
    }

    .card-body-lg {
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    .hero {
        text-align: center;
    }

    .summary-pill {
        justify-content: center;
    }

    .action-toolbar {
        flex-direction: column;
        gap: 8px;
    }

    .table-modern {
        border-spacing: 0 !important;
    }

    .table-modern tbody tr td {
        padding: 0.75rem;
    }
}




