/* ============================================ */
/* ADMIN PANEL - Stats, Modals, Password       */
/* ============================================ */

/* Admin Panel Section */
.admin-panel-section {
  padding: 60px 40px;
  background: var(--gray-bg);
}

.admin-panel-toggle {
  text-align: center;
  margin-bottom: 20px;
}

.admin-panel {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.admin-panel.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-panel h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(135deg, var(--green) 0%, #22A565 100%);
  color: var(--white);
  padding: 32px;
  border-radius: 12px;
  text-align: center;
}

.stat-card-small {
  padding: 24px;
}

.stat-label {
  font-size: 14px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.stat-value {
  font-size: 48px;
  font-weight: 800;
}

.stat-card-small .stat-value {
  font-size: 36px;
}

.stat-percent {
  font-size: 14px;
  margin-top: 4px;
  opacity: 0.8;
}

/* Stats Sections */
.stats-section {
  margin-bottom: 40px;
}

.stats-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.stats-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-bar {
  display: grid;
  grid-template-columns: 100px 1fr 120px;
  gap: 16px;
  align-items: center;
}

.stat-bar-label {
  font-size: 14px;
  font-weight: 600;
}

.stat-bar-fill {
  background: #E5E7EB;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
}

.stat-bar-progress {
  background: var(--green);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease-out;
}

.stat-bar-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-text);
  text-align: right;
}

.admin-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

/* Password Modal */
.password-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  z-index: 1000;
  max-width: 400px;
  width: 90%;
}

.password-modal.show {
  display: block;
  animation: slideIn 0.3s ease-out;
}

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

.password-modal h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.password-modal p {
  color: var(--gray-text);
  margin-bottom: 24px;
  font-size: 14px;
}

.password-modal input {
  width: 100%;
  padding: 14px var(--spacing-16);
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-input);
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 12px;
  transition: border-color var(--transition-fast);
}

.password-modal input:focus {
  outline: 2px solid rgba(43, 182, 115, 0.35);
  outline-offset: 2px;
  border-color: var(--green);
}

.password-error {
  display: none;
  color: #DC2626;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}

.password-error.show {
  display: block;
}

.password-modal .btn {
  width: 100%;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.overlay.show {
  display: block;
}