/* Estilos generales */
body {
    background-color: #f4f4f4;
    color: #333;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos de secciones principales */
#productos, #carrito, #historialPanel {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

#productos h2, #carrito h2, #historialPanel h2 {
    color: #004085;
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #004085;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Botones */
button {
    background-color: #007bff;
    border: none;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

button:active {
    background-color: #004085;
    transform: scale(1);
}

#reiniciarHistorialBtn, #exportarHistorialBtn {
    background-color: #28a745;
}

#reiniciarHistorialBtn:hover, #exportarHistorialBtn:hover {
    background-color: #218838;
}

/* Tabla de historial */
table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
    background-color: #fff;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
}

table th {
    background-color: #e9ecef;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
}

.table-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
}

/* Lista de productos */
.product-list-container {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
}

.list-group-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    margin-bottom: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease, transform 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.list-group-item img {
    max-width: 80px;
    border-radius: 5px;
    margin-right: 10px;
}

/* Estilos para los inputs */
#codigoBarras {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* Total y cambio */
#total, #cambio, #totalDia {
    margin-top: 20px;
    font-size: 1.25rem;
    font-weight: bold;
    color: #004085;
}