body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background: #f4f4f4;
  color: #333;
}


#site-header {
  width: 100%;
  background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  animation: fadeIn 1.5s ease-out; /* <-- fade-in animation */
}

#site-header a {
  color: #f9f9f9;
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px #000;
}

#site-header a:hover {
  color: #00d4ff;
  text-shadow: 0 0 8px #00d4ff, 0 0 12px #00d4ff;
}

/* Fade-in keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px); /* comes from slightly above */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


h1 {
  font-size: 24px;
}

#reset-requests {
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 20px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

#reset-requests.green {
  background-color: green;
}
#reset-requests.red {
  background-color: red;
}
#reset-requests.orange {
  background-color: orange;
}

section {
  margin-bottom: 20px;
}

h2 {
  margin-bottom: 10px;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  background-color: white;
  color: black;
  padding: 10px;
  margin-bottom: 5px;
  font-weight: normal;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.2s;
}

li:hover:not(.played):not(.limit-reached) {
  background-color: #eee;
}

li.requested {
  background-color: lightblue;
  font-weight: bold;
}

li.played {
  background-color: #ccc;
  color: white;
  font-style: italic;
  cursor: default;
}

li.limit-near {
  background-color: #ffe0e0;
}

li.limit-reached {
  background-color: red;
  color: white;
  cursor: not-allowed;
}

.subtitle {
  font-size: 1rem;
  color: #666;
  margin-top: -10px;
  margin-bottom: 20px;
}

#occasion,
#occasion-details {
  margin-top: 10px;
  display: block;
  padding: 8px;
  font-size: 1rem;
  margin-bottom: 15px;
  width: 100%;
  max-width: 400px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* Toast Styles */
.toast {
  visibility: hidden;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #444;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  transition: background-color 0.3s ease;
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.95);
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

#close-modal {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

#close-modal:hover {
  color: black;
}

.disabled {
  background-color: #e0e0e0;
  color: #999;
  pointer-events: auto; /* So clicks can still show toast */
  cursor: not-allowed;
}
