/* Dashboard Specific Styles */

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.dashboard-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.dashboard-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.dashboard-hero h1 i {
    margin-left: 0.5rem;
    color: #ffd700;
}

.dashboard-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Stats Section */
.stats-section {
    padding: 3rem 0;
    background: var(--background);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 0.95rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1;
}

.stat-unit {
    font-size: 0.9rem;
    color: #9CA3AF;
    margin-right: 0.3rem;
}

/* Charts Section */
.charts-section {
    padding: 3rem 0;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.chart-card.full-width {
    margin-top: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--background);
}

.chart-header h3 {
    font-size: 1.3rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-header i {
    color: var(--primary);
}

.year-select {
    padding: 0.5rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.3s;
}

.year-select:focus {
    outline: none;
    border-color: var(--primary);
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.period-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text);
}

.period-btn:hover {
    background: var(--background);
}

.period-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Activity Section */
.activity-section {
    padding: 3rem 0;
    background: var(--background);
}

.section-title {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary);
}

.activity-list {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--background);
    transition: background 0.3s;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: var(--background);
}

.activity-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.activity-content p {
    color: #6B7280;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.activity-time {
    font-size: 0.85rem;
    color: #9CA3AF;
}

.activity-value {
    text-align: left;
}

.value-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    /* Mobile Menu */
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 2rem 0;
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--background);
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: var(--background);
        padding-right: 2.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary);
        cursor: pointer;
        z-index: 1000;
    }
    
    .mobile-menu-btn i {
        transition: transform 0.3s ease;
    }
    
    .dashboard-hero h1 {
        font-size: 1.8rem;
    }

    .dashboard-hero p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .chart-controls {
        width: 100%;
    }

    .period-btn {
        flex: 1;
        text-align: center;
    }

    .activity-item {
        flex-direction: column;
        text-align: center;
    }

    .activity-value {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}
