/* Estilos para o Sistema de Checkout Automático */

body {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 50%, #ffcc80 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    margin: 0;
    padding: 0;
    color: #5d4037;
}

.container-fluid {
    height: 100vh;
}

.pulse-button {
    animation: pulse 2s infinite;
    padding: 20px 40px;
    font-size: 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(255,152,0,0.3);
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
    border: none;
}

.pulse-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255,152,0,0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,152,0,0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255,152,0,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,152,0,0);
    }
}

.tela-produtos {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(255,152,0,0.2);
    min-height: 80vh;
    border: 2px solid #ffe0b2;
}

.carrinho-item {
    background: #fff3e0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #ff9800;
}

.produto-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.produto-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.produto-card:hover img {
    transform: scale(1.05);
}

.produto-imagem {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

/* Estilos para as abas */
.nav-tabs .nav-link {
    color: #5d4037;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 10px 10px 0 0;
    padding: 12px 24px;
    transition: all 0.3s ease;
    background: #f5f5f5;
    margin-right: 5px;
}

.nav-tabs .nav-link:hover {
    background: #fff3e0;
    border-color: #ff9800;
    color: #f57c00;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
    border-color: #ff9800;
    font-weight: bold;
}

.nav-tabs {
    border-bottom: 3px solid #ff9800;
}

.tab-content {
    background: white;
    border-radius: 0 15px 15px 15px;
    padding: 20px;
    border: 2px solid #ffe0b2;
    border-top: none;
}

/* Badges de categoria */
.badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Estilos do Teclado Numérico */
.teclado-numerico {
    max-width: 400px;
    margin: 0 auto;
}

.tecla {
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 60px;
    transition: all 0.2s ease;
}

.tecla:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tecla:active {
    transform: scale(0.95);
}

#codigoDisplay {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    font-family: 'Courier New', monospace;
}

#codigoDisplay:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#quantidadeInput {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

#quantidadeInput:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background: #ffffff;
}

/* Botões de quantidade rápida */
.quantity-btn {
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 35px;
    padding: 4px 8px;
    margin: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quantity-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.3);
}

.produto-card .card-body {
    padding: 15px;
}

.produto-preco {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f57c00;
}

.btn-cancelar {
    background: linear-gradient(45deg, #ffc107, #ff9800);
    border: none;
    color: #212529;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-cancelar:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255,193,7,0.4);
    color: #212529;
}

.btn-voltar {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-voltar:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(108,117,125,0.4);
    color: white;
}

.modal-header.bg-warning {
    background: linear-gradient(45deg, #ffc107, #ff9800) !important;
    color: #212529 !important;
}

.modal-header.bg-warning .btn-close {
    color: #212529 !important;
}

.alerta-cancelamento {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.senha-admin-input {
    font-size: 1.2rem;
    padding: 12px;
    border: 2px solid #ffc107;
    border-radius: 10px;
    text-align: center;
}

.senha-admin-input:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 0.2rem rgba(255,193,7,0.25);
}

.btn-frutas {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-frutas:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255,107,107,0.4);
}

.btn-pagar {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    border: none;
    color: white;
    padding: 20px 40px;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-pagar:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(255,152,0,0.4);
}

.modal-content {
    border-radius: 20px;
    border: none;
}

.modal-header {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
    border-radius: 20px 20px 0 0;
}

.pagamento-opcao {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.pagamento-opcao:hover {
    border-color: #ff9800;
    background: #fff3e0;
    transform: translateY(-3px);
}

.pagamento-opcao.selected {
    border-color: #f57c00;
    background: #ffe0b2;
}

.peso-indicador {
    font-size: 2rem;
    font-weight: bold;
    color: #ff9800;
    text-align: center;
    padding: 20px;
    background: #fff3e0;
    border-radius: 15px;
    margin: 20px 0;
}

.alerta-peso {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.total-carrinho {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

.codigo-barras-input {
    font-size: 1.5rem;
    text-align: center;
    padding: 15px;
    border: 3px solid #ff9800;
    border-radius: 10px;
    text-transform: uppercase;
    /* Bloquear autocomplete do navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #ffffff !important;
}

/* Força bloquear autocomplete em todos os navegadores */
.codigo-barras-input:-webkit-autofill,
.codigo-barras-input:-webkit-autofill:hover,
.codigo-barras-input:-webkit-autofill:focus,
.codigo-barras-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px 50px #ff9800 inset !important;
    -webkit-text-fill-color: #000 !important;
    background-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
    color: #000 !important;
}

.codigo-barras-input::-webkit-credentials-auto-fill-button {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.codigo-barras-input::-ms-reveal {
    display: none !important;
}

/* Firefox */
.codigo-barras-input::-moz-autofill {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Internet Explorer */
.codigo-barras-input:-ms-input-placeholder {
    color: #6c757d !important;
}

/* Bloquear sugestões de todos os navegadores */
.codigo-barras-input {
    background-image: none !important;
    background-color: #ffffff !important;
}

.codigo-barras-input:focus,
.codigo-barras-input:active,
.codigo-barras-input:hover {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Chrome, Safari, Edge */
.codigo-barras-input::-webkit-search-decoration,
.codigo-barras-input::-webkit-search-cancel-button,
.codigo-barras-input::-webkit-search-results-button {
    display: none;
}

/* Firefox */
.codigo-barras-input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Force limpeza completa */
.codigo-barras-input[readonly] {
    cursor: text !important;
    background-color: #ffffff !important;
    color: #000 !important;
}

.codigo-barras-input:not([readonly]) {
    cursor: text !important;
    background-color: #ffffff !important;
    color: #000 !important;
}

.leitor-ativo {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #ff9800; }
    51%, 100% { border-color: #f57c00; }
}

.agradecimento {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 50%, #e65100 100%);
    color: white;
    text-align: center;
    padding: 50px;
    border-radius: 20px;
    margin: 50px auto;
    max-width: 600px;
}

.agradecimento h1 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.agradecimento p {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.btn-nova-compra {
    background: white;
    color: #ff9800;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
}

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

@media (max-width: 768px) {
    .tela-produtos {
        padding: 15px;
        margin: 10px;
    }
    
    .produto-card img {
        height: 150px;
    }
    
    .pulse-button {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
}
