 body {
    background-color: #0A1A2F;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
  }
  
  .container {
    max-width: 900px;
    margin: auto;
  }
  .header {
    background-color: #142E55;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
  }
  .header .bienvenido {
    font-size: 1.3rem;
    font-weight: 700;
  }
  .header .stats {
    background-color: #0D3B66;
    border-radius: 8px;
    padding: 15px 25px;
    text-align: center;
    width: 120px;
    margin-left: 15px;
  }
  .header .stats p {
    margin:
  }
  .header .stats .number {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 5px;
  }
  .header .stats.recovered {
    background: linear-gradient(90deg, #1FBB7D, #0D3B66);
  }
  
  /* Resumen */
  .resumen {
    margin-top: 30px;
    background-color: #142E55;
    padding: 20px;
    border-radius: 10px;
  }
  .resumen h2 {
    margin-top: 0;
    margin-left: 30px;
    color: #ffffff;
  }
  .flex-row {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .chart-container {
    flex: 1;
    max-width: 350px;
  }
  .legend {
    flex: 1;
  }
  .legend-item {
    margin-bottom: 10px;
  }
  .legend-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    vertical-align: middle;
  }
  .legend-prestado { background-color: #1FBB7D; }
  .legend-recuperado { background-color: #0D3B66; }
  .legend-pendiente { background-color: #F45B69; }

  /* Acciones rápidas */
  .acciones {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
  }
  .accion-btn {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    background-color: #0D3B66;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s;
  }
  .accion-btn:hover {
    background-color: #1FBB7D;
  }

  /* Calculadora */
  .calculadora {
    margin-top: 40px;
    background-color: #142E55;
    padding: 20px;
    border-radius: 10px;
  }
  .calculadora h2 {
    margin-top: 0;
    margin-bottom: 20px;
  }
  .form-group {
    margin-bottom: 15px;
  }
  label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
  }
  input, select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
  }
  button.calc-btn {
    background-color: #1FBB7D;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
  }
  button.calc-btn:hover {
    background-color: #0D3B66;
  }
  .resultado {
    margin-top: 20px;
    background-color: #0D3B66;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
  }
  
/* Estilos del formulario del modal */


.uk-modal-body input,
.uk-modal-body select {
  background-color: #f0f4f8;  /* Fondo claro visible */
  color: #0A1A2F;             /* Texto oscuro */
  border: 1px solid #ccc;
}


.uk-modal-body label {
  color: #0A1A2F;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}


.uk-modal-body {
  color: #0A1A2F;
}


.uk-modal-body button.uk-button-primary {
  background-color: #1FBB7D;
  color: #ffffff;
  font-weight: bold;
  border-radius: 6px;
}

.uk-modal-body button.uk-button-primary:hover {
  background-color: #0D3B66;
}

.uk-modal-body button.uk-button-default {
  border: 1px solid #ccc;
  background-color: #ffffff;
  color: #0A1A2F;
  border-radius: 6px;
}

.uk-modal-body button.uk-button-default:hover {
  background-color: #e9e9e9;
}

/* Estilos para el modal de ver préstamos  */


#modal-prestamos .uk-modal-body {
  background-color: #f0f4f8;
  color: #0A1A2F;
}


#modal-prestamos table,
#modal-prestamos th,
#modal-prestamos td {
  background-color: #ffffff;
  color: #0A1A2F;
  border-color: #ddd;
}


#modal-prestamos tbody tr td {
  color: #0A1A2F !important;
}


#modal-prestamos select {
  background-color: #ffffff;
  color: #0A1A2F;
  border: 1px solid #ccc;
}


#modal-prestamos .uk-button-default {
  border: 1px solid #ccc;
  background-color: #ffffff;
  color: #0A1A2F;
  font-weight: bold;
}

#tablaHistorial {
  color: #222 !important;
}

.legend-financiera {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 30px;
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

.item-financiero {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.color-caja {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: 3px;
}

.etiqueta {
  font-size: 0.9rem;
  color: #CCCCCC;
}

.valor {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
}

