/* Dashboard Dark Mode Styles */

/* Dashboard Header */
[data-theme="dark"] .dashboard-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0d9488 100%);
    color: white;
    border-bottom: 1px solid #2d3748;
}

[data-theme="dark"] .dashboard-title {
    color: white;
}

[data-theme="dark"] .dashboard-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Stats Cards */
[data-theme="dark"] .stats-grid {
    gap: 1.5rem;
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .metric-card {
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

[data-theme="dark"] .stat-card:hover,
[data-theme="dark"] .metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.5);
    border-color: #4a5568;
}

[data-theme="dark"] .stat-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

[data-theme="dark"] .stat-value {
    color: #f7fafc;
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

[data-theme="dark"] .stat-label {
    color: #a0aec0;
    font-size: 0.875rem;
    font-weight: 500;
}

[data-theme="dark"] .stat-change {
    font-size: 0.75rem;
    font-weight: 600;
}

[data-theme="dark"] .stat-change.positive {
    color: #34d399;
}

[data-theme="dark"] .stat-change.negative {
    color: #f87171;
}

/* Chart Containers */
[data-theme="dark"] .chart-container,
[data-theme="dark"] .widget {
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .widget-header {
    border-bottom: 1px solid #2d3748;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

[data-theme="dark"] .widget-title {
    color: #f7fafc;
    font-size: 1.125rem;
    font-weight: 600;
}

[data-theme="dark"] .widget-subtitle {
    color: #a0aec0;
    font-size: 0.875rem;
}

/* Tables in Dashboard */
[data-theme="dark"] .dashboard-table {
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 12px;
    overflow: hidden;
}

[data-theme="dark"] .dashboard-table thead {
    background: #2d3748;
}

[data-theme="dark"] .dashboard-table th {
    color: #e2e8f0;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 1px solid #4a5568;
}

[data-theme="dark"] .dashboard-table td {
    color: #cbd5e0;
    padding: 1rem;
    border-bottom: 1px solid #2d3748;
}

[data-theme="dark"] .dashboard-table tbody tr:hover {
    background: #2d3748;
}

[data-theme="dark"] .dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

/* Action Buttons */
[data-theme="dark"] .action-btn {
    background: #2d3748;
    border: 1px solid #4a5568;
    color: #cbd5e0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

[data-theme="dark"] .action-btn:hover {
    background: #4a5568;
    border-color: var(--primary-color);
    color: var(--primary-light);
}

[data-theme="dark"] .action-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .action-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-1px);
}

/* Status Indicators */
[data-theme="dark"] .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .status-inactive {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

[data-theme="dark"] .status-error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Progress Indicators */
[data-theme="dark"] .progress-container {
    background: #2d3748;
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
}

[data-theme="dark"] .progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

[data-theme="dark"] .progress-text {
    color: #a0aec0;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Quick Actions */
[data-theme="dark"] .quick-actions {
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 1.5rem;
}

[data-theme="dark"] .quick-action-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #cbd5e0;
}

[data-theme="dark"] .quick-action-item:hover {
    background: #2d3748;
    color: #f7fafc;
    transform: translateX(4px);
}

[data-theme="dark"] .quick-action-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
}

/* Notifications Panel */
[data-theme="dark"] .notifications-panel {
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 12px;
}

[data-theme="dark"] .notification-item {
    padding: 1rem;
    border-bottom: 1px solid #2d3748;
    transition: all 0.2s ease;
}

[data-theme="dark"] .notification-item:hover {
    background: #2d3748;
}

[data-theme="dark"] .notification-item:last-child {
    border-bottom: none;
}

[data-theme="dark"] .notification-title {
    color: #f7fafc;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

[data-theme="dark"] .notification-message {
    color: #a0aec0;
    font-size: 0.875rem;
    line-height: 1.4;
}

[data-theme="dark"] .notification-time {
    color: #718096;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Search and Filters */
[data-theme="dark"] .search-container {
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 8px;
    padding: 0.75rem;
}

[data-theme="dark"] .search-input {
    background: #2d3748;
    border: 1px solid #4a5568;
    color: #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    width: 100%;
}

[data-theme="dark"] .search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .filter-btn {
    background: #2d3748;
    border: 1px solid #4a5568;
    color: #cbd5e0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-left: 0.5rem;
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    [data-theme="dark"] .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    [data-theme="dark"] .stat-card,
    [data-theme="dark"] .metric-card {
        padding: 1rem;
    }
    
    [data-theme="dark"] .dashboard-table {
        font-size: 0.875rem;
    }
    
    [data-theme="dark"] .dashboard-table th,
    [data-theme="dark"] .dashboard-table td {
        padding: 0.75rem 0.5rem;
    }
}