
/* Filters Section */
.mep-analytics-filters {
    background-color: var(--color_white);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.mep-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mep-filter {
    min-width: 150px;
}

#mep-custom-date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

/* Summary Cards */
.mep-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mep-card {
    background-color: var(--color_white);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.mep-card-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    color: var(--color_theme);
}

.mep-card-content h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--color_dark);
}

.mep-card-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 5px 0 0;
    color: var(--color_dark);
}

/* Charts */
.mep-charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mep-chart-wrapper {
    background-color: var(--color_white);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.mep-chart-wrapper h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--color_dark);
}

.mep-chart-container {
    position: relative;
    height: 300px;
}

/* Data Table */
.mep-data-table-wrapper {
    background-color: var(--color_white);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.mep-data-table-wrapper h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--color_dark);
}

.mep-data-table {
    width: 100%;
    border-collapse: collapse;
}

.mep-data-table th {
    text-align: left;
    padding: 12px;
    background-color: var(--color_light);
    color: var(--color_dark);
    font-weight: bold;
}

.mep-data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--color_light);
}

/* Responsive Adjustments */
@media screen and (max-width: 1200px) {
    .mep-charts-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .mep-summary-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .mep-filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #mep-custom-date-range {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Card Colors */
#mep-total-sales .mep-card-icon {
    color: var(--color_green);
}

#mep-tickets-sold .mep-card-icon {
    color: var(--color_theme);
}

#mep-total-events .mep-card-icon {
    color: var(--color_orange);
}

#mep-avg-ticket-price .mep-card-icon {
    color: var(--mpev-purple);
}

/* Loading Indicator */
.mep-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.mep-loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 5px solid var(--color_light);
    border-top: 5px solid var(--color_theme);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
