/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-gap: 1.5rem;
}

.dashboard-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dashboard-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.dashboard-grid-kpis {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .dashboard-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .dashboard-grid-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dashboard Card Enhancements */
.dashboard-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.dashboard-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-card-header h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #003f7f;
}

.dashboard-card-body {
    padding: 1.25rem;
}

/* KPI Cards */
.kpi-card {
    text-align: center;
    padding: 1rem;
}

.kpi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.kpi-subtitle {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Chart containers */
.chart-container {
    position: relative;
    width: 100%;
}

/* Activity list */
.activity-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-description {
    font-weight: 500;
    color: #003f7f;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.activity-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

.activity-time {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    margin-left: 1rem;
}

/* Quick actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-actions .ds-btn {
    width: 100%;
    justify-content: center;
}

/* Alert badges */
.alert-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.alert-badge.warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-badge.error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-badge i {
    margin-right: 0.5rem;
}

/* Legend grid */
.legend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

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

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Scrollable content */
.scrollable-content {
    max-height: 320px;
    overflow-y: auto;
}

.scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Clickable card for interactive KPIs */
.clickable-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.clickable-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
