/* Base styling */
body {
      background: #111;
      color: #fff;
      font-family: sans-serif;
      padding: 1em;
    }

/* Search input */
input[type="text"] {
  padding: 0.8em;
  border-radius: 5px;
  border: none;
  width: 100%;
  font-size: 1.1em;
  background: #1f1f1f;
  color: white;
}

input[type="text"]:focus {
  outline: 2px solid var(--accent-color, #FB7F22);
}

.result {
  background: #222;
  padding: 0.5em;
  border-radius: 5px;
  margin-bottom: 0.5em;
  transition: background 0.2s;
  font-size: 1.4em;
  line-height: 1.4em;
  cursor: pointer;
  margin: 0.5em 0;
}

.result:hover {
  background: #2c2c2c;
}

.result strong {
  color: var(--accent-color, #FB7F22);
  font-size: 1.2em;
  display: block;
  margin-bottom: 0;
}

.song-title {
  display: block;
  line-height: inherit;
}

/* Modal styling */
.modal {
  background: #222;
  padding: 1em;
  border-radius: 8px;
  color: #f0f0f0;
  width: 92vw;
  max-width: 400px;
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Modal buttons */
.modal-buttons {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  margin-top: 0.2em;
}

.modal-buttons button {
  flex: 1;
  padding: 0.8empx;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  color: white;
  cursor: pointer;
  height: 2.5em;
}

#submit-request {
  background-color: var(--accent-color, #FB7F22);
}

#cancel-request {
  background-color: crimson;
}


/* Corrected mobile search input styling */
#search {
  width: 92vw !important;
  max-width: 100%;
  height: 3.2em;
  font-size: 1.2em;
  margin: 0 auto;
  display: block;
  box-sizing: border-box;
}

#search {
  padding-right: 2.5em; /* space for the clear button */
}

.search-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
  align-items: center;
}

#search {
  flex-grow: 1;
  width: 100%;
  padding-right: 2.5em;
  height: 3.2em;
  font-size: 1.2em;
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
}

#clear-btn {
  position: absolute;
  top: 50%;
  right: 0.6em;
  transform: translateY(-95%);
  background: none;
  color: var(--accent-color, #FB7F22);
  border: none;
  border-radius: 0;
  font-size: 3.0em;
  font-weight: normal;
  line-height: 1;
  cursor: pointer;
  display: none;
  padding: 0;
  width: auto;
  height: auto;
  box-shadow: none;
  margin: 0.5em 0;
}

#search-btn {
  position: absolute;
  top: 50%;
  right: 0.6em;
  transform: translateY(-95%);
  background: url('Icons/search.svg');
  color: var(--accent-color, #FB7F22);
  border: none;
  border-radius: 0;
  font-size: 3.0em;
  font-weight: normal;
  line-height: 1;
  cursor: pointer;
  display: none;
  padding: 0;
  width: auto;
  height: auto;
  box-shadow: none;
  margin: 0.5em 0;
}

.logo-container {
  text-align: center;
  margin-bottom: 1em;
}

.logo-image {
  max-width: 80%;
  height: auto;
  display: inline-block;
}

@media (min-width: 768px) {
  .logo-image {
    max-width: 300px;
  }
}

.nav_button {
  color: black;
  position: fixed;
  width: 15%; 
  top: 0;
  right: 0; 
  text-align: center; 
  background: gray; 
  height: 5%
}

.home_button {
  color: black;
  position: fixed;
  width: 15%; 
  top: 0;
  left: 0; 
  text-align: center; 
  background: gray; 
  height: 5%
}

.queue_button {
  color: black;
  position: fixed;
  width: 15%; 
  top: 0;
  left: 0; 
  text-align: center; 
  background: gray; 
  height: 5%
}

.refresh_button {
  color: black;
  position: fixed;
  width: 15%; 
  top: 0;
  right: 0; 
  text-align: center; 
  background: gray; 
  height: 5%
}

.popup {
  background: #28a745;
  padding: 1.2em 2em;
  border-radius: 10px;
  opacity: 0;
  display: none;
  transition: opacity 0.3s ease-in-out;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  font-size: 1.2em;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex; justify-content: center; align-items: center;
  z-index: 1000;
}

.modal input[type="text"] {
  width: 100%;
  padding: 0.8em;
  margin-bottom: 0.6em;
  font-size: 1.2em;
  border-radius: 6px;
  border: none;
  background: #2a2a2a;
  color: white;
  box-sizing: border-box;
}

    .modal * {
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }