/* Estilos para las funcionalidades finales del panel administrativo */

/* 
   CONFIGURACIÓN
 */

.config-container {
  max-width: 1200px;
  margin: 0 auto;
}

.config-header {
  margin-bottom: 2rem;
}

.config-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.config-header p {
  color: var(--text-gray);
  font-size: 1rem;
}

.config-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.config-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.config-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.config-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.config-group {
  display: flex;
  flex-direction: column;
}

.config-group label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.config-input {
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.config-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.paquete-config {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 10px;
}

.config-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.btn-save-config,
.btn-reset-config {
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-save-config {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: white;
}

.btn-save-config:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.btn-reset-config {
  background: var(--bg-light);
  color: var(--text-gray);
  border: 2px solid var(--border);
}

.btn-reset-config:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

/* 
   NOTIFICACIONES
 */

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  animation: pulse 2s infinite;
  display: none;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

.notifications-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 350px;
  max-height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow: hidden;
}

.notifications-panel.hidden {
  display: none;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.notifications-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
}

.close-notifications {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-gray);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-notifications:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.notifications-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-item:hover {
  background: var(--bg-light);
}

.notification-item.unread {
  background: rgba(124, 58, 237, 0.05);
}

.notification-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.notification-message {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-gray);
}

/* 
  AQUI DISEÑO RESPONSIVE Y FUNCIONALIDADES FINALES
 */

/* ajuste para las tablets */
@media (max-width: 1024px) {
  .config-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .notifications-panel {
    width: 300px;
  }
}

/* ajustes para los telefonos */
@media (max-width: 768px) {
  .config-container {
    padding: 0 1rem;
  }

  .config-card {
    padding: 1.5rem;
  }

  .config-row {
    grid-template-columns: 1fr;
  }

  .config-actions {
    flex-direction: column;
  }

  .btn-save-config,
  .btn-reset-config {
    width: 100%;
  }

  .notifications-panel {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
  }
}
