

/* CSS personalizado para página de pedidos - Restaurante 3 (Farofa Churrascaria) */

:root {
    /* Paleta de cores Farofa Churrascaria */
    --farofa-primary: #991918;     
    --farofa-secondary: #E85C0D;  
    --farofa-accent: #EEAC1F; /* Amarelo dourado */
    --farofa-dark: #1a1a1a; /* Preto suave */
    --farofa-light: #f8f9fa; /* Branco suave */
    --farofa-gray: #6c757d; /* Cinza neutro */
    --farofa-success: #00C851; /* Verde sucesso */
    --farofa-danger: #dc3545; /* Vermelho perigo */
    --farofa-info: #33b5e5; /* Azul informativo */
    --farofa-warning: #ffbb33; /* Amarelo aviso */
    
    /* Gradientes */
    --farofa-gradient-primary: linear-gradient(135deg, #072B1C, #1a5a3e);
    --farofa-gradient-secondary: linear-gradient(135deg, #E85C0D, #FF7A00);
    --farofa-gradient-accent: linear-gradient(135deg, #EEAC1F, #FFD700);
    --farofa-gradient-success: linear-gradient(135deg, #00C851, #28a745);
}

/* Reset e base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Party Confetti', 'Antique Olive', Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--farofa-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Ajuste para navbar fixa em desktop */
@media (min-width: 992px) {
    body {
        padding-top: 80px;
    }
}

nav {
    background-color: var(--farofa-dark);
    opacity: 1;
    height: 80px;
    color: #FFF
    zindex: 1000;
}

.navbar-collapse{
    z-index: 1000;
}

/* Header personalizado da página */
.orders-page-header {
    background: var(--farofa-gradient-primary);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(7, 43, 28, 0.3);
    position: relative;
    z-index: 1;
}


.orders-page-header .container {
    position: relative;
    z-index: 2;
}

.orders-page-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.orders-page-header .lead {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0.5rem 0 0 0;
}

/* Cards dos pedidos */
.order-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--farofa-gradient-accent);
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.order-card .card-header {
    background: linear-gradient(to right, rgba(238, 172, 31, 0.05), rgba(232, 92, 13, 0.05));
    color: var(--farofa-primary);
    border: none;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-card .card-header:hover {
    background: linear-gradient(to right, rgba(238, 172, 31, 0.1), rgba(232, 92, 13, 0.1));
}

.order-card .card-header h5 {
    color: var(--farofa-primary);
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.order-card .card-header small {
    color: var(--farofa-gray);
    font-size: 0.9rem;
}

.order-card .card-body {
    padding: 2rem;
}

.order-card .card-body h6 {
    color: var(--farofa-primary);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-card .card-body h6::before {
    content: '🍽️';
    font-size: 1.2em;
}

/* Itens do pedido */
.order-item {
    background: linear-gradient(to right, rgba(238, 172, 31, 0.05), rgba(232, 92, 13, 0.05));
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--farofa-accent);
    transition: all 0.3s ease;
}

.order-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(238, 172, 31, 0.2);
}

.order-item strong {
    color: var(--farofa-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.order-item small {
    color: var(--farofa-gray);
    font-size: 0.9rem;
}

.order-item .text-end strong {
    color: var(--farofa-success);
    font-size: 1.1rem;
}

/* Status badges */
.order-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.order-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.order-status.bg-warning {
    background: var(--farofa-gradient-accent) !important;
    color: var(--farofa-primary) !important;
}

.order-status.bg-warning::before {
    background: var(--farofa-primary);
}

.order-status.bg-info {
    background: var(--farofa-gradient-secondary) !important;
    color: white !important;
}

.order-status.bg-info::before {
    background: white;
}

.order-status.bg-success {
    background: var(--farofa-gradient-success) !important;
    color: white !important;
}

.order-status.bg-success::before {
    background: white;
}

.order-status.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
}

.order-status.bg-danger::before {
    background: white;
}

.order-status.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    color: white !important;
}

.order-status.bg-secondary::before {
    background: white;
}

.order-status.bg-dark {
    background: linear-gradient(135deg, #343a40, #23272b) !important;
    color: white !important;
}

.order-status.bg-dark::before {
    background: white;
}

/* Valores */
.text-grupo-ilha-primary {
    color: var(--farofa-primary) !important;
    font-weight: bold;
}

/* Resumo de valores */
.order-summary-section {
    background: linear-gradient(135deg, rgba(7, 43, 28, 0.05), rgba(26, 90, 62, 0.05));
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(238, 172, 31, 0.3);
}

.order-summary-section .text-muted {
    color: var(--farofa-gray) !important;
    font-size: 0.9rem;
}

.order-summary-section strong {
    color: var(--farofa-primary);
    font-weight: 700;
}

.order-summary-section .text-grupo-ilha-primary {
    font-size: 1.2rem;
    font-weight: 800;
}

/* Botões de ação - mais vivos e impactantes */
.btn-outline-secondary {
    background: var(--farofa-gradient-secondary);
    border: none;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(232, 92, 13, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-secondary:hover {
    background: var(--farofa-gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 172, 31, 0.4);
    color: var(--farofa-primary);
}

.btn-outline-secondary:focus {
    box-shadow: 0 0 0 3px rgba(238, 172, 31, 0.2);
}

.btn-grupo-ilha-primary {
    background: var(--farofa-gradient-primary);
    border: none;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(7, 43, 28, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-grupo-ilha-primary:hover {
    background: var(--farofa-gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 92, 13, 0.4);
    color: white;
}

.btn-grupo-ilha-primary:focus {
    box-shadow: 0 0 0 3px rgba(232, 92, 13, 0.2);
}

.btn-outline-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: white;
}

.btn-outline-danger:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* Estados vazios */
.empty-orders {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.empty-orders::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--farofa-gradient-accent);
}

.empty-orders h4 {
    color: var(--farofa-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.empty-orders p {
    color: var(--farofa-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.empty-orders .btn {
    background: var(--farofa-gradient-secondary);
    border: none;
    color: white;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(232, 92, 13, 0.3);
}

.empty-orders .btn:hover {
    background: var(--farofa-gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 172, 31, 0.4);
    color: var(--farofa-primary);
}

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--farofa-gradient-accent);
}

.spinner-border {
    border: 4px solid rgba(7, 43, 28, 0.1);
    border-left: 4px solid var(--farofa-primary);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alertas personalizados */
.alert {
    background: linear-gradient(135deg, rgba(238, 172, 31, 0.1), rgba(232, 92, 13, 0.1));
    border: 1px solid var(--farofa-accent);
    border-radius: 12px;
    color: var(--farofa-primary);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.alert h5 {
    color: var(--farofa-primary);
    font-weight: bold;
    margin-bottom: 1rem;
}

.alert .btn {
    background: var(--farofa-gradient-secondary);
    border: none;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert .btn:hover {
    background: var(--farofa-gradient-accent);
    color: var(--farofa-primary);
    transform: translateY(-1px);
}

/* Indicadores de carregamento */
#loading-more {
    text-align: center;
    padding: 2rem;
    background: rgba(238, 172, 31, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(238, 172, 31, 0.2);
    margin-bottom: 1rem;
}

#loading-more .spinner-border-sm {
    border: 2px solid rgba(7, 43, 28, 0.1);
    border-left: 2px solid var(--farofa-primary);
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    animation: spin 1s linear infinite;
}

#loading-more p {
    color: var(--farofa-primary);
    margin-top: 1rem;
    font-weight: 600;
}

#no-more-results {
    text-align: center;
    padding: 1.5rem;
    background: rgba(7, 43, 28, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(7, 43, 28, 0.2);
}

#no-more-results p {
    color: var(--farofa-primary);
    font-weight: 600;
    margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .orders-page-header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }

    .orders-page-header h1 {
        font-size: 2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .order-card {
        margin-bottom: 1.5rem;
    }

    .order-card .card-header {
        padding: 1rem 1.5rem;
    }

    .order-card .card-body {
        padding: 1.5rem;
    }

    .order-item {
        padding: 0.75rem;
    }

    .order-summary-section {
        padding: 1rem;
    }

    .btn-sm {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .d-flex.gap-2 .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .order-card .card-header .row {
        flex-direction: column;
        text-align: center;
    }

    .order-card .card-header .col-md-3,
    .order-card .card-header .col-md-6 {
        margin-bottom: 0.5rem;
    }

    .order-summary-section .row {
        flex-direction: column;
        text-align: center;
    }

    .order-summary-section .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Efeitos de hover nos textos */
.order-card .card-header h5:hover {
    color: var(--farofa-secondary);
    transition: color 0.3s ease;
}

/* Estilos específicos para página order-success */
.order-success-header {
    background: var(--farofa-gradient-primary);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(7, 43, 28, 0.3);
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

.order-success-header.success {
    background: var(--farofa-gradient-success);
}

.order-success-header.warning {
    background: linear-gradient(135deg, #ffbb33, #ff9500);
}

.order-success-header.info {
    background: linear-gradient(135deg, #33b5e5, #0099cc);
}

.order-success-header.danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.order-success-header.secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.order-success-header.dark {
    background: linear-gradient(135deg, #343a40, #23272b);
}

.order-success-header .container {
    position: relative;
    z-index: 2;
}

.order-success-header .status-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: statusIconPulse 2s ease-in-out infinite;
}

@keyframes statusIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.order-success-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.order-success-header .lead {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Cards da página order-success */
.order-success-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.order-success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--farofa-gradient-accent);
}

.order-success-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.order-success-card .card-header {
    background: linear-gradient(to right, rgba(238, 172, 31, 0.05), rgba(232, 92, 13, 0.05));
    color: var(--farofa-primary);
    border: none;
    padding: 1.5rem 2rem;
    margin-bottom: 0;
}

.order-success-card .card-header h5 {
    color: var(--farofa-primary);
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-success-card .card-header h5 i {
    color: var(--farofa-accent);
    font-size: 1.2em;
}

.order-success-card .card-body {
    padding: 2rem;
}

/* Código de confirmação destacado */
.confirmation-code {
    background: linear-gradient(135deg, rgba(238, 172, 31, 0.1), rgba(232, 92, 13, 0.1));
    color: var(--farofa-primary);
    font-size: 1.3rem;
    font-weight: bold;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    letter-spacing: 2px;
    border: 2px solid var(--farofa-accent);
    font-family: 'Courier New', monospace;
}

/* Container do QR Code */
.qr-code-container {
    background: rgba(238, 172, 31, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(238, 172, 31, 0.2);
}

.qr-code {
    border: 2px solid var(--farofa-accent);
    border-radius: 8px;
    background: white;
}

/* Informações de contato */
.contact-info {
    background: rgba(7, 43, 28, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--farofa-accent);
}

.contact-info i {
    color: var(--farofa-accent);
    width: 20px;
}

/* Alertas personalizados para order-success */
.alert {
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
    position: relative;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 187, 51, 0.1), rgba(255, 149, 0, 0.1));
    color: #8a5d00;
    border: 1px solid rgba(255, 187, 51, 0.3);
}

.alert-warning::before {
    background: linear-gradient(135deg, #ffbb33, #ff9500);
}

.alert-info {
    background: linear-gradient(135deg, rgba(51, 181, 229, 0.1), rgba(0, 153, 204, 0.1));
    color: #0c5d7a;
    border: 1px solid rgba(51, 181, 229, 0.3);
}

.alert-info::before {
    background: linear-gradient(135deg, #33b5e5, #0099cc);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(200, 35, 51, 0.1));
    color: #7a1e2a;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.alert-danger::before {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.alert-secondary {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1), rgba(90, 98, 104, 0.1));
    color: #3d4043;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.alert-secondary::before {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.alert-dark {
    background: linear-gradient(135deg, rgba(52, 58, 64, 0.1), rgba(35, 39, 43, 0.1));
    color: #1c1e21;
    border: 1px solid rgba(52, 58, 64, 0.3);
}

.alert-dark::before {
    background: linear-gradient(135deg, #343a40, #23272b);
}

/* Responsividade para order-success */
@media (max-width: 768px) {
    .order-success-header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }

    .order-success-header h1 {
        font-size: 2rem;
    }

    .order-success-header .status-icon {
        font-size: 3rem;
    }

    .order-success-card {
        margin-bottom: 1.5rem;
    }

    .order-success-card .card-header {
        padding: 1rem 1.5rem;
    }

    .order-success-card .card-body {
        padding: 1.5rem;
    }

    .confirmation-code {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .qr-code-container {
        margin-top: 1rem;
    }

    .d-grid.gap-3 {
        gap: 0.75rem !important;
    }
}

@media (max-width: 576px) {
    .order-summary-section .row {
        flex-direction: column;
        text-align: center;
    }

    .order-summary-section .col-md-4 {
        margin-bottom: 1rem;
    }

    .order-item .row {
        flex-direction: column;
        text-align: center;
    }

    .order-item .col-md-8,
    .order-item .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Estados de focus personalizados */
.btn:focus {
    box-shadow: 0 0 0 3px rgba(238, 172, 31, 0.2);
}

.order-card:focus-within,
.order-success-card:focus-within {
    box-shadow: 0 12px 40px rgba(238, 172, 31, 0.2);
}