/* ------------------------------------
   BASE LAYOUT + VISIBILITY
------------------------------------ */
#signin-div,
#search-head-div,
#help-head-div,
#fav-head-div,
#req-head-div,
#pick-head-div,
#locations-div,
#help-div,
#results-div,
#favorites-div,
#requests-div,
#dj-div,
#dj-message-div {
  display: none;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Verdana, sans-serif;
  background: #fff;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

.container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

.scroll-content-0,
.scroll-content-85,
.scroll-content-320 {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 10px;
  background: #fff;
  box-sizing: border-box;
  /*max-height: 100vh;*/
  /*overflow-y: auto;*/
  font-size: 20px;
}
.scroll-content-0 { margin-top: 0; }
.scroll-content-85 { margin-top: 90px; }
.scroll-content-320 { margin-top: 330px; }

/* ------------------------------------
   HEADERS + TEXT
------------------------------------ */
#help-head-div,
#fav-head-div,
#req-head-div,
#pick-head-div,
#search-head-div {
  width: 100%;
  background: #000;
  color: #fff;
  font-size: 1.2rem;
  position: fixed;
  z-index: 9999;
  box-sizing: border-box;
}

#signin-div {
  width: 100%;
  background: #E0E0E0;
  color: #000;
  font-size: 1.2rem;
  text-align: center;
}

/* ------------------------------------
   TABLES + FORMS
------------------------------------ */
table {
  width: 100%;
  table-layout: fixed;
  margin: 10px 0;
  border-spacing: 0;
}

td { padding: 5px; vertical-align: middle; }
table td:first-child { text-align: right; padding-right: 0; }

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.input-wrapper {
  display: flex;
  align-items: center;
}
.input-wrapper input { flex: 1; }
.input-wrapper .close-btn { margin-left: 5px; cursor: pointer; }

/* ------------------------------------
   BUTTONS
------------------------------------ */
.button-wrapper,
#accountBTN-div,
#requestBTN-div {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.blueButton,
.blueButton2,
.blueButton3 {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: none;
  cursor: pointer;
  border-radius: 20px;
  background: #0633F4;
  color: #fff;
  text-align: center;
}
.blueButton { font-size: 1.2rem; }
.blueButton2 { font-size: 1.8rem; }
.blueButton3 { width: 60%; font-size: 1.2rem; border-radius: 8px; }

.clearButton {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: none;
  background: #fff;
  color: #0633F4;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ------------------------------------
   AVATARS + IMAGES
------------------------------------ */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  border: 5px solid #fff;
  font-weight: bold;
  font-size: 28px;
}

.album-art {
  position: relative;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  border: 2px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f3f3;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.album-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ------------------------------------
   LOADING OVERLAY
------------------------------------ */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100000;
}
.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #0633F4;
  border-radius: 50%;
  width: 60px; height: 60px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------
   DJ INTERFACE
------------------------------------ */

/* Base sizing variables */
:root {
  --barH: 125px;
  --headerTop: 125px;
}

/* Top Bar */
.djBox {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  height: var(--barH);
  background: linear-gradient(145deg, #000, #1c1c1c);
  color: #fff;
  box-sizing: border-box;
  z-index: 1000;
  border-bottom: 2px solid rgba(255,255,255,0.85);
}

/* Sections */
.dj-left, .dj-center, .dj-right {
  flex: 1;
  display: flex;
  align-items: center;
}
.dj-left  { justify-content: flex-start; margin-left: 8px; gap: 12px; }
.dj-center{ justify-content: center; }
.dj-right { justify-content: flex-end; }

.dj-left .logo {
  display: block;
  height: 90px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

.dj-left .gear-icon,
.dj-left .msg-icon {
  height: 46px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s;
}

.dj-left .gear-icon:hover,
.dj-left .msg-icon:hover {
  transform: scale(1.08);
}

/* Shared button/dropdown styles */
#venueSelect, #mainDjBTN-button {
  width: 230px;
  height: 46px;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Dropdown */
#venueSelect {
  border: 1px solid #ccc;
  padding: 6px 10px;
  background: #fff;
  color: #000;
  text-align: center;
  text-align-last: center;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #000 50%),
                    linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: right 15px center, right 10px center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

/* Main button */
#mainDjBTN-button {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s, background 0.2s;
}
#mainDjBTN-button:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.2);
}

/* Header */
.header-row {
  position: fixed;
  top: var(--headerTop);
  left: 0; right: 0;
  background: #000;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1.5fr 4.5fr 1fr;
  column-gap: 12px;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 0.95rem;
  border-bottom: 1px solid #333;
  z-index: 999;
}

/* Request list */
#dj-requests-div {
  position: fixed;
  top: calc(var(--headerTop) + 50px);
  left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  background: #fff;
  padding-bottom: 60px;
  box-sizing: border-box;
}

#dj-requests-div, 
#dj-requests-div * {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Request rows */
.request-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 4.5fr 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
  font-size: 1.2rem;
}
.request-row:hover { background: #f2f2f2; }

.request-row.highlighted {
  background-color: #d0ebff; /* Encore blue highlight */
  color: #000000;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ---------- LANDSCAPE (≤900px) ---------- */
@media (max-width: 900px) and (orientation: landscape) {
  :root { --barH: 70px; --headerTop: 70px; }

  .djBox {
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
  }

  .dj-left, .dj-center, .dj-right {
    flex: none;
    display: flex;
    align-items: center;
  }
  .dj-left  { margin-right: auto; gap: 10px; }
  .dj-right { margin-left: auto; }

  .dj-left .logo { height: 42px; }
  .dj-left .gear-icon { height: 38px; }
  .dj-left .msg-icon { height: 28px; }

  /* 🔹 Shrink and narrow the button + dropdown */
  #venueSelect,
  #mainDjBTN-button {
    width: 28vw;        /* use a % of screen instead of big fixed px */
    max-width: 140px;   /* hard cap to keep them small */
    height: 34px;       /* was 48px */
    border-radius: 8px;
    font-size: 0.8rem;  /* smaller text */
    padding: 0 6px;
  }

  #mainDjBTN-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ---------- PORTRAIT (≤800px) ---------- */
@media (max-width: 800px) and (orientation: portrait) {
  :root { --barH: 246px; --headerTop: 246px; }

  .djBox { display: block; text-align: center; padding: 16px 0 20px; }
  .dj-left { justify-content: center; margin-bottom: 12px; gap: 10px; }
  .dj-left .logo { height: 70px; }
  .dj-left .gear-icon { height: 42px; }
  .dj-left .msg-icon { height: 42px; }

  .dj-right { display: block; width: 100%; }

  #venueSelect, #mainDjBTN-button {
    display: block;
    width: 92%;
    max-width: 440px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 10px;
    font-size: 1.05rem;
    text-align: center;
    text-align-last: center;
  }
}

.dj-left .gear-icon,
.dj-left .msg-icon {
  display: inline-block !important;
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* ---------- DESKTOP (≥901px) ---------- */
@media (min-width: 901px) {
  :root { --barH: 125px; --headerTop: 125px; }

  #venueSelect, #mainDjBTN-button {
    width: 260px;
    height: 46px;
  }
}

/* =========================
   MODAL STYLING
========================= */
/*
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.modal-window {
  background: #fff;
  color: #000;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

.modal-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 15px;
  color: #0633F4;
  font-size: 1.4rem;
}

.modal-window label {
  display: block;
  font-weight: bold;
  margin-top: 10px;
}

.modal-window select,
.modal-window textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.modal-buttons button {
  flex: 1;
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.cancel-btn {
  background: #ccc;
  color: #000;
  border: none;
  margin-right: 8px;
}

.cancel-btn:hover { background: #bbb; }

.send-btn {
  background: #0633F4;
  color: #fff;
  border: none;
}

.send-btn:hover { background: #002bd8; }

// Responsive tweak
@media (max-width: 480px) {
  .modal-window {
    padding: 16px;
  }
  .modal-buttons button {
    font-size: 0.95rem;
  }
}

// Ensure modal overlay always sits above everything
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 300000 !important; // ✅ Increase priority
  pointer-events: auto !important; // ✅ Enable tapping
}

// Ensure modal window stays clickable
.modal-window {
  position: relative;
  z-index: 300001 !important; // ✅ One layer above overlay
  pointer-events: auto !important; // ✅ Allow touch interaction
}
*/



/* =========================
   SCROLLING TEXT FOR RESULTS
========================= */
.scroll-cell {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.scroll-text {
  display: inline-block;
  transform: translateX(0);
  will-change: transform;
  animation: scrollText 15s linear infinite;
  animation-play-state: paused; /* ✅ default: stopped */
}

@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Optional: pause on hover for readability */
.scroll-cell:hover .scroll-text {
  animation-play-state: paused !important;
}

/************************************************************/
/* 🔻 Disable marquee scrolling completely */
.scroll-cell {
  overflow: visible;
  white-space: normal;
}

.scroll-text {
  animation: none !important;
  animation-play-state: paused !important;
  transform: none !important;
  white-space: normal;
  display: inline; /* allow wrapping */
}
/************************************************************/

.locationButton {
  width: 100% !important;
  max-width: 300px;
  display: block;              /* Forces each button to its own line */
  margin: 14px auto;           /* Centers & separates buttons */
  padding: 20px !important;    /* Taller, consistent */
  min-height: 40px;

  font-size: 1.4rem !important;
  font-weight: 700;
  text-align: center;

  background: #e6e6e6 !important;
  color: #000 !important;
  border: 2px solid #cfcfcf;
  border-radius: 24px;

  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.locationButton:hover {
  background: #d6d6d6 !important;
  transform: scale(1.015);
}

.locationButton:active {
  transform: scale(0.98);
  background: #c9c9c9 !important;
}


/* =========================
   VENUE EDITING MODAL
========================= */
.venue-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.venue-modal-box {
  background: #fff;
  color: #000;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

.venue-modal-title {
  text-align: center;
  margin: 0 0 15px;
  color: #0633F4;
  font-size: 1.4rem;
}

.venue-modal-box label {
  display: block;
  font-weight: bold;
  margin-top: 10px;
}

.venue-modal-box select,
.venue-modal-box input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

/* Two-column layout */
.venue-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.venue-col {
  flex: 1;
}

.venue-checkbox {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  white-space: nowrap;
}

/* Buttons */
.venue-btn-group {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  gap: 10px;
}

.venue-btn-group button {
  flex: 1;
  padding: 12px;
  font-size: 1.05rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  border: none;
  transition: background 0.2s ease;
}

.venue-cancel-btn {
  background: #ccc;
  color: #000;
}
.venue-cancel-btn:hover {
  background: #b9b9b9;
}

.venue-save-btn {
  background: #0633F4;
  color: #fff;
}
.venue-save-btn:hover {
  background: #002bd8;
}

/* Responsive */
@media (max-width: 480px) {
  .venue-modal-box {
    padding: 16px;
  }
  .venue-row {
    flex-direction: column;
  }
  .venue-btn-group button {
    font-size: 0.95rem;
  }
}


/* =========================
   DJ MESSAGING
========================= */
.dj-message-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background: #000;   /* black only behind content */
  color: #fff;
  box-sizing: border-box;
  border-radius: 0 0 0px 0px; /* optional: smooth bottom edge */
}

/* White input field backgrounds */
.dj-message-container select,
.dj-message-container textarea {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #444;
  border-radius: 6px;
}


.dj-message-container button:hover {
  filter: brightness(1.1);
}

/* Make dropdown + textarea white with black text 
.dj-message-container select,
.dj-message-container textarea {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #444;
  border-radius: 6px;
}
*/


/* one class to rule them all */
.clickable,
.clickable * {
  cursor: pointer !important;
  pointer-events: auto !important;
}

