/* ================================
   ADMIN DASHBOARD STYLES
   ================================ */

.admin-dashboard {
  padding: 20px;
}

.admin-warning {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
  border: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: center;
}

.admin-warning h2 {
  color: #fca5a5;
  margin: 0 0 10px 0;
  font-size: 1.8em;
}

.admin-warning p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 1em;
}

/* ================================
   ADMIN PANEL
   ================================ */

.admin-panel {
  background: rgba(30, 60, 114, 0.95);
  border: 2px solid rgba(147, 197, 253, 0.3);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
}

.admin-panel h3 {
  color: #93c5fd;
  margin: 0 0 20px 0;
  font-size: 1.5em;
  border-bottom: 2px solid rgba(147, 197, 253, 0.3);
  padding-bottom: 10px;
}

.admin-panel p {
  color: rgba(255, 255, 255, 0.8);
  margin: 10px 0;
}

/* ================================
   CONTROL GROUPS
   ================================ */

.admin-controls {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-group label {
  color: white;
  font-size: 1em;
}

.control-group strong {
  display: block;
  color: #93c5fd;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.control-group small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
  font-weight: normal;
}

/* ================================
   TOGGLE SWITCH
   ================================ */

.toggle-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.label-text {
  flex: 1;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  flex-shrink: 0;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ef4444;
  border-radius: 30px;
  transition: 0.4s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.toggle-input:checked + .toggle-slider {
  background-color: #22c55e;
}

.toggle-input:checked + .toggle-slider:before {
  transform: translateX(30px);
}

/* ================================
   STATUS INDICATOR
   ================================ */

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-top: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6b7280;
  animation: pulse 2s infinite;
}

.status-text {
  color: white;
  font-weight: bold;
  font-size: 1em;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ================================
   NUMBER INPUT GROUP
   ================================ */

.number-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-input {
  flex: 1;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(147, 197, 253, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 1em;
  transition: all 0.3s ease;
}

.admin-input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.2);
}

.admin-select {
  flex: 1;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(147, 197, 253, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-select:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.2);
}

/* ================================
   STATS GRID
   ================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.stat-card {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(147, 197, 253, 0.2);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(147, 197, 253, 0.2);
  border-color: rgba(147, 197, 253, 0.4);
}

.stat-icon {
  font-size: 2.5em;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
  margin-bottom: 5px;
}

.stat-value {
  color: #93c5fd;
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
}

.stat-sublabel {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85em;
  margin-top: 5px;
}

/* ================================
   BUTTONS
   ================================ */

.admin-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.admin-btn:active {
  transform: translateY(0);
}

.admin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.admin-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.admin-btn-primary:hover {
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.admin-btn-secondary {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
}

.admin-btn-secondary:hover {
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

.admin-btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.admin-btn-warning:hover {
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.admin-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.admin-btn-danger:hover {
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* ================================
   ACTION BUTTONS
   ================================ */

.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* ================================
   IMPORT CONTROLS
   ================================ */

.import-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.import-status {
  flex: 1;
  min-width: 300px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(147, 197, 253, 0.3);
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #86efac;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .number-input-group {
    flex-direction: column;
  }

  .admin-btn {
    width: 100%;
    justify-content: center;
  }

  .action-buttons {
    flex-direction: column;
  }

  .import-controls {
    flex-direction: column;
  }
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.admin-panel {
  animation: fadeIn 0.3s ease;
}
