/* Variables de colores */
:root {
  /* Color principal - Un tono cálido de marrón que evoca elegancia y tierra */
  --primary-color: #8B4513;
  /* Color secundario - Un dorado suave para acentos */
  --secondary-color: #DAA520;
  /* Color de fondo - Un beige suave y acogedor */
  --background-color: #FFF8F0;
  /* Color para textos */
  --text-color: #333333;
  /* Color para errores o alertas */
  --error-color: #D32F2F;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-container {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  margin: 20px;
}

.login-logo {
  display: block;
  margin: 0 auto 2rem;
  max-width: 150px;
  height: auto;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

label {
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

input {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.2);
}

.button {
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Botón primario - Para registro */
.button[type="submit"] {
  background-color: var(--primary-color);
  color: white;
}

.button[type="submit"]:hover {
  background-color: #723710;
}

/* Botón secundario - Para iniciar sesión */
.button[type="button"] {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-top: 0.5rem;
}

.button[type="button"]:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Responsive design */
@media (max-width: 480px) {
  .register-container {
      margin: 10px;
      padding: 1.5rem;
  }

  h2 {
      font-size: 1.5rem;
  }

  input, .button {
      padding: 0.7rem;
  }
}

/*Inicio de sesion*/
/*Inicio de sesion*/
/*Inicio de sesion*/
/*Inicio de sesion*/
/*Inicio de sesion*/
/* Variables de colores (mantenemos la misma paleta) */
:root {
  --primary-color: #8B4513;
  --secondary-color: #DAA520;
  --background-color: #FFF8F0;
  --text-color: #333333;
  --error-color: #D32F2F;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(rgba(139, 69, 19, 0.05), rgba(139, 69, 19, 0.05)),
                    url('restaurant-bg.jpg'); /* Fondo opcional con imagen del restaurante */
  background-size: cover;
  background-position: center;
}

.login-container {
  background-color: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 380px;
  margin: 20px;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.login-logo {
  display: block;
  margin: 0 auto 2rem;
  max-width: 180px;
  height: auto;
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.05);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 600;
}

label {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
}

input {
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fafafa;
}

input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.15);
  background-color: white;
}

/* Botón de inicio de sesión */
.Button {
  padding: 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
  color: white;
  margin-top: 0.5rem;
}

.Button:hover {
  background-color: #723710;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Botón de registro */
.register-button {
  padding: 0.9rem;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: transparent;
  color: var(--primary-color);
  margin-top: 0.5rem;
}

.register-button:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Diseño responsivo */
@media (max-width: 480px) {
  .login-container {
      margin: 15px;
      padding: 1.5rem;
  }

  h2 {
      font-size: 1.6rem;
  }

  .login-logo {
      max-width: 150px;
  }

  input, .Button, .register-button {
      padding: 0.8rem;
  }
}

/* Efectos de carga y transición */
.login-form.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Mensaje de error opcional */
.error-message {
  color: var(--error-color);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/*Home*/
/*Home*/
/*Home*/
/*Home*/
/*Home*/
/* Variables de colores */
:root {
  --primary-color: #8B4513;
  --secondary-color: #DAA520;
  --background-color: #FFF8F0;
  --text-color: #333333;
  --available-table: #2E7D32;
  --occupied-table: #C62828;
  --hover-color: #723710;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--background-color);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
}

.menu-principal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  max-width: 200px;
  margin: 1rem auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

h1 {
  color: var(--primary-color);
  margin: 1rem 0;
  font-size: 2.5rem;
  font-weight: 700;
}

h1:nth-of-type(2) {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

/* Contenedor de mesas */
.mesas {
  margin: 2rem auto;
  max-width: 800px;
}

.botones-mesas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 1rem;
}

/* Botones funcionales en matriz 2x2 */
.botones-funcionales {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
}

/* Estilos base para todos los botones */
.button {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Botones de mesa */
.botones-mesas .button {
  background-color: var(--available-table);
  aspect-ratio: 1;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
}

.botones-mesas .button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  margin: 8px;
}

.botones-mesas .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #1B5E20;
}

/* Mesa ocupada */
.button.ocupada {
  background-color: var(--occupied-table);
}

.button.ocupada:hover {
  background-color: #B71C1C;
}

/* Botón de llevar */
.botones-mesas button:last-child {
  grid-column: 1 / -1;
  max-width: 300px;
  margin: 1rem auto 0;
  background-color: var(--secondary-color);
  aspect-ratio: auto;
  min-height: 60px;
}

.botones-mesas button:last-child:hover {
  background-color: #B8860B;
}

/* Estilos específicos para botones funcionales */
.botones-funcionales .button {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}

.botones-funcionales .button:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Iconos para botones funcionales (opcional) */
.botones-funcionales .button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid rgba(139, 69, 19, 0.1);
  border-radius: 6px;
  margin: 8px;
  pointer-events: none;
}

/* Botón de cerrar sesión */
.button-logout {
  background-color: #D32F2F;
  color: white;
  margin: 2rem auto;
  padding: 1rem 2rem;
  max-width: 200px;
  display: block;
}

.button-logout:hover {
  background-color: #B71C1C;
}

/* Diseño responsive */
@media (max-width: 768px) {
  .menu-principal {
      padding: 1rem;
  }

  h1 {
      font-size: 2rem;
  }

  h1:nth-of-type(2) {
      font-size: 1.5rem;
  }

  .botones-mesas {
      gap: 1rem;
      padding: 0.5rem;
  }

  .botones-mesas .button {
      min-height: 100px;
      font-size: 1rem;
  }

  .botones-funcionales {
      gap: 1rem;
  }

  .botones-funcionales .button {
      padding: 1.5rem 1rem;
      min-height: 100px;
      font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .botones-mesas {
      grid-template-columns: repeat(2, 1fr);
  }

  .botones-funcionales {
      grid-template-columns: 1fr;
      grid-template-rows: repeat(4, 1fr);
  }

  .botones-mesas .button,
  .botones-funcionales .button {
      min-height: 80px;
  }
}

/* Animaciones */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.mesa-seleccionada {
  animation: pulse 0.5s ease-in-out;
}

/* Estado de carga */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/*Ventas diarias*/
/*Ventas diarias*/
/*Ventas diarias*/
/*Ventas diarias*/
/*Ventas diarias*/
/*Ventas diarias*/

/* Variables de colores (manteniendo consistencia) */
:root {
  --primary-color: #8B4513;
  --secondary-color: #DAA520;
  --background-color: #FFF8F0;
  --text-color: #333333;
  --error-color: #D32F2F;
}

.factura {
  background-color: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  animation: fadeIn 0.5s ease-out;
}

.factura h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

thead {
  background-color: var(--primary-color);
  color: white;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  font-weight: 600;
  font-size: 1.1rem;
}

tbody tr:nth-child(even) {
  background-color: var(--background-color);
}

tbody tr:hover {
  background-color: rgba(218, 165, 32, 0.1);
}

tfoot {
  background-color: #f8f8f8;
  font-weight: bold;
}

tfoot td {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.Button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.5rem;
  background-color: var(--primary-color);
  color: white;
}

.Button:hover {
  background-color: #723710;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Botón de limpiar factura */
.Button:nth-of-type(2) {
  background-color: var(--error-color);
}

.Button:nth-of-type(2):hover {
  background-color: #B71C1C;
}

/* Botones de navegación */
.Button:nth-of-type(3),
.Button:nth-of-type(4) {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.Button:nth-of-type(3):hover,
.Button:nth-of-type(4):hover {
  background-color: var(--primary-color);
  color: white;
}

/* Responsive design */
@media (max-width: 768px) {
  .factura {
    padding: 1.5rem;
    margin: 10px;
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.8rem;
  }

  .Button {
    width: 100%;
    margin: 0.5rem 0;
  }
}

@media (max-width: 480px) {
  .factura h2 {
    font-size: 1.5rem;
  }

  th, td {
    padding: 0.6rem;
  }
}
/*Inventario*/
/*Inventario*/
/*Inventario*/
/*Inventario*/
/*Inventario*/
/* Mantener las variables de colores consistentes */
:root {
  --primary-color: #8B4513;
  --secondary-color: #DAA520;
  --background-color: #FFF8F0;
  --text-color: #333333;
  --error-color: #D32F2F;
}

.inventario {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  animation: fadeIn 0.5s ease-out;
}

.inventario h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 600;
}

.formulario-producto {
  background-color: var(--background-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  align-items: end;
}

.formulario-producto label {
  display: block;
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.formulario-producto input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

/* Ajustes específicos para cada tipo de input */
#nombre-producto {
  max-width: 200px;
}

#cantidad-producto {
  max-width: 200px;
}

#medida-producto {
  max-width: 200px;
}

.formulario-producto input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.2);
}

/* Estilos para la tabla */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

thead {
  background-color: var(--primary-color);
  color: white;
}

th, td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

th {
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background-color: var(--background-color);
}

tbody tr:hover {
  background-color: rgba(218, 165, 32, 0.1);
}

/* Botones */
button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
  color: white;
}

button:hover {
  background-color: #723710;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Botón de modificar */
button[onclick*="modificarProducto"] {
  background-color: var(--secondary-color);
}

button[onclick*="modificarProducto"]:hover {
  background-color: #B8860B;
}

/* Botón de regresar */
button[onclick*="location.href"] {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  margin-top: 1rem;
}

button[onclick*="location.href"]:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Diseño responsivo */
@media (max-width: 768px) {
  .inventario {
    padding: 1.5rem;
    margin: 10px;
  }

  .formulario-producto {
    padding: 1rem;
    grid-template-columns: 1fr;
  }

  th, td {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  button {
    width: 100%;
    margin: 0.3rem 0;
  }
}
.short-button {
  width: 150px;
  padding: 0.5rem 1rem;
}
