/* Dashboard Layout */
.dashboard-page {
    background: #f8fafc;
    min-height: 100vh;
}

.dashboard-content {
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.welcome-message h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    color: #666;
    font-size: 1.1rem;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 1rem;
    border-radius: 0.8rem;
}

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a1a1a;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dashboard-section h2 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

/* Progress Section */
.level-progress {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.8rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.progress-text {
    color: #666;
    font-size: 0.9rem;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.8rem;
    transition: transform 0.3s ease;
}

.activity-item:hover {
    transform: translateX(5px);
}

.activity-item img {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    object-fit: cover;
}

/* Charts */
.impact-section, .community-section {
    grid-column: span 2;
}

/* Quests Grid */
.quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quest-card {
    background: #f8fafc;
    border-radius: 0.8rem;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.quest-card:hover {
    transform: translateY(-5px);
}

.quest-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.quest-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.achievement-card {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.8rem;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: scale(1.05);
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-content {
        padding: 1rem;
    }

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

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

    .impact-section, .community-section {
        grid-column: span 1;
    }
}
