/* ── Dark Login Theme (matches advertisementIngame) ── */
.st-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 60% 40%, #1a2040 0%, #0d0f18 60%);
  position: relative;
  padding: 1.5rem;
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

.st-back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b739e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: "Be Vietnam Pro", sans-serif;
  padding: 8px 14px;
  border-radius: 9px;
  background: #151825;
  border: 1px solid #2a2f4a;
  transition: all 0.2s;
}

.st-back-btn:hover {
  color: #4f8ef7;
  border-color: #4f8ef7;
}

.st-login-card {
  background: #151825;
  border: 1px solid #2a2f4a;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 440px;
  animation: stSlideUp 0.3s ease;
}

@keyframes stSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.st-login-logo {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #1e40af, #4f8ef7);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto 1.25rem;
  box-shadow: 0 6px 20px rgba(79,142,247,0.4);
}

.st-login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e6e9f4;
  text-align: center;
  font-family: "Be Vietnam Pro", sans-serif;
  margin: 0 0 0.35rem;
}

.st-login-sub {
  color: #6b739e;
  text-align: center;
  font-size: 0.875rem;
  font-family: "Be Vietnam Pro", sans-serif;
  margin: 0 0 1.75rem;
}

.st-form-group {
  margin-bottom: 1rem;
}

.st-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #6b739e;
  margin-bottom: 8px;
  font-family: "Be Vietnam Pro", sans-serif;
}

.st-input {
  width: 100%;
  background: #1e2235;
  border: 1px solid #2a2f4a;
  border-radius: 9px;
  color: #e6e9f4;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.st-input::placeholder { color: #6b739e; }

.st-input:focus {
  border-color: #4f8ef7;
  box-shadow: 0 0 0 3px rgba(79,142,247,0.15);
}

.st-btn {
  width: 100%;
  padding: 14px;
  background: #4f8ef7;
  border: none;
  border-radius: 9px;
  color: #fff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.15s, transform 0.1s;
}

.st-btn:hover { opacity: 0.85; }
.st-btn:active { transform: scale(0.98); }

/* Room home button */
.room-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  background: #f1f1f1;
  border: 1px solid #ddd;
  transition: all 0.2s;
}

.room-home-btn:hover {
  background: #e0e7ff;
  color: #4361ee;
  border-color: #4361ee;
}

/* ── Base styles (kept) ── */
body {
  font-family: "Be Vietnam Pro", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7fb;
  margin: 0;
  padding: 0;
  color: #333;
  overflow-x: hidden;
}

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;
}

@media (max-width: 640px) {
  .st-login-wrap {
    padding: 76px 14px 20px;
    align-items: flex-start;
  }

  .st-back-btn {
    top: 16px;
    left: 14px;
  }

  .st-login-card {
    max-width: 100%;
    padding: 28px 20px;
  }

  .controls {
    align-items: flex-start;
  }

  .controls > div {
    width: 100%;
    flex-wrap: wrap;
  }

  .room-home-btn,
  .btn-exit,
  #enable-sound {
    width: 100%;
    justify-content: center;
  }

  .room-ui {
    padding: 14px;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tab-btn {
    width: 100%;
  }
}

#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;
}
