* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

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

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

h1 {
    font-size: 1.8rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

h1::before {
    content: '🎸';
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #e94560 0%, #c23a51 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Filters */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1a1a2e;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.filters input {
    flex: 1;
    min-width: 200px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input-wrapper input {
    width: 100%;
    padding-right: 36px;
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.clear-search-btn:hover {
    color: #e94560;
    background: rgba(233, 69, 96, 0.1);
}

.filters select {
    min-width: 140px;
}

.filters input:focus,
.filters select:focus {
    outline: none;
    border-color: #e94560;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid #333;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #e94560;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

thead {
    background: rgba(255, 255, 255, 0.05);
}

th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

th:hover {
    color: #e94560;
}

th[data-sort]::after {
    content: ' ↕';
    opacity: 0.3;
}

th.sort-asc::after {
    content: ' ↑';
    opacity: 1;
}

th.sort-desc::after {
    content: ' ↓';
    opacity: 1;
}

td {
    padding: 14px 16px;
    border-top: 1px solid #2a2a3e;
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.artist-cell {
    font-weight: 500;
    color: #fff;
}

.date-cell {
    color: #e94560;
    font-weight: 500;
}

.venue-cell {
    color: #4ecdc4;
}

.actions {
    display: flex;
    gap: 8px;
}

.actions button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.actions button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nearby-btn {
    color: #f59e0b;
}

.edit-btn {
    color: #4ecdc4;
}

.delete-btn {
    color: #e94560;
}

/* Status dropdown in table */
.status-select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: transparent;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.status-select:hover {
    border-color: #444;
    background: rgba(255, 255, 255, 0.05);
}

.status-select:focus {
    outline: none;
    border-color: #e94560;
}

.status-select.status-interested {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.status-select.status-committed {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.status-select.status-ticketed {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state.hidden {
    display: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a2e;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #333;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    font-size: 1.2rem;
    color: #fff;
}

.close-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: #e94560;
}

/* Form */
form {
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #888;
}

input[type="text"],
input[type="date"],
textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #16213e;
    color: #e0e0e0;
    font-size: 0.95rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #e94560;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Modal Views */
.modal-view {
    padding: 20px;
}

.search-section {
    margin-bottom: 16px;
}

.search-section .form-group {
    margin-bottom: 0;
}

.search-section input {
    font-size: 1.1rem;
    padding: 14px 16px;
}

.search-events-section {
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 16px;
}

.selected-artist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 8px;
    border-left: 3px solid #e94560;
}

.selected-artist-header span {
    font-weight: 600;
    color: #fff;
}

.btn-text {
    background: transparent;
    border: none;
    color: #e94560;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 8px;
}

.btn-text:hover {
    text-decoration: underline;
}

.search-events-section .events-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.search-events-section .events-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #333;
}

.search-events-section .events-select-all {
    justify-content: flex-start;
    margin-bottom: 0;
}

.search-events-section .events-select-all #searchSelectedCount {
    margin-left: 16px;
}

.manual-entry-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #666;
}

.manual-entry-divider::before,
.manual-entry-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #333;
}

.manual-entry-divider span {
    padding: 0 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-manual-entry {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px dashed #444;
    color: #888;
}

.btn-manual-entry:hover {
    border-color: #666;
    color: #ccc;
    background: rgba(255, 255, 255, 0.02);
}

#backToSearchBtn {
    margin-right: auto;
}

/* Header actions */
.header-actions {
    display: flex;
    gap: 10px;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
}

.view-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.view-btn:hover {
    color: #e0e0e0;
}

.view-btn.active {
    background: #e94560;
    color: white;
}

/* Calendar View */
.calendar-view {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
}

.calendar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.calendar-header h2 {
    color: #fff;
    font-size: 1.4rem;
    min-width: 200px;
    text-align: center;
}

.calendar-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.calendar-filters input[type="text"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #16213e;
    color: #e0e0e0;
    font-size: 0.9rem;
    width: 160px;
}

.calendar-filters input[type="text"]:focus {
    outline: none;
    border-color: #e94560;
}

.calendar-filters select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #16213e;
    color: #e0e0e0;
    font-size: 0.9rem;
    cursor: pointer;
}

.calendar-filters select:focus {
    outline: none;
    border-color: #e94560;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1px;
}

.calendar-day-header {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #333;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day {
    background: #1a1a2e;
    min-height: 100px;
    padding: 8px;
    position: relative;
}

.calendar-day.other-month {
    background: rgba(26, 26, 46, 0.5);
}

.calendar-day.other-month .day-number {
    color: #444;
}

.calendar-day.today {
    background: rgba(233, 69, 96, 0.1);
}

.calendar-day.today .day-number {
    background: #e94560;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-number {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 6px;
    font-weight: 500;
}

.calendar-concert {
    background: linear-gradient(135deg, #e94560 0%, #c23a51 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.1s, box-shadow 0.1s;
}

.calendar-concert:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.4);
}

.calendar-concert.past {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.calendar-concert.status-interested {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.calendar-concert.status-interested:hover {
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.calendar-concert.status-committed {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.calendar-concert.status-committed:hover {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.calendar-concert.status-ticketed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.calendar-concert.status-ticketed:hover {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.more-concerts {
    font-size: 0.7rem;
    color: #888;
    text-align: center;
    cursor: pointer;
}

.more-concerts:hover {
    color: #e94560;
}

/* Map View */
.map-view {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
}

.map-controls {
    margin-bottom: 16px;
}

.date-range-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-range-filter .map-stats {
    margin-left: auto;
    white-space: nowrap;
}

.date-range-filter label {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.date-range-filter input[type="text"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #16213e;
    color: #e0e0e0;
    font-size: 0.9rem;
    width: 160px;
}

.date-range-filter input[type="date"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #16213e;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.date-range-filter input[type="text"]:focus,
.date-range-filter input[type="date"]:focus {
    outline: none;
    border-color: #e94560;
}

.date-range-filter select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #16213e;
    color: #e0e0e0;
    font-size: 0.9rem;
    cursor: pointer;
}

.date-range-filter select:focus {
    outline: none;
    border-color: #e94560;
}

.map-stats {
    color: #888;
    font-size: 0.9rem;
}

.map-stats span {
    color: #e94560;
    font-weight: 600;
}

#concertMap {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: #16213e;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(26, 26, 46, 0.95);
    padding: 16px 24px;
    border-radius: 8px;
    color: #e0e0e0;
    z-index: 1000;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top-color: #e94560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    background: #1a1a2e;
    color: #e0e0e0;
    border-radius: 8px;
}

.leaflet-popup-tip {
    background: #1a1a2e;
}

.leaflet-popup-content {
    margin: 12px;
}

.concert-popup {
    min-width: 180px;
}

.concert-popup h4 {
    color: #e94560;
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.concert-popup p {
    margin: 4px 0;
    font-size: 0.85rem;
    color: #aaa;
}

.concert-popup .venue {
    color: #4ecdc4;
}

.concert-popup .date {
    color: #888;
}

.popup-edit-btn {
    margin-top: 10px;
    padding: 6px 12px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    width: 100%;
}

.popup-edit-btn:hover {
    background: #c23a51;
}

/* Cluster markers */
.marker-cluster {
    background: rgba(233, 69, 96, 0.4);
    border-radius: 50%;
}

.marker-cluster div {
    background: #e94560;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Autocomplete Styles */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #16213e;
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: rgba(233, 69, 96, 0.2);
}

.autocomplete-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background: #333;
}

.autocomplete-item-info {
    flex: 1;
    min-width: 0;
}

.autocomplete-item-name {
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-item-genre {
    font-size: 0.8rem;
    color: #888;
}

.autocomplete-loading {
    padding: 12px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.autocomplete-empty {
    padding: 12px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Browse Events Button */
.browse-events-btn {
    margin-top: 8px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #4ecdc4;
    color: #4ecdc4;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.browse-events-btn:hover {
    background: #4ecdc4;
    color: #1a1a2e;
}

/* Events Modal */
.events-modal-content {
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.events-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.events-loading,
.events-empty {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.events-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #333;
    transition: background 0.15s;
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.event-item input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e94560;
}

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

.event-artist {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.event-date {
    color: #e94560;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.event-venue {
    color: #4ecdc4;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.event-location {
    color: #888;
    font-size: 0.85rem;
}

.event-price {
    color: #666;
    font-size: 0.8rem;
    margin-top: 4px;
}

.events-actions {
    padding: 16px 20px;
    border-top: 1px solid #333;
    background: rgba(0, 0, 0, 0.2);
}

.events-select-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.events-select-all label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #e0e0e0;
    margin: 0;
}

.events-select-all input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e94560;
}

#selectedCount,
#nearbySelectedCount {
    color: #888;
    font-size: 0.9rem;
}

/* Nearby Shows Modal */
.nearby-modal-content {
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.nearby-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nearby-context {
    padding: 16px 20px;
    background: rgba(245, 158, 11, 0.1);
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.nearby-context strong {
    color: #f59e0b;
}

.nearby-context .nearby-details {
    margin-top: 8px;
    color: #888;
    font-size: 0.85rem;
}

.nearby-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    background: rgba(0, 0, 0, 0.2);
}

.nearby-filter label {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.nearby-filter select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #16213e;
    color: #e0e0e0;
    font-size: 0.9rem;
    cursor: pointer;
}

.nearby-filter select:focus {
    outline: none;
    border-color: #e94560;
}

.date-range-input {
    width: 50px;
    padding: 8px 8px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #16213e;
    color: #e0e0e0;
    font-size: 0.9rem;
    text-align: center;
}

.date-range-input:focus {
    outline: none;
    border-color: #e94560;
}

.date-range-input::-webkit-inner-spin-button,
.date-range-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.date-range-input {
    -moz-appearance: textfield;
}

.nearby-filter span {
    color: #888;
    font-size: 0.9rem;
}

.nearby-body .events-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nearby-body .events-select-all {
    justify-content: flex-start;
    margin-bottom: 0;
}

/* Import Modal Styles */
.import-body {
    padding: 20px;
}

.import-instructions {
    color: #888;
    text-align: center;
    padding: 20px;
}

.column-mapping h3 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1rem;
}

.mapping-hint {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.mapping-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mapping-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mapping-row label {
    width: 100px;
    margin-bottom: 0;
    color: #e0e0e0;
}

.map-select {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #16213e;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.map-select:focus {
    outline: none;
    border-color: #e94560;
}

.import-summary {
    margin-top: 20px;
    padding: 12px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 8px;
    text-align: center;
    color: #e94560;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 10px 8px;
    }

    .filters {
        flex-direction: column;
    }

    .filters input,
    .filters select {
        width: 100%;
    }
}

/* Auth Modal */
.auth-modal-content {
    max-width: 400px;
}

.auth-body {
    padding: 24px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-error {
    color: #e94560;
    font-size: 0.9rem;
    margin-bottom: 16px;
    min-height: 1.2em;
}

.auth-message {
    color: #888;
    margin-bottom: 16px;
    text-align: center;
}

.btn-full {
    width: 100%;
    padding: 12px;
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    color: #888;
}

.auth-switch .btn-text {
    margin-left: 4px;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #333;
}

#userEmail {
    color: #888;
    font-size: 0.9rem;
}

.btn-text {
    background: none;
    border: none;
    color: #e94560;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px 60px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.loading-content .loading-spinner {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

.loading-content span {
    color: #e0e0e0;
    font-size: 1.1rem;
}

/* Venue Modal */
.venue-modal-content {
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.venue-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.venue-actions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #333;
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.venue-actions-footer .events-select-all {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

/* Clickable venue link in table */
.venue-link {
    color: #e94560;
    cursor: pointer;
    text-decoration: none;
}

.venue-link:hover {
    text-decoration: underline;
}

/* Clickable artist link in table */
.artist-link {
    color: #4a9eff;
    cursor: pointer;
    text-decoration: none;
}

.artist-link:hover {
    text-decoration: underline;
}

/* Setlist Analytics Modal */
.setlist-modal-content {
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.setlist-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 20px;
}

.setlist-summary {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #333;
}

.setlist-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setlist-song {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setlist-rank {
    width: 28px;
    font-size: 0.85rem;
    color: #888;
    text-align: right;
    flex-shrink: 0;
}

.setlist-song-info {
    flex: 1;
    min-width: 0;
}

.setlist-song-name {
    font-size: 0.95rem;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.setlist-bar-container {
    width: 120px;
    height: 20px;
    background: #1a1a2e;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.setlist-bar {
    height: 100%;
    background: linear-gradient(90deg, #e94560 0%, #4a9eff 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.setlist-count {
    width: 70px;
    font-size: 0.85rem;
    color: #888;
    text-align: right;
    flex-shrink: 0;
}

/* Nearby filter responsive */
.nearby-filter {
    flex-wrap: wrap;
}
