/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e74c3c;
    --secondary-color: #c0392b;
    --accent-color: #f39c12;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
}

/* Controls Section */
.controls {
    background: var(--white);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.controls-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.search-box {
    max-width: 600px;
    flex: 1;
}

/* View Toggle Icons */
.view-toggle-icons {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-light);
    padding: 0.25rem;
    border-radius: 6px;
}

.view-icon-btn {
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.view-icon-btn:hover {
    background: var(--white);
    transform: scale(1.1);
}

.view-icon-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

/* Filter Icon Image */
.filter-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.6);
    transition: filter 0.3s;
}

.filter-icon-btn:hover .filter-icon {
    filter: grayscale(100%) brightness(0.4);
}

.filter-icon-btn.active .filter-icon {
    filter: brightness(0) invert(1);
}

.search-box input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}


/* Filter Panel */
.filter-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    padding: 2rem;
}

.filter-panel.open {
    right: 0;
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.filter-panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.filter-panel-close {
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    padding: 0;
}

.filter-panel-close:hover {
    color: var(--primary-color);
}

/* Filter Panel Overlay */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    transition: opacity 0.3s;
}

.filter-overlay.open {
    display: block;
}

.filter-section {
    margin-bottom: 1.25rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* Dance Style Filter Buttons */
.dance-style-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dance-style-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--accent-color);
    background: var(--white);
    color: var(--accent-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.dance-style-btn:hover {
    background: rgba(243, 156, 18, 0.1);
    transform: translateY(-1px);
}

.dance-style-btn.active {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
}

.filter-section select {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: var(--white);
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-section select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Filter Toggle */
.filter-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    transition: background 0.3s;
}

.filter-toggle-label:hover {
    background: #dfe4e8;
}

.filter-toggle-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.filter-toggle-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    user-select: none;
}

/* Quick Date Filters */
.quick-filters-row {
    margin-bottom: 1rem;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #3498db;
    background: var(--white);
    color: #3498db;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-filter-btn:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.quick-filter-btn.active {
    background: #3498db;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* State Filter Dropdown */
.state-filter-dropdown {
    position: relative;
    width: 100%;
}

.state-dropdown-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.state-dropdown-btn:hover {
    background: var(--bg-light);
}

.state-dropdown-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.state-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.state-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.state-checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    gap: 0.75rem;
}

.state-checkbox-item:hover {
    background: var(--bg-light);
}

.state-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.state-checkbox-item span {
    font-size: 0.9rem;
    color: var(--text-dark);
    user-select: none;
}


/* Date Section */
.date-section {
    margin-bottom: 3rem;
}

.date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.date-header h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.event-count {
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Event Card */
.event-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Event Image */
.event-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-light);
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.event-image-container:hover .event-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.event-image-container:hover .image-overlay {
    opacity: 1;
}

.expand-icon {
    font-size: 0.9rem;
    font-weight: 600;
}

.event-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 1.25rem;
}

.event-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.event-name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}

/* Favorite Button */
.favorite-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.favorite-btn.saved {
    background: rgba(231, 76, 60, 0.15);
}

.event-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-type {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

.music-type {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Dance Styles Tags */
.dance-styles {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(to bottom, var(--bg-light), var(--white));
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dance-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dance-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.event-body {
    padding: 1.25rem;
}

.event-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.event-detail .icon {
    margin-right: 0.5rem;
    min-width: 20px;
    font-size: 1.1rem;
}

.event-detail .label {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 0.5rem;
}

.event-detail .value {
    color: var(--text-light);
    flex: 1;
}

.location-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.location-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.event-footer {
    background: var(--bg-light);
    padding: 1rem 1.25rem;
    border-top: 1px solid #e0e0e0;
}

.event-footer .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.event-footer .notes {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

.debug-filename {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}


/* Map Container */
#mapContainer {
    display: flex;
    gap: 1rem;
    height: 600px;
    margin-bottom: 2rem;
}

#map {
    flex: 2;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

#mapSidebar {
    flex: 1;
    overflow-y: auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1rem;
}

.map-event-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.map-event-item:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.map-event-item.selected {
    background: var(--bg-light);
    border-color: var(--primary-color);
    border-width: 2px;
}

.map-event-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.map-event-details {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Loading and No Results */
.loading,
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.no-results p {
    color: var(--text-light);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 999;
    border-top: 2px solid var(--primary-color);
}

.bottom-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-light);
}

.bottom-nav-btn:hover {
    background: var(--bg-light);
}

.bottom-nav-btn.active {
    color: var(--primary-color);
}

.bottom-nav-btn .nav-icon {
    font-size: 1.5rem;
}

.bottom-nav-btn .nav-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.bottom-nav-btn.active .nav-label {
    color: var(--primary-color);
}

/* Saved Section */
.saved-section {
    padding-bottom: 5rem;
}

/* Submit Section */
.submit-section {
    padding-bottom: 5rem;
}

/* Admin Section */
.admin-section {
    padding-bottom: 5rem;
}

.admin-login {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    max-width: 400px;
    width: 100%;
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-login-btn {
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.login-error {
    color: #dc3545;
    background: #f8d7da;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #f5c6cb;
}

.admin-dashboard {
    padding: 2rem 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-logout-btn {
    padding: 0.75rem 1.5rem;
    background: var(--text-light);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-logout-btn:hover {
    background: var(--text-dark);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.admin-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-end;
}

.admin-btn {
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

/* AG Grid Customization */
#adminEventsGrid {
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* AG Grid header styling to match our theme */
#adminEventsGrid .ag-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-bottom: none;
}

#adminEventsGrid .ag-header-cell {
    color: var(--white);
    font-weight: 700;
}

#adminEventsGrid .ag-header-cell-text {
    color: var(--white);
}

#adminEventsGrid .ag-icon {
    color: var(--white);
}

/* Row hover effect */
#adminEventsGrid .ag-row-hover {
    background: var(--bg-light) !important;
}

/* Pagination styling */
#adminEventsGrid .ag-paging-panel {
    border-top: 2px solid var(--bg-light);
    padding: 1rem;
}

/* Filter input styling */
#adminEventsGrid .ag-filter-input {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem;
}

#adminEventsGrid .ag-filter-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Row styling */
#adminEventsGrid .ag-row {
    border-bottom: 1px solid #eee;
}

/* Cell padding */
#adminEventsGrid .ag-cell {
    padding: 1rem;
    display: flex;
    align-items: center;
}

/* Page size selector */
#adminEventsGrid .ag-paging-page-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pagination buttons */
#adminEventsGrid .ag-paging-button {
    border: 1px solid #ddd;
    background: var(--white);
    color: var(--text-dark);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s;
    cursor: pointer;
}

#adminEventsGrid .ag-paging-button:hover:not(.ag-disabled) {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

#adminEventsGrid .ag-paging-button.ag-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.edit-btn,
.download-btn,
.delete-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.edit-btn {
    background: #3498db;
    color: var(--white);
}

.edit-btn:hover {
    background: #2980b9;
}

.download-btn {
    background: #27ae60;
    color: var(--white);
}

.download-btn:hover {
    background: #229954;
}

.delete-btn {
    background: #e74c3c;
    color: var(--white);
}

.delete-btn:hover {
    background: #c0392b;
}

/* Edit Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--bg-light);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.modal-close {
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.edit-event-image {
    flex: 0 0 400px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.edit-event-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.no-image-message {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

.edit-event-form {
    flex: 1;
    min-width: 0;
}

@media (max-width: 1024px) {
    .modal-body {
        flex-direction: column;
    }

    .edit-event-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--bg-light);
}

.save-btn {
    flex: 1;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.cancel-btn {
    flex: 1;
    padding: 1rem;
    background: var(--bg-light);
    color: var(--text-dark);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn:hover {
    background: #dfe4e8;
}

.submit-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.submit-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input:required:valid {
    border-color: #27ae60;
}

.form-group small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.submit-btn,
.reset-btn {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.reset-btn {
    background: var(--bg-light);
    color: var(--text-dark);
}

.reset-btn:hover {
    background: #dfe4e8;
}

.submit-message {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--bg-light);
}

.submit-message.success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.submit-message h3 {
    margin-bottom: 1rem;
    color: #155724;
}

.submit-message pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.85rem;
    margin: 1rem 0;
    border: 1px solid #ddd;
}

/* Classes Section */
.classes-section {
    padding-bottom: 5rem;
}

.section-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.school-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.school-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.school-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.school-info p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.school-info a {
    color: var(--accent-color);
    text-decoration: none;
}

.school-info a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

footer p {
    opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .filter-panel {
        width: 100%;
        right: -100%;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .date-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .date-header h2 {
        font-size: 1.25rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .controls {
        padding: 1rem;
    }

    .controls-header {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .search-box {
        flex: 1;
        min-width: 0;
    }

    .search-box input {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .view-toggle-icons {
        flex-shrink: 0;
        gap: 0.15rem;
        padding: 0.15rem;
    }

    .view-icon-btn {
        font-size: 1rem;
        padding: 0.4rem 0.5rem;
    }

    .filter-icon {
        width: 16px;
        height: 16px;
    }


    .dance-style-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .quick-filters {
        gap: 0.25rem;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .quick-filter-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
        white-space: nowrap;
        border-width: 1.5px;
    }

    .event-name {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .schools-grid {
        grid-template-columns: 1fr;
    }

    .bottom-nav-btn .nav-icon {
        font-size: 1.25rem;
    }

    .bottom-nav-btn .nav-label {
        font-size: 0.75rem;
    }

    #mapContainer {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 250px);
    }

    #map {
        height: 50vh;
        min-height: 400px;
    }

    #mapSidebar {
        max-height: 40vh;
        min-height: 300px;
    }

    .submit-form-container {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 1.5rem 0;
    }

    .event-card {
        border-radius: 8px;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        bottom: 20px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-color);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 8px;
    max-width: 80%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card {
    animation: fadeIn 0.5s ease-out;
}
