:root {
    --primary-color: #004d80;
    /* Deep Bank Blue */
    --secondary-color: #f47b20;
    /* Brand Orange */
    --accent-color: #00b4d8;
    /* Light Blue */
    --success-color: #10b981;
    /* Emerald 500 */
    --warning-color: #f59e0b;
    /* Amber 500 */
    --danger-color: #ef4444;
    /* Red 500 */
    --bg-color: #f1f5f9;
    /* Slate 100 */
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    /* Slate 800 */
    --text-secondary: #64748b;
    /* Slate 500 */
    --border-radius: 1rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --sidebar-width: 280px;
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: white;
    position: fixed;
    top: 52px;
    /* Below Top Header if exists */
    bottom: 0;
    left: 0;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding-top: 1rem;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    margin-top: 10px;
    /* Adjust for header */
}

/* Sidebar Navigation */
.nav-link {
    color: #cbd5e1;
    /* Slate 300 */
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.5rem;
    margin: 0.25rem 1rem;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--secondary-color);
    color: white;
    transform: translateX(4px);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--secondary-color);
    margin-bottom: 1rem;
}

/* Cards */
.card-modern {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header-modern {
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Tables */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table-modern th {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.table-modern td {
    background: white;
    padding: 1rem;
    vertical-align: middle;
}

.table-modern tr td:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.table-modern tr td:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.table-modern tr {
    transition: transform 0.1s;
}

.table-modern tr:hover td {
    background-color: #f8fafc;
}

/* Badges */
.badge-modern {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.bg-soft-success {
    background-color: #d1fae5;
    color: #065f46;
}

.bg-soft-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.bg-soft-danger {
    background-color: #fee2e2;
    color: #b91c1c;
}

.bg-soft-blue {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Buttons */
.btn-modern {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-modern-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-modern-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}