/* ==============================================================
   TEAM.CSS — TuEstilo
   Gestión de Equipo, Staff Modal
   Extraído de styles.css (Fase 2 — Refactorización CSS)
   ============================================================== */

/* Gestión de Equipo: Mi Equipo (team cards + modal) */
.team-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.team-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.team-add-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.team-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px dashed var(--color-border);
}

.team-empty-illus {
  margin-bottom: 1rem;
}

.team-empty-illus svg {
  width: 120px;
  height: 80px;
  margin: 0 auto;
  display: block;
}

.team-empty-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.35rem;
}

.team-empty-desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0 0 1.25rem;
}

.team-add-btn--center {
  margin: 0 auto;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.team-card--inactive {
  opacity: 0.65;
}

.team-card-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-border);
  border: 2px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.team-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-info {
  flex: 1;
  min-width: 0;
}

.team-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.team-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.35rem;
}

.team-badge--pink {
  background: #fce7f3;
  color: #9d174d;
}

.team-badge--blue {
  background: var(--color-primary-bg);
  color: #1e40af;
}

.team-badge--purple {
  background: #ede9fe;
  color: #5b21b6;
}

.team-badge--gray {
  background: var(--color-border-light);
  color: var(--color-text-muted);
}

.team-card-email {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

.team-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.team-toggle-wrap {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.team-toggle-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
}

.team-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--color-text-disabled);
  border-radius: 24px;
  transition: background 0.25s;
}

.team-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--color-surface);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s;
}

.team-toggle-wrap input:checked+.team-toggle-slider {
  background: var(--color-primary);
}

.team-toggle-wrap input:checked+.team-toggle-slider::before {
  transform: translateX(20px);
}

.team-card-delete {
  padding: 0.65rem;
  border: none;
  background: transparent;
  color: #9ca3af;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.team-card-delete:hover {
  color: #ef4444;
  background: #fee2e2;
  transform: scale(1.05);
}

#staff-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Modal Agregar Miembro */
.staff-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

.staff-modal:not(.hidden) {
  pointer-events: auto;
}

.staff-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s;
}

.staff-modal:not(.hidden) .staff-modal-backdrop {
  opacity: 1;
}

.staff-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.staff-modal:not(.hidden) .staff-modal-content {
  transform: translateY(0);
}

.staff-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border-light);
}

.staff-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: background 0.2s, color 0.2s;
}

.staff-modal-close:hover {
  background: var(--color-border-light);
  color: var(--color-text);
}

.staff-modal-body {
  padding: 1.25rem 1.25rem 2rem;
  overflow-y: auto;
}

/* Mi Perfil: Hero, Stats, Ticket, Historial, Ajustes */
.profile-hero {
  text-align: center;
  padding: 1.5rem 0 1.75rem;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  margin-bottom: 1rem;
}

/* Super Admin Premium Fallback Classes */
.admin-card-premium {
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #f3f4f6;
}

.btn-autorizar-premium {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(to right, #f59e0b, #f97316);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-autorizar-premium:hover {
  background: linear-gradient(to right, #d97706, #ea580c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-push-premium {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(to right, #7c3aed, #4f46e5);
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-push-premium:hover {
  background: linear-gradient(to right, #6d28d9, #4338ca);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.45);
}

.admin-icon-premium {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, #7c3aed, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}
