/* Modern Dashboard Redesign - Dashboard Body Only */
:root {
    --primary-color: #2b3990;
    --secondary-color: #030b19;
    --accent-color: #ffffff;
    --text-primary: #2b3990;
    --text-secondary: #030b19;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --shadow-light: rgba(43, 57, 144, 0.1);
    --shadow-medium: rgba(43, 57, 144, 0.15);
    --gradient-primary: linear-gradient(135deg, #2b3990 0%, #1e2a5e 100%);
    --gradient-secondary: linear-gradient(135deg, #030b19 0%, #1a1f2e 100%);
}

/* Dashboard Cards - Main Content Area */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: all 0.3s ease;
    overflow: hidden;
    background: var(--accent-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.card-content {
    padding: 1.5rem;
}

/* Dashboard Stats Cards */
.dashboard-card-parent {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-card-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: var(--accent-color);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(43, 57, 144, 0.2);
}

.dashboard-card-child2 h5 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0 0 0.25rem 0;
}

.dashboard-card-child2 small {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Chart Cards */
.card h5 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card small {
    color: var(--text-muted);
    font-weight: 500;
}

/* Bottom Stats Cards */
.stats-card-primary {
    background: var(--gradient-primary) !important;
    border: none;
}

.stats-card-secondary {
    background: var(--gradient-secondary) !important;
    border: none;
}

.stats-card-accent {
    background: linear-gradient(135deg, #2b3990 0%, #4a90e2 100%) !important;
    border: none;
}

.stats-card-primary .stats-content,
.stats-card-secondary .stats-content,
.stats-card-accent .stats-content {
    color: var(--accent-color) !important;
}

.stats-card-primary .stats-content h5,
.stats-card-secondary .stats-content h5,
.stats-card-accent .stats-content h5 {
    color: var(--accent-color) !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stats-card-primary .stats-content h6,
.stats-card-secondary .stats-content h6,
.stats-card-accent .stats-content h6 {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin-bottom: 1rem;
}

.stats-card-primary .stats-content h3,
.stats-card-secondary .stats-content h3,
.stats-card-accent .stats-content h3 {
    color: var(--accent-color) !important;
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0;
}

/* Main Layout - Dashboard Body Only */
.main-layout-wrapper {
    padding: 2rem;
    background: #f8f9fa;
    min-height: 100vh;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}
 
/* Row and Column Spacing */
.row {
    /* margin-bottom: 1rem; */
}

.row:last-child {
    margin-bottom: 0;
}

.col {
    margin-bottom: 1.5rem;
}

/* Chart Container Styling */
.chartjs-loader {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 2rem;
}

/* Material Icons in Dashboard Cards */
.dashboard-card-child .material-icons {
    font-size: 1.75rem;
    color: var(--accent-color);
}

/* Enhanced Card Hover Effects */
.card:hover .dashboard-card-child {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(43, 57, 144, 0.25);
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
    .xl3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .xl3, .xl4, .xl9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .main-layout-wrapper {
        padding: 1rem;
    }
    
    .dashboard-card-parent {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .dashboard-card-child {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

/* Smooth Transitions for Cards Only */
.card,
.dashboard-card-child {
    transition: all 0.3s ease;
}

/* Override any existing card styles to ensure new design is applied */
.card.cyan.lighten-1,
.card.deep-purple.accent-2,
.card.blue.accent-3 {
    background: transparent !important;
}
