.hidden { display: none !important;}

#confirm-overlay.hidden {display: none !important;}

/* 🎨 Paleta de colores unificada */
:root {
  --primary-color: #78be20;   /* Verde Falabella */
  --primary-dark: #5a8f18;    /* Verde más oscuro */
  --primary-light: #C8E6C9;   /* Verde claro */
  --text-color: #333;
  --background-color: #f5f7f4;
  --white: #fff;
  --border-radius: 12px;
  --transition: all 0.3s ease-in-out;
  --shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
}

/* 🌟 Fondo general */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom right, var(--primary-light), var(--white));
  color: var(--text-color);
}

/* ================= LOGIN ================= */
.login-container {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin: 5rem auto;
  animation: fadeIn 1s ease-in-out;
}

/* Animación suave */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-container h1 {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  font-size: 2rem;
  font-weight: bold;
}

.login-container input {
  width: 90%;
  padding: 12px;
  border: 1px solid var(--primary-light);
  border-radius: var(--border-radius);
  outline: none;
  font-size: 1rem;
  transition: border-color 0.3s;
  margin: 10px auto;
}

.login-container input:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 5px rgba(120, 190, 32, 0.4);
}

.login-container button {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  color: var(--white);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.login-container button:hover {
  background: var(--primary-dark);
  transform: scale(1.03);
}

.login-container a {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--primary-dark);
  text-decoration: none;
}

.login-container a:hover {
  text-decoration: underline;
}

/* ================= FORMULARIOS ================= */
#form-container {
  max-width: 700px;
  max-height: 1300px;
  overflow-y: auto;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  color: var(--text-color);
}

#form-container h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

#form-container h3 {
  color: var(--primary-dark);
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--primary-color);
  padding-left: 8px;
}

/* Formularios */
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
}

.form-group input {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 6px rgba(120, 190, 32, 0.4);
}

.form-group small {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.3rem;
}

/* Botón general de formularios */
button[type="submit"] {
  background: var(--primary-color);
  color: #fff;
  font-weight: bold;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
}

button[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(120, 190, 32, 0.25);
}

/* Estado final */
#form-container p {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-dark);
  text-align: center;
  padding: 2rem;
  background: #f0f9eb;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
}


/* 🔲 Overlay */
.overlay.hidden{
  display: none;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(51, 51, 51, 0.6);
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* 📦 Popup */
.popup {
  position: fixed;
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 300px;
  z-index: 1000;
  top: 80px;
  left: 50%;
  opacity: 0;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup.hidden {
  display: none;
}

.popup.show {
  display: block;
  opacity: 1;
}

/* ❌ Error */
.popup.error {
  border: 2px solid #e53935;
}

/* ✅ Mensaje */
#popup-message {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  color: #333;
}

/* ⏳ Loader */
.loader {
  border: 5px solid #eee;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem auto;
  animation: spin 1s linear infinite;
}

.loader.hidden {
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ✨ Animación popup */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.option {
  margin-bottom: 10px;
}

.option .label {
  font-weight: bold;
  margin-left: 6px;
  display: block;
}

.option .description {
  font-size: 0.85rem;
  color: #666;
  margin-left: 25px;
  display: block;
}

select[multiple] option:checked{
  background: greenyellow;
  color: #000000;
  font-weight: bold;
}
select[multiple] option:hover{
  background: #007bff;
  color: white;
}

/* 🎈 Tooltip personalizado para opciones */
select[multiple] option {
  position: relative;
}

#confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#confirm-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}
