/* Dashboard Page Styles */
@import url('./application.css');

/* Dashboard page animation */
.dashboard-page {
    animation: fadeIn 0.3s ease-in-out;
    padding: 1.5rem;
}

.dashboard-page.animate-in {
    animation: slideInUp 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.dashboard-page .section-header {
    margin-bottom: 2rem;
}

.dashboard-page .section-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}

.dashboard-page .section-header p {
    margin: 0;
    color: #6c757d;
}

/* Period Selector */
.dashboard-period-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.dashboard-period-selector .btn-group .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.875rem;
}

.period-custom-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.period-custom-range .form-control {
    font-size: 0.875rem;
    height: 34px;
    padding: 0.25rem 0.5rem;
    width: auto;
}

.period-range-sep {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #f0f4ff;
    border-radius: 10px;
    color: #007bff;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Secondary Stats */
.secondary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-icon--warning {
    background: #fff3cd !important;
    color: #856404 !important;
}

.stat-icon--success {
    background: #d1f2eb !important;
    color: #1a7a5e !important;
}

.stat-icon--danger {
    background: #fce4ec !important;
    color: #c62828 !important;
}

.stat-card--source .stat-content {
    min-width: 0;
}

.source-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.35rem;
}

.source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.source-label {
    color: #6c757d;
}

.source-count {
    font-weight: 600;
    color: #333;
}

/* Quick Actions */
.quick-actions {
    margin-top: 2rem;
}

.quick-actions h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.action-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f0f4ff;
    border-radius: 10px;
    color: #007bff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.action-card:hover .action-icon {
    background: #007bff;
    color: white;
}

.action-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.action-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
}

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

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

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

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

    .secondary-stats {
        grid-template-columns: 1fr;
    }

    .action-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }
}
