.aem-event-table-wrapper {
    margin: 20px 0;
}

.aem-event-table-title {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.aem-event-filters {
    margin-bottom: 20px;
}

.aem-filter-header {
    margin-bottom: 15px;
    text-align: center;
}

.aem-filter-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #343a40;
}

.aem-filter-description {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

.aem-filter-form {
    width: 100%;
}

.aem-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    align-items: end;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.aem-filter-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.aem-filter-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #343a40;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.aem-filter-field input,
.aem-filter-field select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.aem-filter-field input:hover,
.aem-filter-field select:hover {
    border-color: #12783F;
    box-shadow: 0 2px 6px rgba(18, 120, 63, 0.1);
}

.aem-filter-field input:focus,
.aem-filter-field select:focus {
    border-color: #12783F;
    outline: none;
    box-shadow: 0 0 0 3px rgba(18, 120, 63, 0.15);
    transform: translateY(-1px);
}

/* Webinar location highlighting */
.aem-webinar-option {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%) !important;
    color: #2d5a2d !important;
    font-weight: 600 !important;
    position: relative;
}

.aem-webinar-option::before {
    content: '🌐';
    margin-right: 6px;
    font-size: 12px;
}

/* Enhanced webinar option styling when selected */
.aem-filter-field select option.aem-webinar-option:checked {
    background: linear-gradient(135deg, #12783F 0%, #0d5a2d 100%) !important;
    color: white !important;
    font-weight: 700 !important;
}

.aem-filter-actions {
    display: flex;
    gap: 12px;
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.aem-filter-button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #12783F 0%, #0d5a2d 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500 !important;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 4px rgba(18, 120, 63, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.aem-filter-button:hover {
    background: linear-gradient(135deg, #0d5a2d 0%, #12783F 100%);
    color: white;
    box-shadow: 0 3px 6px rgba(18, 120, 63, 0.3);
}

.aem-filter-button:active {
    box-shadow: 0 1px 2px rgba(18, 120, 63, 0.2);
}

.aem-clear-filter {
    padding: 4px 16px;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500 !important;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.aem-clear-filter:hover {
    background: linear-gradient(135deg, #5a6268 0%, #6c757d 100%);
    color: white;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(108, 117, 125, 0.3);
}

.aem-clear-filter:active {
    box-shadow: 0 1px 2px rgba(108, 117, 125, 0.2);
}

.aem-event-table-container {
    overflow-x: auto;
}

.aem-event-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.aem-event-table th,
.aem-event-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.aem-event-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.aem-event-table tr:hover {
    background-color: #f9f9f9;
}

.aem-event-table a {
    color: #12783F;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aem-event-table a:hover {
    color: #0d5a2d;
    text-decoration: underline;
}

.aem-signup-button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #12783F;
    color: white !important;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.aem-signup-button:hover {
    background-color: #0d5a2d;
    text-decoration: none;
}

.aem-pagination {
    margin-top: 20px;
    text-align: center;
}

.aem-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #12783F;
    transition: all 0.2s ease;
}

.aem-pagination .page-numbers.current {
    background-color: #12783F;
    color: white;
    border-color: #12783F;
}

.aem-pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
    border-color: #12783F;
}

.aem-no-events {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
    color: #666;
}

.aem-event-table-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Prefiltered category display */
.aem-prefiltered-category {
    padding: 8px 12px;
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #2d5a2d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .aem-filter-row {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .aem-filter-actions {
        grid-column: 1;
        justify-content: center;
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .aem-filter-field {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .aem-filter-row {
        padding: 12px;
        gap: 12px;
    }
    
    .aem-filter-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .aem-filter-button,
    .aem-clear-filter {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }
}

/* Additional improvements for better visual hierarchy */
.aem-event-filters {
    position: relative;
}

.aem-event-filters::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}