:root {
    --primary-color: #fbbb00;
    --secondary-color: #e53523;
    --text-color: #282b2e;
    --light-bg: #f4f6f9;
    --border-color: #dee2e6;
  }

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bg-primary {
    background: var(--primary-color) !important;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 1rem;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0;
    margin: 0;
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.container {
    max-width: 600px;
}

#loginForm {
    max-width: 400px;
    margin: 2rem auto;
}

#contenido {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    padding: 1.5rem;
    margin-top: 2rem;
}

h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: darken(var(--primary-color), 10%);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(238, 188, 65, 0.25);
}

.card {
    border: none;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.footer {
    margin-top: auto;
}

/* Estilos para el menú y pedidos */
.menu-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.menu-item h3 {
    color: #007bff;
    margin-bottom: 0.5rem;
}

.menu-item p {
    margin-bottom: 0.5rem;
}

.pedido-actual {
    margin-bottom: 1.5rem;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}


.pedido-actual h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plato-detalle {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
}

.plato-detalle:last-of-type {
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.plato-titulo {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
}

.plato-titulo i {
    color: var(--primary-color);
    width: 20px;
    margin-right: 0.5rem;
}

.plato-nombre {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0.2rem 0;
    padding-left: 1.8rem;
}

.plato-complementos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;
    padding-left: 1.8rem;
}

.complemento-tag {
    background-color: var(--light-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-color);
}

.detalles-adicionales {
}

.detalle-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detalle-item i {
    color: var(--primary-color);
    width: 20px;
    margin-right: 0.5rem;
}

.detalle-label {
    color: #666;
    margin-right: 0.5rem;
}

.detalle-valor {
    font-weight: 500;
    color: #2c3e50;
}

.acciones-pedido {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.acciones-pedido .btn {
    width: 100%;
    padding: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acciones-pedido .btn i {
    margin-right: 0.5rem;
}

/* Añade más estilos según sea necesario */
.pedido-actual.btn {
    width: 100%; /* Ocupa todo el ancho */
    margin-bottom: 10px; /* Añade un margen inferior para separar los botones */
}

/* Añadir estos estilos para los botones */
.btn-full-width {
    width: 100%;
    margin-bottom: 10px;
}

.btn-group-full-width {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.btn-group-full-width .btn {
    width: 100%;
}

/* Ajustes para espaciado */
.mb-4 {
    margin-bottom: 1.5rem;
}

/* Estilos para el saludo del usuario */
.saludo-usuario {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin: 0rem auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px; /* Mismo ancho que el contenedor principal */
}

.saludo-usuario h1 {
    color: #333;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 500;
}

.saludo-usuario hr {
    margin: 1rem 0;
    border-color: #eee;
}

/* Estilos para el historial */
.form-control-sm {
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.small {
    font-size: 0.875rem;
}

.card-body.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.card-body {
    padding: 0px;
}

#resultadosHistorial .table {
    font-size: 0.9rem;
}

#resultadosHistorial .table td {
    padding: 0.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.g-2 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

/* Estilos para el grupo input-select y botón */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn-square {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 4px 4px 0;
    margin: 0;
    border-left: 0;
}

.input-group .btn-square.active {
    background-color: #6c757d;
    color: white;
}

.complementos-section {
    margin-top: 0.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.form-label {
    margin-bottom: 0.25rem;
}

.btn-danger {
    background: linear-gradient(145deg, #dc3545, #bd2130);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(145deg, #bd2130, #a71d2a);
}

.seccion-pedido-personal {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.seccion-invitados {
    background-color: #fff;
    border-radius: 8px;
    margin-top: 1rem;
}

.separador-secciones {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    gap: 15px;
}

.separador-secciones .linea {
    flex-grow: 1;
    height: 1px;
    background-color: var(--primary-color);
}

.separador-secciones .texto-separador {
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 1px;
}

/* Ajustar los márgenes de los títulos dentro de las secciones */
.seccion-pedido-personal h2,
.seccion-invitados h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Ajustar el espaciado entre elementos */
.seccion-pedido-personal > *:not(:last-child),
.seccion-invitados > *:not(:last-child) {
    margin-bottom: 1rem;
}

/* Mejorar la visualización de los botones */
.seccion-pedido-personal .btn-full-width,
.seccion-invitados .btn-full-width {
    margin-top: 0.5rem;
}

/* Ajustar el espaciado de los pedidos dentro de cada sección */
.seccion-pedido-personal .pedido-actual,
.seccion-invitados .pedido-actual {
    margin-bottom: 1.5rem;
}

/* Estilos para el historial en móvil */
.filtros-historial {
    background: #fff;
    border-radius: 8px;
}

.pedidos-lista {
    margin-top: 10px;
}

.pedido-card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
}

.pedido-header {
    padding: 10px 15px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.pedido-fecha {
    font-size: 0.9rem;
    color: #666;
}

.pedido-tipo {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.tipo-propio {
    background: var(--primary-color);
    color: var(--text-color);
}

.tipo-invitado {
    background: var(--secondary-color);
    color: white;
}

.pedido-body {
    padding: 12px 15px;
}

.pedido-nombre {
    font-weight: 500;
    margin-bottom: 5px;
}

.pedido-facturacion {
    font-size: 0.9rem;
    color: #666;
}

/* Estilos específicos para el botón de cerrar sesión */
.btn-outline-light {
    color: var(--text-color) !important;
    border-color: var(--text-color) !important;
}

.btn-outline-light:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--text-color) !important;
    border-color: var(--text-color) !important;
}

.navbar-dark .btn-outline-light {
    color: var(--text-color) !important;
    border-color: var(--text-color) !important;
}

/* Estilos para la página de login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.logo-container {
    margin-bottom: 2rem;
}

.login-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto;
}

.login-form {
    text-align: left;
}

.login-form .form-label {
    font-weight: 500;
    color: var(--text-color);
}

.login-form .form-control {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(238, 188, 65, 0.25);
}

.login-form .btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(238, 188, 65, 0.3);
}

.login-footer {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Ajustes responsivos */
@media (max-width: 576px) {
    .login-box {
        padding: 1.5rem;
    }

    .login-logo {
        width: 120px;
        height: 120px;
    }

    .login-form .btn-lg {
        padding: 0.5rem;
    }
}

