* { box-sizing: border-box; }

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

/* --- HEADER GENERAL --- */
header {
  background: #222;
  color: #fff;
  padding: 12px 16px;
  position: relative;
}
header .logout {
  position: absolute;
  right: 16px;
  top: 12px;
  color: #fff;
  text-decoration: none;
}

/* --- LOGIN --- */
.login-container {
  width: 90%;
  max-width: 380px;
  margin: 60px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
.login-container h2 {
  text-align: center;
  margin: 0 0 12px;
}
input, button {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ddd;
}
button {
  background: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
}
button:hover {
  background: #005bb5;
}

/* --- DASHBOARD ADMIN --- */
.container {
  text-align: center;
  padding: 30px 10px;
}

/* Cuadro resumen de cajas */
.color-btn {
  width: 150px;
  height: 100px;
  border: none;
  border-radius: 10px;
  margin: 10px;
  font-weight: bold;
  font-size: 18px;
  color: #fff;
  transition: 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.color-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.total-box {
  font-size: 22px;
  font-weight: 700;
  margin-top: 6px;
}

/* Colores específicos */
.rojo { background-color: #e74c3c; }
.amarillo { background-color: #f1c40f; color: #111; }
.verde { background-color: #2ecc71; }
.negro { background-color: #2c3e50; }

/* Contenedor en grilla adaptable */
.grid, #resumen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

/* Botones secundarios del dashboard */
.btn-secondary {
  background-color: #6c757d;
  border: none;
  font-weight: 600;
}
.btn-secondary:hover {
  background-color: #5a6268;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  .login-container { margin: 30px 10px; }
  header h2 { font-size: 16px; }
  .color-btn {
    width: 100%;
    height: 90px;
  }
}


body {
    background-color: #f4f6f9;
    font-family: "Segoe UI", sans-serif;
}

/* Botones de colores */
.color-btn {
    width: 150px;
    height: 100px;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    margin: 10px;
    font-size: 18px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.color-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Colores de cajas */
.rojo {
    background-color: #dc3545;
}

.amarillo {
    background-color: #ffc107;
    color: black;
}

.verde {
    background-color: #198754;
}

.negro {
    background-color: #000000;
}

.total-box {
    font-size: 20px;
    display: block;
    margin-top: 8px;
}
