.dashboard-container {
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.dashboard-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .stat-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .stat-icon.blue {
        background-color: #dbeafe;
        color: #2563eb;
    }

    .stat-icon.green {
        background-color: #dcfce7;
        color: #16a34a;
    }

    .stat-icon.purple {
        background-color: #f3e8ff;
        color: #9333ea;
    }

    .stat-icon.orange {
        background-color: #ffedd5;
        color: #ea580c;
    }

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.75rem;
    color: #9ca3af;
}

.dashboard-section {
    margin-bottom: 2rem;
}

.dashboard-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quick-action-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

    .quick-action-card:hover {
        border-color: #93c5fd;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

.quick-action-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.quick-action-badge {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.quick-action-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.quick-action-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.activity-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.activity-list {
    border-top: 1px solid #e5e7eb;
}

    .activity-list > :first-child {
        border-top: none;
    }

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    transition: background-color 0.2s;
    border-top: 1px solid #e5e7eb;
}

    .activity-item:first-child {
        border-top: none;
    }

    .activity-item:hover {
        background-color: #f9fafb;
    }

.activity-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.activity-icon.success svg {
    color: #16a34a;
}

.activity-icon.warning svg {
    color: #f59e0b;
}

.activity-icon.info svg {
    color: #3b82f6;
}

.activity-content {
    flex: 1;
}

.activity-action {
    font-size: 0.875rem;
    color: #111827;
    margin: 0 0 0.125rem 0;
}

.activity-user {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

.activity-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Charts Grid - 2 columns layout */
.dashboard-charts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .dashboard-charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Chart Card Styles */
.chart-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.chart-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.chart-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.chart-loading,
.chart-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 400px;
}

.loading-text {
    color: #6b7280;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0.125rem;
}

.mud-chart-bar {
    stroke-width: 60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }

    .chart-card {
        min-height: 400px;
    }

    .chart-content {
        min-height: 250px;
    }
}
