/* ===== DASHBOARD PAGE - PROFESSIONAL REDESIGN ===== */

/* Dashboard Container */
.dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4);
}

/* Welcome Header */
.dashboard-welcome {
    margin-bottom: var(--space-5);
}

.dashboard-welcome h1 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--space-1) 0;
}

.dashboard-welcome p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

/* Next Event Hero Card */
.dashboard-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    color: white;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.dashboard-hero-label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    margin-bottom: var(--space-2);
}

.dashboard-hero-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-1);
}

.dashboard-hero-date {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--space-3);
}

.dashboard-hero-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.dashboard-hero-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.dashboard-hero-badge i {
    font-size: 0.65rem;
}

.dashboard-hero-empty {
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-6);
}

.dashboard-hero-empty::before {
    display: none;
}

.dashboard-hero-empty i {
    font-size: 32px;
    opacity: 0.3;
    margin-bottom: var(--space-2);
    display: block;
}

/* Stats Grid - Compact - Overrides pages.css */
.dashboard-page .dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.dashboard-page .stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: all 0.2s ease;
    cursor: pointer;
}

.dashboard-page .stat-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.dashboard-page .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-page .stat-icon svg,
.dashboard-page .stat-icon i {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.dashboard-page .stat-content {
    flex: 1;
    min-width: 0;
}

.dashboard-page .stat-value {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--text-primary);
}

.dashboard-page .stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Quick Actions */
.dashboard-actions {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.quick-action-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.quick-action-btn i {
    font-size: 0.8rem;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.dashboard-card-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.dashboard-card-title i {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.dashboard-card-link {
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    text-decoration: none;
}

.dashboard-card-link:hover {
    text-decoration: underline;
}

.dashboard-card-body {
    padding: var(--space-3) var(--space-4);
}

.dashboard-card-empty {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    color: var(--text-muted);
}

.dashboard-card-empty i {
    font-size: 24px;
    opacity: 0.3;
    margin-bottom: var(--space-2);
    display: block;
}

.dashboard-card-empty p {
    font-size: var(--font-size-sm);
    margin: 0;
}

/* List Items */
.dashboard-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.dashboard-list-rank {
    width: 20px;
    height: 20px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-list-rank.gold {
    background: #fef3c7;
    color: #d97706;
}

.dashboard-list-rank.silver {
    background: #f1f5f9;
    color: #64748b;
}

.dashboard-list-rank.bronze {
    background: #fed7aa;
    color: #c2410c;
}

.dashboard-list-content {
    flex: 1;
    min-width: 0;
}

.dashboard-list-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-list-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.dashboard-list-badge {
    font-size: var(--font-size-xs);
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    flex-shrink: 0;
}

/* Event List Item */
.dashboard-event-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.dashboard-event-date {
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.dashboard-event-day {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1;
}

.dashboard-event-month {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
}

.dashboard-event-content {
    flex: 1;
    min-width: 0;
}

.dashboard-event-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.dashboard-event-time {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

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

@media (max-width: 768px) {
    .dashboard-page {
        padding: var(--space-3);
        padding-left: max(var(--space-3), var(--safe-area-left));
        padding-right: max(var(--space-3), var(--safe-area-right));
    }

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

    .dashboard-hero {
        padding: var(--space-4);
    }

    .dashboard-actions {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--space-2);
    }

    .quick-action-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .dashboard-page .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
    }

    .dashboard-page .stat-card {
        padding: var(--space-2) var(--space-3);
    }

    .dashboard-page .stat-icon {
        width: 32px;
        height: 32px;
    }

    .dashboard-page .stat-icon svg,
    .dashboard-page .stat-icon i {
        width: 16px;
        height: 16px;
        font-size: 16px;
    }
}
