/* Dashboard Styles */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-welcome h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.dashboard-welcome p {
    opacity: 0.9;
    margin-bottom: 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary-color);
}

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

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.stat-card-title {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1.2;
}

.stat-card-period {
    font-size: 12px;
    color: #6c757d;
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 22px;
}

.stat-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.stat-card-trend {
    display: flex;
    align-items: center;
    margin-right: 10px;
    font-weight: 500;
}

.trend-up {
    color: #28a745;
}

.trend-down {
    color: #dc3545;
}

/* Chart Section */
.chart-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.chart-actions {
    display: flex;
    gap: 10px;
}

.chart-period-selector {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    color: #495057;
}

.chart-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.chart-stat-item {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    flex: 1;
    min-width: 120px;
}

.chart-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.chart-stat-label {
    font-size: 13px;
    color: #6c757d;
}

.chart-area {
    margin-top: 65px;
    margin-bottom: 25px;
    height: 300px;
    position: relative;
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    margin-top: 10px;
    padding: 0 10px;
}

.chart-bar {
    flex: 1;
    margin: 0 5px;
    background: linear-gradient(to top, var(--accent-color), var(--secondary-color));
    border-radius: 20px 20px 0 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.chart-bar:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.chart-bar-highlight {
    background: linear-gradient(to top, var(--primary-color), var(--dark-color));
}

.chart-bar-value {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 10px;
}

.chart-label {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    margin: 0 5px;
}

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

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .chart-area {
        margin-top: 125px;
        margin-bottom: -35px;
    }

    .chart-stat-item {
        min-width: 100%;
    }

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

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .chart-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .chart-bars {
        height: 120px;
    }

    .chart-bar-value {
        font-size: 10px;
        top: -20px;
    }

    .chart-label {
        font-size: 10px;
    }
}