/* ========================= */
/* RESET / GLOBAL */
/* ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html, body {
  height: auto;
}

/* ========================= */
/* BODY BASE */
/* ========================= */
body {
  display: flex;
  min-height: 100vh;
  font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
}

#app-content {
  width: 100%;
}

/* ========================= */
/* ELEMENTOS GENERALES */
/* ========================= */

/* Texto secundario */
.subtitle {
  color: #555;
  margin-bottom: 20px;
}

/* Dinero */
.money {
  font-size: 13px;
  color: green;
}

/* ========================= */
/* UTILIDADES */
/* ========================= */

/* BADGES */
.badge {
  background: #e74c3c;
  color: white;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.badge.ok {
  background: #27ae60;
}

.badge.warning {
  background: #f39c12;
}

.badge.danger {
  background: #e74c3c;
}


/* ========================= */
/* TOAST DE NOTIFICACIONES */
/* ========================= */


.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  min-width: 250px;
  max-width: 350px;
  padding: 15px 20px;
  border-radius: 10px;
  color: white;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 9999;

  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* visible */
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* tipos */
.toast.success {
  background-color: #2ecc71;
}

.toast.error {
  background-color: #e74c3c;
}

.toast.info {
  background-color: #3498db;
}

/* ========================= */
/* ESTILO GLOBAL PARA ESTADO ACTIVO E INACTIVO */
/* ========================= */
.status-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  display: inline-block;
}

/* ACTIVO */
.status-activo {
  background-color: rgba(46, 204, 113, 0.15);
  color: #27ae60;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
}

/* INACTIVO */
.status-inactivo {
  background-color: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.6);
}

/* ========================= */
/* ESTILO GLOBAL PARA ALERTAS */
/* ========================= */
.alert-item {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  border-left: 5px solid;
  background: #f9f9f9;
}

/* vencido */
.alert-vencido {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
}

/* próximo */
.alert-proximo {
  border-color: #f1c40f;
  background: rgba(241, 196, 15, 0.1);
}

/* título */
.alert-title {
  font-weight: 600;
}

/* fecha */
.alert-date {
  font-size: 12px;
  opacity: 0.8;
}

.alertas-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

/* scrollbar bonito */
.alertas-container::-webkit-scrollbar {
  width: 4px;
}

.alertas-container::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 15px;
}

.alert-summary {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.alert-counter {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
}

.alert-counter.red {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.alert-counter.yellow {
  background: rgba(241, 196, 15, 0.15);
  color: #d4ac0d;
}

/* ========================= */
/* BOTÓN */
/* ========================= */
.btn-primary {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: #2a5298;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary:hover {
  background: #1e3c72;
}

/* BOTÓN GUARDAR */
.modal-actions .btn-primary {
  background: #2a5298;
  color: white;
}

.modal-actions .btn-primary:hover {
  background: #1e3c72;
}



.modal-actions button:not(.btn-primary):hover {
  background: #e0e6ed;
}