body {
  font-family: Arial, sans-serif;
  background-color: #f5f6fa;
  margin: 0;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.topbar-right {
  display: flex;
  gap: 10px;
}

/* BOTONES TOPBAR */
.topbar button {
  width: auto;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background-color: #2c3e50;
  color: white;
  cursor: pointer;
}

.topbar button:hover {
  background-color: #1a252f;
}

/* LAYOUT */
.layout {
  display: flex;
  gap: 25px;
  padding: 20px 40px;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  height: fit-content;
}

.sidebar h2 {
  margin-top: 0;
}

/* listas */
#misListas div {
  border: 1px solid #ddd;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 6px;
}

/* botón crear lista */
.btn-crear {
  width: 100%;
  margin-top: 10px;
  background-color: #e0e0e0;
  color: black;
  font-weight: bold;
}

.btn-crear:hover {
  background-color: #d5d5d5;
}

/* CONTENIDO */
.main {
  flex: 1;
}

/* eliminar container antiguo */
.container {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* títulos */
h1 {
  margin-bottom: 20px;
}

/* 🔲 tarjetas */
.card {
  background: white;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* inputs */
input, select {
  width: 100%;
  padding: 8px;
  margin: 5px 0 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* BOTONES GENERALES */
button {
  padding: 10px;
  border: none;
  border-radius: 6px;
  background-color: #3498db;
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #2980b9;
}

/* SOLO botones dentro de cards ocupan todo el ancho */
.card button {
  width: 100%;
}

/* ahorro */
#ahorro {
  margin-top: 10px;
  font-weight: bold;
  color: #27ae60;
  text-align: center;
}

/* tabla */
table {
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
}

th {
  background-color: #3498db;
  color: white;
}

th, td {
  padding: 10px;
  text-align: center;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* splash */
#splash {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
}

.loader {
  margin-top: 20px;
  border: 5px solid #fff;
  border-top: 5px solid transparent;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none;
}

/* logo animado */
.logo-animado {
  width: 340px;
  animation: respirar 2.5s ease-in-out infinite;

  box-shadow: 
    0 30px 100px rgba(0,0,0,0.45),
    0 15px 40px rgba(0,0,0,0.3);

  border-radius: 12px;
}

/* efecto respiración */
@keyframes respirar {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* 🧾 formularios (login / registro) */
.auth-container {
  max-width: 400px;
  margin: 80px auto;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* inputs dentro de formularios */
.auth-container input {
  width: 100%;
}

/* botón dentro de formularios */
.auth-container button {
  width: 100%;
}

ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

li {
  background: #f5f5f5;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-logout {
  height: 40px;
}
