.epg-container {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.epg-header {
    background: linear-gradient(135deg, #6e48aa, #9d50bb);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.epg-title {
    margin: 0;
    font-size: 24px;
}

.epg-filters {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: <?php echo $atts['mostrar_filtros'] === 'true' ? 'block' : 'none'; ?>;
}

.epg-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    display: <?php echo $atts['mostrar_estadisticas'] === 'true' ? 'flex' : 'none'; ?>;
}

.epg-stat-card {
    flex: 1;
    min-width: 150px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.epg-stat-value {
    font-size: 24px;
    font-weight: bold;
    margin: 5px 0;
}

.epg-stat-label {
    font-size: 14px;
    color: #666;
}

.epg-event-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.epg-event-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.epg-event-title {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.epg-event-date {
    color: #6c757d;
    font-size: 14px;
}

.epg-table-container {
    overflow-x: auto;
}

.epg-table {
    width: 100%;
    border-collapse: collapse;
}

.epg-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
}

.epg-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.epg-table tr:hover td {
    background-color: #f8f9fa;
}

.epg-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-presente {
    background-color: #d4edda;
    color: #155724;
}

.badge-ausente {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-justificado {
    background-color: #fff3cd;
    color: #856404;
}

.epg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
}

.epg-search-box {
    margin-bottom: 15px;
}

.epg-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.epg-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    display: <?php echo $atts['mostrar_paginacion'] === 'true' ? 'flex' : 'none'; ?>;
}

.epg-pagination a {
    padding: 8px 16px;
    margin: 0 4px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #2c3e50;
}

.epg-pagination a.active {
    background: #6e48aa;
    color: white;
    border-color: #6e48aa;
}

@media (max-width: 768px) {
    .epg-stat-card {
        min-width: calc(50% - 15px);
    }
    
    .epg-table th, .epg-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .epg-event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .epg-stat-card {
        min-width: 100%;
    }
}



/* Estilos para Select2 */
.select2-container {
    margin-bottom: 10px;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 50px;
    padding: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #007cba;
    color: white;
}

/* Asegurar que los selects en modales se vean bien */
.pitch-modal .select2-container,
.evento-modal .select2-container {
    z-index: 99999 !important;
}

.select2-dropdown {
    z-index: 99999 !important;
}


.select2-container .select2-selection--single {
    height: 50px !important;
    line-height: 40px;
}

body .select2-container .select2-dropdown{
    max-width: 50% !important;
}