.band-calendar {
  display: flex;
  flex-direction: column;
  min-width: 600px;       /* adjust to fit all days nicely */
  width: 100%;
  max-width: none;
  margin: 0 auto;
}
.band-calendar-wrapper {
  width: 100%;
  overflow-x: auto;       /* allow horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  margin: 0 auto;         /* center on large screens */
}
.week-wrapper { margin-bottom: 20px; }
.week-number { font-weight: bold; text-align: center; margin-bottom: 10px; width: 100%; }
.week-block {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
}
.slot {font-size: clamp(0.85rem, 1vw, 0.95rem);}
.day-column { flex: 1; border: 1px solid #ddd; border-radius: 6px; background: #fafafa; }
.day-header { text-align: center; font-weight: bold; padding: 4px; border-bottom: 1px solid #ddd; }
.slot {
    min-height: 80px; /* or any value that fits your content */
    display: flex;
    flex-direction: column;
    justify-content: center; /* center content vertically */
    align-items: center;
    position: relative;
    text-align: center;
    border: 1px solid #ccc;
    margin: 3px;
    border-radius: 6px;
    padding: 4px 2px;
    box-sizing: border-box;
    line-height: 1.2;  /* reduce tall spacing */
    gap: 2px;          /* minimal spacing between elements */
}
.slot-available { background: #d4f8d4;}
.slot-confirmed { background: #ff9999; }
.slot-pending { background: #facc91; }
.slot-past { background: #ddd; cursor: not-allowed; }
.underline { text-decoration: underline; }
.week-separator { border-top: 2px solid #333; margin: 20px 0; }
.cancel-btn { background: #444; color: #fff; border: none; border-radius: 4px; padding: 2px 6px; margin-top: 4px; cursor: pointer; }
.book-btn { background: #444; color: #fff; border: none; border-radius: 4px; padding: 2px 6px; margin-top: 4px; cursor: pointer; }

.book-btn,
.cancel-btn {
  margin-top: 2px;
  display: inline-block;
  padding: 0.2px 0.4px;   /* scales with font size */
  font-size: 100%;      /* scales with root font size */
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;    /* prevents text wrap */
  max-width: 90%;
  max-height: 80%
  box-sizing: border-box;
}


/* band-name wrapper — acts as a flex container so .band-text can use ellipsis */
.band-name {
  display: flex;              /* allows centering while enabling ellipsis on child */
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.2em;         /* reserve space */
  margin-top: 2px;
  overflow: hidden;
  /* ensure flex children can shrink (important for ellipsis) */
  min-width: 0;
  
  
}

.slot .book-btn,
.slot .cancel-btn {
  width: 100%;
  text-align: center;
}

/* the actual text that will ellipsize and be underlined when needed */
.band-text {
  display: block;             /* block-level so ellipsis works */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
  padding: 0 2px;
  box-sizing: border-box;
  pointer-events: none;
  font-size: clamp(0.85rem, 0.9vw, 0.95rem);
  text-wrap: stable;
}

.band-name.has-description {
  text-decoration: underline;
}

.slot .band-text {
  pointer-events: none; /* so clicks go through text to button */
}

.band-calendar-wrapper::-webkit-scrollbar {
  height: 8px;
}
.band-calendar-wrapper::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}
.band-calendar-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.week-wrapper .band-calendar {
  display: flex;
  flex-direction: row;
  width:100%;
  gap: 10px;
  padding-bottom: 6px;    /* room for scrollbar */
}

.week-wrapper .day-column {
  flex: 1 1 80px;                   /* allow to grow and shrink */
  min-width: 80px;
}

/* Notification container wrapper - full width */
.ea-notification-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;   /* full viewport width */
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;  /* center notifications horizontally */
}

/* Individual notification */
.ea-notification {
  margin: 6px 0;
  padding: 12px 20px;
  width: 80%;        /* 80% of viewport width */
  max-width: 600px;  /* optional */
  background-color: #4caf50; /* default success */
  color: #fff;
  font-weight: bold;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(-50px);
  transition: transform 0.5s ease, opacity 0.5s ease;
  pointer-events: auto;
  cursor: pointer;
}

/* Show notification */
.ea-notification.show {
  opacity: 1;
  transform: translateY(var(--ea-notif-top, 32px));
}

/* Error notification */
.ea-notification.error {
  background-color: #f44336;
}

/* -------------------------------
   Band Dashboard Styling
   ------------------------------- */

.band-dashboard {
  width: 100%;
  max-width: 1000px; /* same feel as calendar area */
  margin: 0 auto 24px auto; /* centered like calendar, with spacing below */
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

/* Center the title, but keep a modest size */
.band-dashboard h2 {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 14px;
  color: #333;
}

/* Table layout */
.band-dashboard table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: auto;
}

.band-dashboard th,
.band-dashboard td {
  text-align: left; /* align text for readability */
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}

/* Header row */
.band-dashboard th {
  background: #eee;
  font-weight: bold;
  color: #333;
}

/* Alternating rows for readability */
.band-dashboard tr:nth-child(even) {
  background: #f9f9f9;
}

/* Subtle hover effect */
.band-dashboard tr:hover {
  background: #f0f0f0;
}

/* Buttons (reuse visual language from calendar) */
.band-dashboard .ea-confirm-btn,
.band-dashboard .ea-cancel-btn {
  background: #444;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.9rem;
}

.band-dashboard .ea-confirm-btn:hover,
.band-dashboard .ea-cancel-btn:hover {
  background: #666;
}
