body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7fb;
  margin: 0;
  padding: 20px;
  color: #333;
}

input,
button {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
  transition: all 0.2s ease-in-out;
}

input:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 4px rgba(74, 144, 226, 0.3);
}

button {
  background: #4a90e2;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #357abd;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
  margin: 50px auto;
  padding: 20px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.room-ui {
  margin-top: 30px;
  padding: 20px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.room-ui h3 {
  margin: 0 0 15px;
  font-weight: 600;
  color: #2c3e50;
}

.requests-container {
  margin-top: 20px;
}

.request-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.request-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid #f39c12;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
}

.request-card.acknowledged {
  border-left-color: #27ae60;
  opacity: 0.8;
}

.request-card .screen-name {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
}

.request-card .time {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
}

.request-card .accept-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.request-card .accept-btn:hover {
  background: #219150;
}


.request-card .cancel-btn {
  margin-left: 5px;
  background: #d65522;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.request-card .cancel-btn:hover {
  background: #219150;
}

.request-card .acknowledged-text {
  color: #27ae60;
  font-size: 13px;
  font-weight: 500;
}

.request-card .canceled-text {
  color: #ce3d23;
  font-size: 13px;
  font-weight: 500;
}

.no-requests {
  text-align: center;
  padding: 20px;
  color: #777;
  font-style: italic;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

#staff-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  z-index: 10000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  width: 300px;
  animation: fadeIn 0.3s ease-in-out;
}

#staff-dialog p {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
  color: #2c3e50;
}

#accept-btn {
  background: #27ae60;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
}

#accept-btn:hover {
  background: #219150;
}

#enable-sound {
  background: #f39c12;
  padding: 8px 14px;
  border-radius: 8px;
}

#enable-sound:hover {
  background: #d68910;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.new-request-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.clear-btn {
  background: #e74c3c;
  padding: 6px 12px;
  font-size: 13px;
}

.clear-btn:hover {
  background: #c0392b;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tab-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f1f1f1;
  cursor: pointer;
  font-size: 14px;
}

.tab-btn.active {
  background: #4a90e2;
  color: white;
  border-color: #4a90e2;
}
