/* =============================================================
   ADMIN — Panel de configuración, gestor de tareas, staff manager
   ============================================================= */

.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.3);
  align-items: center;
  justify-content: center;
}
.admin-modal__div-1 {
  background: #F2F2F7;
  width: 95%;
  max-width: 380px;
  max-height: 90vh;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  animation: appleFade 0.3s ease;
  overflow-y: auto;
}
.admin-modal__div-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  background: #F2F2F7;
  z-index: 10;
  padding-bottom: 10px;
}
.admin-modal__h2-1 { margin: 0; font-size: 20px; font-weight: 800; color: #1c1c1e; }
.toggle-admin-modal {
  background: #E5E5EA;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
  color: #8E8E93;
}

.control-grid { background: #f2f2f7; padding: 20px; border-radius: 16px; margin-bottom: 20px; }
.control-grid h3 { margin: 0 0 15px 0; font-size:14px; color:#8e8e93; text-transform: uppercase; letter-spacing: 0.5px; }
.control-card {
  background: white;
  padding: 15px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 1px solid #e5e5ea;
  transition: 0.2s;
}
.control-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #007AFF !important; }
.control-card:active { transform: scale(0.96); background-color: #f9f9f9 !important; }
.control-card .opt-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px;
}
.control-card .opt-text b { display: block; font-size: 13px; color: #1c1c1e; }
.control-card .opt-text small { font-size: 10px; color: #8e8e93; }

.badge-requests {
  background: #EF4444;
  color: white;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 20px;
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
}

/* Gestor de tareas (modal) */
#admin-tasks-list-container { max-height: 300px; overflow-y: auto; padding-right: 5px; }