/*
==================================
6. styles.css
==================================
*/

/* Estilos gerais */
body {
    background-color: #f8f9fa;
    color: #333;
}

.option-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Estilos para cards de menu */
.menu-item-card {
    border: 1px solid #dee2e6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.menu-item-image {
    height: 160px;
    object-fit: cover;
}

/* Estilos para a página de sucesso */
.success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.qr-container {
    margin: 2rem auto;
    max-width: 200px;
}

/* Estilos para contador de itens */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #dee2e6;
    margin: 0 5px;
}

/* Estilos para a página de confirmação */
.confirmation-section {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Estilos para o código de confirmação */
.code-input {
    letter-spacing: 0.5em;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Animações */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Estilos para o resumo do pedido */
.resumo-pedido-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.resumo-pedido-item:last-child {
    border-bottom: none;
}

/* Estilos para alertas e notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 350px;
}

/* Estilos para página de sucesso */
.success-page {
    text-align: center;
    padding: 3rem 0;
}

.check-circle {
    color: #28a745;
    font-size: 5rem;
    margin-bottom: 2rem;
}

.success-details {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

/* Estilos para formulários */
.form-label {
    font-weight: 500;
}

.invalid-feedback {
    display: block;
}

/* Estilos para botões */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

/* Estilos para abas */
.nav-tabs .nav-link {
    color: #495057;
}

.nav-tabs .nav-link.active {
    background-color: rgba(13, 110, 253,.3);
    color: #0d6efd;
    font-weight: 500;
}

/* Estilos para spinner e loading */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-message {
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
}
/* Estiliza o título do período dentro do select */
select optgroup {
    font-weight: bold;
    font-style: normal;
}

/* Garante que as opções normais voltem à cor padrão */
select optgroup option {
    font-weight: normal;
    padding-left: 10px;
}