/* 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;
  text-shadow: 0 2px 8px rgba(0,0,0,0.07);
} /* <-- This bracket was missing */

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);
}

.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: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !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;
  }
  .modal-content {
    width: 98vw !important;
    max-width: 100vw !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    margin: 2vh auto 0 auto !important;
    border-radius: 10px !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;
  }
}

/* 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-title {
  font-size: 1.5em;
  color: #2a7ae2;
  font-weight: 600;
}

.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;
}
.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: #e53935 !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;
}

@media (max-width: 600px) {
  #calendar-view {
    display: none !important;
  }
  #event-list {
    display: block !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: 400px;
}
.event-list-item {
  border-bottom: 1px solid #e3e3e3;
  padding: 0.7em 0;
  font-size: 1.1em;
}
.event-list-item:last-child {
  border-bottom: none;
}

.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;
}