/* General Styles */
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #f7f9fb;
  color: #222;
  margin: 0;
  padding: 0 0 4em 0; /* space for footer */
}

h1, h2, h3 {
  color: #2a7ae2;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

form, .card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 2em;
  margin: 2em auto;
  max-width: 400px;
}

input, button {
  font-size: 1em;
  padding: 0.7em;
  margin: 0.5em 0;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

button, .auth-btn, .logout-btn {
  background: #2a7ae2;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover, .auth-btn:hover, .logout-btn:hover {
  background: #155a96;
}

a {
  color: #2a7ae2;
  text-decoration: none;
  margin: 0 0.5em;
}
a:hover {
  text-decoration: underline;
}

.bands-list, .profile-info {
  
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 1.5em;
  margin: 2em auto;
  max-width: 600px;
}

.header {
  background: #2a7ae2;
  color: #fff;
  padding: 1em 0.5em;
  text-align: center;
  margin: 0 0 2em 0;      /* Remove auto margin for full width */
  border-radius: 0;        /* Remove border radius for edge-to-edge */
  width: 100vw;            /* Full viewport width */
  max-width: 100vw;        /* Ensure no max-width restriction */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center; /* Center the links/buttons */
  gap: 2em;                /* Space between links/buttons */
}

.header a {
  color: #fff;
  margin: 0 1em;
  font-weight: bold;
  text-decoration: none;
}

.header a:hover {
  text-decoration: underline;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f7f9fb;
  text-align: center;
  padding: 1em 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  z-index: 100;
}

.logout-btn {
  padding: 0.45em 0.6em;
  font-size: 0.9em;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Style for main screen titles */
.main-header, h1, .fc-toolbar-title {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #222;
  margin-bottom: 0.5em;
  align-items: center !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

h2, .section-title {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 1.4em;
  font-weight: 600;
  color: #2a7ae2;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.auth-btn {
  display: block;
  width: 100%;
  padding: 0.7em 0;
  font-size: 1em;
  border-radius: 4px;
  margin-top: 1em;
  margin-bottom: 0.5em;
  box-sizing: border-box;
}

.register-prompt {
  text-align: center;
  margin-top: 2em;
  color: #444;
  font-size: 1.1em;
}

.inline-radio {
  display: inline-flex;
  align-items: center;
  margin-left: 1em;
}
.inline-radio label {
  margin-right: 2em;
  margin-bottom: 0;
  font-weight: normal;
  display: flex;
  align-items: center;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1em;
  margin: 2em 0 1em 0;
}
.role-tile {
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 1em;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.role-tile.selected {
  border-color: #1976d2;
  background: #e3f2fd;
  font-weight: bold;
}

.thank-you {
  text-align: center;
  margin: 3em 0;
  font-size: 1.3em;
}

.role-category h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Calendar Controls (if still used) */
.calendar-controls {
  display: flex;
  justify-content: center;
  gap: 0.7em;
  margin: 1.5em 0 1em 0;
  flex-wrap: wrap;
}
.calendar-controls button {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.6em 1.2em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(25, 118, 210, 0.07);
}
.calendar-controls button:hover {
  background: #1565c0;
}

/* Calendar Container */
#calendar-view {
  max-width: 1200px;      /* Increase this value as needed */
  width: 98vw;            /* Allow it to use almost the full viewport width */
  margin: 30px auto 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
  padding: 30px 30px 20px 30px; /* More padding for breathing room */
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  align-items: flex-start;
  overflow-y: auto;
  padding: 2em 0;
}

.modal-content {
  position: relative;
  background: #fff;
  padding: 2em;
  border-radius: 8px;
  min-width: 300px;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.15);
}

/* Modern Modal Styles */
.modern-modal {
  max-width: 500px;
  width: 90vw;
  margin: 2em auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #2a7ae2 0%, #1565c0 100%);
  color: white;
  padding: 1.5em 2em;
  margin: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5em;
  font-weight: 600;
  color: white;
}

.modal-subtitle {
  margin: 0.5em 0 0 0;
  font-size: 0.9em;
  opacity: 0.9;
  color: rgba(255,255,255,0.9);
}

.progressive-form {
  padding: 2em;
}

.form-section {
  margin-bottom: 2em;
}

.section-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #2a7ae2;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #e8f2ff;
}

.form-row {
  margin-bottom: 1.5em;
}

.form-row-group {
  display: flex;
  gap: 1em;
  margin-bottom: 1.5em;
}

.half-width {
  flex: 1;
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5em;
  font-size: 0.95em;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.75em;
  border: 2px solid #e0e6ed;
  border-radius: 6px;
  font-size: 1em;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: #2a7ae2;
  box-shadow: 0 0 0 3px rgba(42, 122, 226, 0.1);
}

/* Disabled field styling */
.form-input:disabled, .form-select:disabled {
  background-color: #f5f5f5;
  color: #666;
  cursor: not-allowed;
  border-color: #ddd;
}

.form-input:disabled::placeholder {
  color: #999;
}

/* Edit mode indicators */
.edit-mode .form-section {
  border-left: 3px solid #2a7ae2;
  padding-left: 1em;
}

.edit-mode .section-title {
  color: #2a7ae2;
  position: relative;
}

.edit-mode .section-title::before {
  content: "✏️";
  margin-right: 0.5em;
}

/* Edit mode title styling */
.edit-mode #modal-main-title {
  color: #1a5490 !important;
  background: #e8f2ff;
  padding: 0.5em 1em;
  border-radius: 6px;
  margin-bottom: 1em;
}

/* Edit mode instructions */
.edit-instructions {
  background: #e8f2ff;
  border: 1px solid #2a7ae2;
  border-radius: 6px;
  padding: 1em;
  margin-bottom: 1em;
  color: #1a5490;
  font-size: 0.9em;
}

.edit-instructions strong {
  color: #2a7ae2;
}

.selected-value {
  display: inline-block;
  background: #e8f2ff;
  color: #2a7ae2;
  padding: 0.75em;
  border-radius: 6px;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  cursor: pointer;
  padding: 0.5em 0;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  transform: scale(1.2);
}

.checkbox-text {
  flex: 1;
  color: #333;
  line-height: 1.4;
}

.other-bands-preview {
  margin-top: 0.75em;
  padding: 0.75em;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.9em;
  color: #666;
  border-left: 3px solid #2a7ae2;
}

.status-message {
  padding: 1em;
  border-radius: 6px;
  margin: 1em 0;
  font-weight: 500;
  display: none;
}

.status-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.modal-buttons {
  display: flex;
  gap: 1em;
  margin-top: 2em;
  padding-top: 2em;
  border-top: 1px solid #e8f2ff;
}

.primary-btn, .danger-btn {
  flex: 1;
  padding: 0.875em 1.5em;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
}

.primary-btn {
  background: #2a7ae2;
  color: white;
}

.primary-btn:hover {
  background: #1565c0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 122, 226, 0.3);
}

.danger-btn {
  background: #dc3545;
  color: white;
}

.danger-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Grey button styling for secondary actions */
.secondary-btn {
  background: #6c757d !important;
  color: white !important;
  flex: 1;
  padding: 0.875em 1.5em;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
}

.secondary-btn:hover {
  background: #5a6268 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8em;
  line-height: 1;
  cursor: pointer;
  color: #333;
  z-index: 1001; /* increased */
  width: 2em;
  height: 2em;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.modal-close-btn:hover {
  color: #c00;
}

/* Modal header styles */
.modal-header-band {
  font-weight: bold;
  font-size: 1.3em;
  margin-bottom: 0.2em;
}
.modal-header-type {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.2em;
}
.modal-header-status {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.2em;
  color: #333;
}
.calendar-cancelled {
  color: #c00 !important;
  font-weight: bold;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.modal-buttons button {
  width: 100%;
  font-size: 1.1em;
}
#cancel-event-btn {
  background: #c00 !important;
  color: #fff !important;
  font-weight: bold !important;
  border: none;
}

/* Band card styles */
.band-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin: 1.5em 0;
  padding: 1.5em 2em;
  max-width: 600px;
}
.band-name {
  font-weight: bold;
  font-size: 1.4em;
  margin-bottom: 0.2em;
  display: inline-block;
}

/* Talent option styles */
.talent-option-label {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.5em;
  font-size: 1em;
  cursor: pointer;
}
.talent-option-label input[type="checkbox"] {
  margin: 0;
  accent-color: #2a7ae2;
  width: 1.1em;
  height: 1.1em;
}
.talent-category {
  margin-top: 1.2em;
  margin-bottom: 0.4em;
  font-weight: bold;
  color: #1976d2;
  font-size: 1.08em;
  border-bottom: 1px solid #e3e3e3;
  padding-bottom: 2px;
}

/* --- MOBILE STYLES --- */
@media (max-width: 600px) {
  body {
    padding: 0 !important;
    margin: 0 !important;
    background: #f7f9fb;
  }
  .main-header {
    font-size: 1.5em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
  }
  form, .card {
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 1em 0.5em 2em 0.5em;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
  }
  .modal {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    /* REMOVE overflow-y: auto !important; */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: none;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  .modal-content {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 1em !important;
    box-sizing: border-box;
    background: #fff;
    position: relative;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
  }
  #book-event-form {
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
    padding-bottom: 1em;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .modal-buttons button {
    width: 100%;
    min-width: 0;
    font-size: 1em;
    box-sizing: border-box;
  }
  #calendar-view {
    max-width: 100vw;
    padding: 5px;
  }
  #exit-events-btn {
    display: none !important;
  }

  /* Modern Modal Mobile Styles */
  .modern-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
  }

  .modal-header {
    padding: 0.75em 1em !important;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .modal-header h2 {
    font-size: 1.2em !important;
    margin: 0 !important;
  }

  .modal-subtitle {
    font-size: 0.85em !important;
    margin: 0.25em 0 0 0 !important;
  }

  .progressive-form {
    padding: 0.75em !important;
    padding-bottom: 1em !important;
  }

  .form-section {
    margin-bottom: 1em !important;
  }

  .section-title {
    font-size: 1em !important;
    margin-bottom: 0.75em !important;
    padding-bottom: 0.25em !important;
  }

  .form-row {
    margin-bottom: 1em !important;
  }

  .form-row-group {
    flex-direction: column !important;
    gap: 0.75em !important;
    margin-bottom: 1em !important;
  }

  .half-width {
    width: 100% !important;
  }

  .form-label {
    font-size: 0.9em !important;
    margin-bottom: 0.4em !important;
  }

  .form-input, .form-select {
    padding: 0.75em !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
    border-width: 1px !important;
  }

  .selected-value {
    padding: 0.75em !important;
    font-size: 0.9em !important;
  }

  .modal-buttons {
    flex-direction: column !important;
    position: sticky;
    bottom: 0;
    background: white;
    padding: 0.75em !important;
    margin: 0 -0.75em -1em -0.75em !important;
    border-top: 1px solid #e8f2ff !important;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    gap: 0.75em !important;
  }

  .primary-btn, .danger-btn, .secondary-btn {
    padding: 0.875em 1em !important;
    font-size: 1.1em !important;
  }

  .checkbox-label {
    padding: 1em 0 !important;
  }

  .checkbox-text {
    font-size: 1em !important;
    line-height: 1.5 !important;
  }

  /* Mobile Condensed Event View */
  .condensed-event-view {
    padding: 0.75em 0 !important;
  }

  .event-details-grid {
    gap: 0.75em !important;
  }

  .event-detail-row {
    padding: 0.6em !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .detail-icon {
    font-size: 1em !important;
    margin-right: 0.5em !important;
    width: 1.2em !important;
  }

  .detail-label {
    font-size: 0.85em !important;
    min-width: 70px !important;
    margin-right: 0.5em !important;
  }

  .detail-value {
    font-size: 0.9em !important;
    font-weight: 500 !important;
  }

  /* Mobile close button */
  .modal-close-btn {
    top: 0.5em !important;
    right: 0.5em !important;
    font-size: 1.5em !important;
    width: 1.5em !important;
    height: 1.5em !important;
    color: rgba(255,255,255,0.9) !important;
  }

  /* Mobile checkbox styling */
  .checkbox-label {
    padding: 0.75em 0 !important;
    gap: 0.5em !important;
  }

  .checkbox-text {
    font-size: 0.9em !important;
    line-height: 1.4 !important;
  }

  /* Mobile other bands preview */
  .other-bands-preview {
    margin-top: 0.5em !important;
    padding: 0.5em !important;
    font-size: 0.85em !important;
  }
}

/* Main container styles */
main {
  width: 100%;
  overflow: visible;
  min-height: auto;
}

/* Basic FullCalendar custom styling */
.fc {
  --fc-button-bg-color: #2a7ae2;
  --fc-button-border-color: #2a7ae2;
  --fc-button-text-color: #fff;
  --fc-button-hover-bg-color: #1565c0;
  --fc-button-hover-border-color: #1565c0;
  --fc-button-active-bg-color: #1976d2;
  --fc-button-active-border-color: #1976d2;
}
.fc-toolbar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  /* Ensure buttons have proper pointer events */
  pointer-events: auto !important;
}
.fc-toolbar-title {
  font-size: 1.5em;
  color: #2a7ae2;
  font-weight: 600;
  text-align: center !important;
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  /* Removed transform to fix navigation button issues */
}

.fc-button, .fc-button-primary {
  background: #2a7ae2;
  border: none;
  color: #fff;
  border-radius: 4px;
  margin: 0 2px;
  padding: 0.5em 1em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  /* Ensure buttons are always clickable */
  pointer-events: auto !important;
  position: relative;
  z-index: 20;
}
.fc-button:hover, .fc-button-primary:hover {
  background: #1565c0;
}

.fc-daygrid-day-number {
  color: #2a7ae2;
  font-weight: 600;
}

.fc-day-today {
  background: #e3f2fd !important;
}

.fc-event, .fc-event-dot {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.95em;
}

.fc-event.calendar-cancelled {
  background: #333 !important;
  color: #ccc !important;
  text-decoration: line-through;
}

.fc-daygrid-event-dot {
  background: #1976d2;
}

.fc-scrollgrid {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e3e3e3;
}

/* Make FullCalendar toolbar buttons and title appear on the same row */
.fc-toolbar.fc-header-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.fc-toolbar-chunk {
  display: flex;
  align-items: center;
  gap: 0.5em;
  /* Ensure buttons are clickable */
  pointer-events: auto;
  z-index: 10;
}

@media (max-width: 600px) {
  /* Ensure body can scroll properly on mobile */
  body {
    height: auto !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    /* Override flex layout that might interfere with scrolling */
    display: block !important;
    flex-direction: initial !important;
    align-items: initial !important;
    justify-content: initial !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f7f9fb !important;
  }
  
  /* Hide calendar, show event list */
  #calendar-view {
    display: none !important;
  }
  #event-list {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0.5em !important;
    box-sizing: border-box !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: calc(100vh - 3em) !important; /* Account for header */
    overflow: visible !important;
  }
  
  /* Event list content should be scrollable */
  #event-list-content {
    width: 100% !important;
    padding-bottom: 4em !important; /* More space for pagination and safe area */
    overflow: visible !important;
    /* Ensure we can scroll to the very bottom */
    margin-bottom: 2em !important;
  }
  
  /* Fix event filters for mobile */
  .event-filters {
    padding: 0.5em !important;
    margin: 0.5em 0 !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  }
  
  .event-filters > div > div {
    flex-direction: column !important;
    gap: 0.75em !important;
    align-items: stretch !important;
  }
  
  .event-filters > div > div > div {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .event-filters label {
    margin-bottom: 0.25em !important;
    font-size: 0.9em !important;
  }
  
  .event-filters select {
    width: 100% !important;
    min-width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.6em !important;
    font-size: 1em !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background-color: white !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.7em center !important;
    background-size: 0.65em auto !important;
    padding-right: 2em !important;
  }
  
  .event-filters button {
    width: 100% !important;
    margin-top: 0.5em !important;
    padding: 0.7em !important;
    font-size: 1em !important;
    border: none !important;
    border-radius: 4px !important;
    background: #6c757d !important;
    color: white !important;
    cursor: pointer !important;
  }
  
  .event-filters button:hover {
    background-color: #5a6268 !important;
  }
  
  /* Mobile event list items */
  .event-list-item {
    background: #fff !important;
    margin-bottom: 0.5em !important;
    padding: 0.75em !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    border: none !important;
    border-left: 4px solid transparent !important;
  }
  
  .event-list-item:hover {
    background-color: #f8f9fa !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0.75em !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
  }
  
  /* Pagination controls for mobile */
  .pagination-btn {
    padding: 0.8em 1.2em !important;
    margin: 0.3em 0.2em !important;
    font-size: 0.9em !important;
    border: 1px solid #ddd !important;
    background: white !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    min-width: 44px !important; /* Minimum touch target size */
    text-align: center !important;
    white-space: nowrap !important;
  }
  
  .pagination-btn:hover:not(:disabled) {
    background-color: #f0f0f0 !important;
    border-color: #bbb !important;
  }
  
  .pagination-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
  }
  
  /* Page selector dropdown */
  .page-selector {
    padding: 0.7em !important;
    font-size: 0.9em !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: white !important;
    cursor: pointer !important;
    min-width: 120px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.7em center !important;
    background-size: 0.65em auto !important;
    padding-right: 2em !important;
  }
  
  .page-selector:hover {
    border-color: #bbb !important;
    background-color: #f9f9f9 !important;
  }
  
  .page-selector:focus {
    outline: none !important;
    border-color: #2a7ae2 !important;
    box-shadow: 0 0 0 2px rgba(42, 122, 226, 0.2) !important;
  }
}

/* Filter styling enhancements */
.event-filters input:focus,
.event-filters select:focus {
  outline: none;
  border-color: #2a7ae2 !important;
  box-shadow: 0 0 0 2px rgba(42, 122, 226, 0.2) !important;
}

.event-filters input:hover,
.event-filters select:hover {
  border-color: #999 !important;
}

.event-filters button:hover {
  background-color: #5a6268 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.event-list {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.07);
  padding: 1em;
  margin: 1em auto;
  max-width: 800px;
  width: 90%;
  /* Ensure proper scrolling on all devices */
  overflow: visible;
  min-height: auto;
}

.event-list-item {
  border-bottom: 1px solid #e3e3e3;
  padding: 0.7em 0;
  font-size: 1.1em;
  transition: background-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.event-list-item:hover {
  background-color: #f8f9fa;
  padding-left: 0.5em;
  margin-left: -0.5em;
  margin-right: -0.5em;
  border-radius: 4px;
}

.event-list-item:last-child {
  border-bottom: none;
}

.event-filters {
  margin-bottom: 1em;
}

.event-filters select {
  width: auto;
  min-width: 150px;
}

.event-filters button:hover {
  background-color: #5a6268 !important;
}

.version-number {
  font-size: 0.9em;
  color: #888;
  text-align: center;
  margin-top: 0.5em;
  margin-bottom: 0;
}

body {
  background-image: url('images/concert-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}


@font-face {
  font-family: 'Neonsign';
  src: url('fonts/Neonsign-20337755/Neonsign Regular.otf') format('opentype'),
       url('fonts/Neonsign-20337755/MyCustomFont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #f7f9fb url('images/concert-background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #222;
  margin: 0;
  padding: 0 0 4em 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* change to center for full vertical centering */
}

h1.main-header, .main-header {
  font-family: 'Neonsign', 'Inter', Arial, sans-serif;
  font-size: 8em;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin-top: 0.1em;     /* Reduce top margin */
  margin-bottom: 0.25em;
  text-shadow: 0 4px 24px #2a7ae2, 0 2px 8px #000;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .main-header, h1.main-header {
    font-size: 2.2em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
  }
}

.sub-header {
  font-size: 2em !important;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 2px 8px #2a7ae2, 0 1px 4px #000;
  margin-bottom: 0.25;
}

.profile-title {
  font-size: 4em !important;
  margin-top: 0.7em;
  margin-bottom: 0.3em;
}

.fc-event-title, .fc-event-main {
  white-space: normal !important;
  font-size: 1em;
  line-height: 1.2;
}

/* Condensed Event View Styles */
.condensed-event-view {
  padding: 1.5em 0;
}

.event-details-grid {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.event-detail-row {
  display: flex;
  align-items: center;
  padding: 0.75em;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #2a7ae2;
}

.detail-icon {
  font-size: 1.2em;
  margin-right: 0.75em;
  width: 1.5em;
  text-align: center;
}

.detail-label {
  font-weight: 600;
  color: #333;
  margin-right: 0.75em;
  min-width: 80px;
}

.detail-value {
  color: #555;
  flex: 1;
  font-weight: 500;
}

/* Status-specific styles */
.status-cancelled {
  background: #f8d7da !important;
  border-left-color: #dc3545 !important;
}

.status-cancelled .detail-value {
  color: #721c24;
  font-weight: 600;
}

.status-settled {
  background: #d4edda !important;
  border-left-color: #28a745 !important;
}

.status-settled .detail-value {
  color: #155724;
  font-weight: 600;
}

.status-booked {
  background: #cce7ff !important;
  border-left-color: #007bff !important;
}

.status-booked .detail-value {
  color: #004085;
  font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .event-detail-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 1em;
  }
  
  .detail-icon {
    margin-bottom: 0.5em;
  }
  
  .detail-label {
    margin-bottom: 0.25em;
    min-width: auto;
  }
  
  .detail-value {
    font-size: 1.1em;
  }
}

/* Edit field indicators */
.edit-indicator {
  font-size: 0.8em;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.form-row:hover .edit-indicator {
  opacity: 1;
}

/* Improved disabled field styling */
.form-row[title]:not([title=""]) {
  position: relative;
}

.form-row[title]:not([title=""]):hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #333;
  color: white;
  padding: 0.5em;
  border-radius: 4px;
  font-size: 0.8em;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Remove button styling */
.remove-btn {
  background-color: #333 !important;
  color: white !important;
  border: none !important;
  padding: 0.75em 1.5em !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  transition: background-color 0.2s ease !important;
}

.remove-btn:hover {
  background-color: #555 !important;
}

.remove-btn:active {
  background-color: #222 !important;
}

/* Cancelled Event Modal Styling */
.modal-header.cancelled-event {
  background: linear-gradient(135deg, #333 0%, #222 100%) !important;
  color: #ccc !important;
}

.modal-header.cancelled-event h2 {
  color: #ccc !important;
}

.modal-header.cancelled-event .modal-subtitle {
  color: rgba(204, 204, 204, 0.9) !important;
}

/* Event Type Color Coding */
.fc-event.event-type-gig {
  background: #1976d2 !important;
  color: #fff !important;
}

.fc-event.event-type-practice {
  background: #2e7d32 !important;
  color: #fff !important;
}

.fc-event.event-type-recording {
  background: #f57c00 !important;
  color: #fff !important;
}

.fc-event.event-type-meeting {
  background: #7b1fa2 !important;
  color: #fff !important;
}

.fc-event.event-type-unavailable {
  background: #d32f2f !important;
  color: #fff !important;
}

.fc-event.event-type-other {
  background: #616161 !important;
  color: #fff !important;
}

/* Cancelled events override all other colors */
.fc-event.calendar-cancelled {
  background: #333 !important;
  color: #ccc !important;
  text-decoration: line-through;
}

/* Modal header colors for different event types */
.modal-header.event-type-gig {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%) !important;
}

.modal-header.event-type-practice {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%) !important;
}

.modal-header.event-type-recording {
  background: linear-gradient(135deg, #f57c00 0%, #e65100 100%) !important;
}

.modal-header.event-type-meeting {
  background: linear-gradient(135deg, #7b1fa2 0%, #4a148c 100%) !important;
}

.modal-header.event-type-unavailable {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%) !important;
}

.modal-header.event-type-other {
  background: linear-gradient(135deg, #616161 0%, #424242 100%) !important;
}

/* Cancelled events override all modal header colors */
.modal-header.cancelled-event {
  background: linear-gradient(135deg, #333 0%, #222 100%) !important;
  color: #ccc !important;
}

.modal-header.cancelled-event h2 {
  color: #ccc !important;
}

.modal-header.cancelled-event .modal-subtitle {
  color: rgba(204, 204, 204, 0.9) !important;
}

/* Multi-select dropdown styling */
.multi-select-button:hover {
  border-color: #999 !important;
}

.multi-select-button:focus {
  outline: none;
  border-color: #2a7ae2 !important;
  box-shadow: 0 0 0 2px rgba(42, 122, 226, 0.2) !important;
}

.multi-select-dropdown {
  border: 1px solid #ccc;
  border-radius: 6px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

.multi-select-dropdown label {
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.multi-select-dropdown label:hover {
  background-color: #f8f9fa;
}

.multi-select-dropdown input[type="checkbox"] {
  margin-right: 0.5em;
  cursor: pointer;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.multi-select-dropdown label span {
  flex: 1;
  line-height: 1.2;
}

/* Selected item styling */
.multi-select-dropdown label.selected {
  background-color: #e3f2fd;
  color: #1976d2;
  font-weight: 500;
}

/* Mobile optimizations for multi-select */
@media (max-width: 600px) {
  .multi-select-dropdown {
    max-height: 200px !important;
    font-size: 16px !important; /* Prevent zoom on iOS */
  }
  
  .multi-select-dropdown label {
    padding: 0 1em !important; /* Remove top/bottom padding */
    font-size: 16px !important;
    border-bottom: 1px solid #eee;
    min-height: 48px !important; /* Minimum touch target size */
    height: 48px !important; /* Fixed height for consistency */
    display: flex !important;
    justify-content: flex-start !important; /* Left align content */
    align-items: center !important; /* Vertically center content */
    box-sizing: border-box !important;
  }
  
  .multi-select-dropdown label:last-child {
    border-bottom: none;
  }
  
  /* Hide checkboxes on mobile - use tap to select */
  .multi-select-dropdown input[type="checkbox"] {
    display: none !important;
  }
  
  .multi-select-dropdown label span {
    text-align: left !important; /* Left align text */
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 !important;
  }
  
  /* Mobile selected state */
  .multi-select-dropdown label.selected {
    background-color: #2196f3 !important;
    color: white !important;
    font-weight: 600 !important;
  }
  
  .multi-select-button {
    font-size: 16px !important; /* Prevent zoom on iOS */
    padding: 0.8em !important;
  }
}