/* Admin Modal & Drawer Overlay CSS */

.discrete-admin-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 50%;
  color: #ffd700;
  font-size: 15px;
  cursor: pointer;
  z-index: 99;
  opacity: 0.35;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.discrete-admin-btn:hover {
  opacity: 0.95;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.admin-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.admin-dialog {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: #162419;
  border: 2px solid var(--gold-primary);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.9), var(--shadow-gold);
  overflow-y: auto;
  padding: 25px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 12px;
}

.admin-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-close-admin {
  background: transparent;
  border: none;
  color: #ff6b6b;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.admin-section {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e0e0e0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #a3d9ad;
}

.admin-field input[type="range"] {
  width: 100%;
  accent-color: var(--gold-primary);
}

.admin-field select, .admin-field input[type="text"], .admin-field input[type="password"], .admin-field input[type="number"] {
  width: 100%;
  height: 42px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 8px;
  color: #ffffff;
  padding: 0 12px;
  font-size: 1rem;
  outline: none;
}

.time-presets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.btn-time-preset {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-time-preset.active, .btn-time-preset:hover {
  background: var(--gold-primary);
  color: #270000;
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.btn-admin-action {
  width: 100%;
  padding: 12px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 10px;
  color: #270000;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-admin-action:hover {
  transform: translateY(-2px);
}

.btn-admin-secondary {
  background: #3c8348;
  color: #ffffff;
}

.admin-logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 8px;
}

.admin-logs-table th, .admin-logs-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logs-table th {
  color: var(--gold-primary);
  font-weight: 700;
}

.status-badge-win {
  color: #52b363;
  font-weight: bold;
}

.status-badge-lose {
  color: #ff6b6b;
  font-weight: bold;
}
