
/* ============================================================================
   DASHBOARD HEADER
   Special header styling for dashboard stats overview
   ============================================================================ */

.dashboard-stats-header {
    background: linear-gradient(135deg, var(--cards-bg-secondary) 0%, var(--cards-bg-primary) 100%);
    border: 1px solid var(--cards-border-primary);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    color: var(--cards-text-primary);
}


/* ============================================================================
   STATS GRID
   Dashboard-specific stats display
   ============================================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.stat-card.highlight {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid #ffc107;
}


/* ============================================================================
   DASHBOARD GRID LAYOUT
   Two-column grid for dashboard sections (uses cards-grid-2col as base)
   ============================================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}


/* ============================================================================
   DASHBOARD SECTION
   Section containers for dashboard content
   Uses base .cards-section pattern with dashboard-specific styling
   ============================================================================ */

.dashboard-section {
    background: var(--cards-bg-primary);
    border: 1px solid var(--cards-border-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--cards-shadow-sm);
}

.dashboard-section.full-width {
    grid-column: 1 / -1;
}

.section-header {
    background: var(--cards-bg-secondary);
    padding: 20px;
    border-bottom: 1px solid var(--cards-border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    margin: 0;
    color: var(--cards-text-primary);
    font-size: 1.3rem;
}

.section-content {
    padding: 25px;
}


/* ============================================================================
   DASHBOARD ACTION CARDS
   Dashboard-specific action card states
   ============================================================================ */

.action-cards {
    display: grid;
    gap: 15px;
}

.action-card {
    
    background: var(--cards-bg-primary);
    border-left: 4px solid var(--alert-primary);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: var(--cards-shadow-sm);
}

.action-card:hover {
    box-shadow: var(--cards-shadow-md);
    transform: translateY(-2px);
}

.action-card h4 {
    margin: 0 0 10px 0;
    color: var(--cards-text-primary);
    font-size: 1.1rem;
}

.action-card p {
    margin: 0 0 15px 0;
    color: var(--cards-text-secondary);
    font-size: 0.9rem;
}

.action-card.highlight {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.action-card.urgent {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.action-card.daily-special {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.15);
    border: 2px solid #ffc107;
}


/* ============================================================================
   DASHBOARD ACTIVITY FEED CUSTOMIZATION
   Dashboard uses base .cards-activity-feed with alias
   ============================================================================ */

.activity-feed {
    
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
   
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--cards-bg-secondary);
    border-radius: 8px;
    border-left: 4px solid #6f42c1;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: var(--cards-bg-tertiary);
    box-shadow: var(--cards-shadow-sm);
}

.activity-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(111, 66, 193, 0.1);
    border-radius: 8px;
    font-size: 1.5rem;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 5px 0;
    color: var(--cards-text-primary);
}

.activity-content small {
    color: var(--cards-text-muted);
}


/* ============================================================================
   QUICK LINKS
   Dashboard uses base .quick-links from cards-base.css
   ============================================================================ */

.quick-links {
   
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.quick-link {
    
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--cards-bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--cards-text-primary);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.quick-link:hover {
    color: #007bff;
    background: var(--cards-bg-tertiary);
    border-color: #007bff;
    transform: translateY(-2px);
    text-decoration: none;
}

.quick-link span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}


/* ============================================================================
   SPECIAL ANIMATIONS
   Dashboard-specific animations
   ============================================================================ */

.claim-daily-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}


/* ============================================================================
   DARK THEME OVERRIDES
   Dashboard-specific dark theme customizations
   ============================================================================ */

[data-bs-theme="dark"] .action-card {
    background: #3a3f44;
}


/* ============================================================================
   RESPONSIVE BREAKPOINTS
   Dashboard-specific mobile adjustments
   ============================================================================ */

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-info h3 {
        font-size: 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .section-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-stats-header {
        padding: 20px;
        margin-bottom: 20px;
    }

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

    .action-card {
        padding: 15px;
    }
}
