/* ==========================================
   DASHBOARD ENHANCEMENTS
   ========================================== */

/* Dashboard Hero / Welcome Section */
.dashboard-hero {
    margin-bottom: 2rem;
}

.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.avatar-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.welcome-card h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
}

.welcome-card p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.quick-stats {
    display: flex;
    gap: 3rem;
}

.quick-stats .stat {
    text-align: center;
}

.quick-stats .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.quick-stats .label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.action-card {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    color: #fff;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.action-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.action-card:hover::before {
    opacity: 1;
}

.action-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.action-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.95;
}

.action-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.action-card p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 0;
}

.gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333 !important;
}

.gradient-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Recent Orders Timeline */
.recent-orders-timeline {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.recent-orders-timeline h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-600) 0%, transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-600);
    z-index: 1;
}

.timeline-item.status-completed .timeline-icon {
    background: var(--success-color);
    border-color: var(--success-color);
    color: #fff;
}

.timeline-item.status-pending .timeline-icon {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: #fff;
}

.timeline-content h6 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.timeline-content .time {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-right: 0.75rem;
}

.timeline-content .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.stat-card.primary {
    border-left-color: var(--primary-600);
}

.stat-card.success {
    border-left-color: var(--success-color);
}

.stat-card.warning {
    border-left-color: var(--warning-color);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: #f8f9fa;
}

.stat-card.primary .stat-icon {
    background: rgba(225, 29, 72, 0.1);
    color: var(--primary-600);
}

.stat-card.success .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-card.warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-info h5 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.stat-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-card {
        flex-direction: column;
        text-align: center;
    }

    .avatar-section {
        flex-direction: column;
        text-align: center;
    }

    .quick-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 2rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }
}