/* Estilos del Panel de Administración - Torneo Valesanito */
:root {
  --admin-primary: #dc2626; /* Rojo Club Libertad */
  --admin-dark: #0f172a;
  --admin-sidebar: #1e293b;
  --admin-bg: #f8fafc;
  --admin-card: #ffffff;
  --admin-border: #e2e8f0;
  --admin-text: #0f172a;
  --admin-text-muted: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--admin-bg);
  color: var(--admin-text);
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  background-color: var(--admin-sidebar);
  color: #f8fafc;
  min-height: 100vh;
  transition: all 0.3s ease;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #94a3b8;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.925rem;
}

.admin-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.admin-nav-item.active {
  background-color: var(--admin-primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

/* Switch Toggle Component */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--admin-primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Modal */
.modal-backdrop-custom {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast-msg {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 4px solid var(--admin-primary);
  animation: slide-in 0.3s ease-out;
}

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

/* ============================================================
   SELECTOR DE ICONOS TEMÁTICOS (MODAL ADMIN)
   ============================================================ */
.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
}

.icon-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.375rem;
  border-radius: 0.75rem;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.icon-picker-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.icon-picker-btn.selected {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
  color: #dc2626 !important;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
  transform: translateY(-1px) scale(1.03);
}

.icon-picker-icon-wrap {
  font-size: 1.25rem;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.icon-picker-btn span.label {
  font-size: 0.65rem;
  line-height: 1.1;
  text-align: center;
}

/* Tarjetas de Paneles Informativos en Admin */
.panel-admin-card {
  transition: all 0.2s ease;
}
.panel-admin-card.inactive {
  opacity: 0.65;
  filter: grayscale(30%);
}
.panel-admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.08);
}

/* Constructor Dinámico de Botones */
.btn-builder-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem;
  transition: border-color 0.2s;
}
.btn-builder-row:hover {
  border-color: #cbd5e1;
}
