/* ========== RESET E CONFIGURAÇÕES GERAIS ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* ========== HEADER ========== */
header {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
}

.topo {
    width: 100%;
    display: flex;
    align-items: flex-start;
    position: relative;
    min-height: 90px;
}

.logo-esquerda {
    cursor: pointer;
    transition: opacity 0.3s;
    height: auto;
    max-height: 90px;
	
	flex-shrink: 0;       /* Impede que o logo seja esmagado pelo banner */
    position: relative;   /* Habilita o uso de camadas (z-index) */
    z-index: 10;          /* Força o logo a ficar EM CIMA do banner */
    background-color: white;
}

.logo-esquerda:hover {
    opacity: 0.9;
}

.tubos {
    flex: 1;
    height: 90px;
    object-fit: cover;
}

.banner-extend {
    flex: 2;
    object-fit: cover;
    height: 90px;
}

.texto-fixo {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: white;
    font-size: 12px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    z-index: 10;
    font-weight: 500;
}

/* ========== MENU LATERAL ========== */
.menu-wrapper {
    position: fixed;
    top: 90px;
    left: 0;
    width: 250px;
    height: calc(100% - 90px);
    background-color: #ffffff;
    border-right: 1px solid #ddd;
    z-index: 10;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sidebar a {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    color: #1a1463;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar a:hover {
    background-color: #1a1463;
    color: #ffffff;
}

.sidebar a i {
    width: 20px;
    text-align: center;
}

/* ========== MAIN CONTENT ========== */
main {
    margin-left: 250px;
    padding: 20px;
    margin-top: 90px;
    min-height: calc(100vh - 90px);
    transition: margin-left 0.3s;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #1a1463;
    gap: 20px;
}

.loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

.loading p {
    margin-top: 10px;
    font-size: 18px;
    color: #666;
}

.filtros-busca{
    display:flex;
    gap:10px;
    margin:15px 0;
}


.filtros-busca input{
padding:8px 10px;
border:1px solid #ccc;
border-radius:6px;
font-size:14px;
}



.filtros-busca input:focus{
    border-color: #1a1463;
    outline: none;
}


.busca-itens-pedido{
margin:15px 0 25px 0;
}

.busca-itens-pedido input{
width:100%;
padding:10px 12px;
border:1px solid #ccc;
border-radius:6px;
font-size:14px;
}
/* ========== CONTAINERS PRINCIPAIS ========== */
.pagina-inicial,
.rastreamento-container,
.lista-pedidos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.5s ease-in;
}

/* ========== TIPOGRAFIA ========== */
h1, h2, h3, h4 {
    color: #1a1463;
    font-weight: 600;
}

h1 {
    font-size: 28px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ========== BOTÕES ========== */
.btn-rastrear,
.btn-voltar,
.btn-meus-pedidos {
    background-color: #1a1463;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    font-size: 16px;
}

.btn-rastrear:hover,
.btn-voltar:hover,
.btn-meus-pedidos:hover {
    background-color: #2a1c8c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-rastrear:active,
.btn-voltar:active,
.btn-meus-pedidos:active {
    transform: translateY(0);
}

.btn-ver-detalhes,
.btn-rastrear-direto {
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    min-width: 100px;
}

.btn-ver-detalhes {
    background-color: transparent;
    color: #1a1463;
    border: 2px solid #1a1463;
}

.btn-ver-detalhes:hover {
    background-color: #1a1463;
    color: white;
    transform: translateY(-2px);
}

.btn-rastrear-direto {
    background-color: #abcb60;
    color: #1a1463;
    border: 2px solid #abcb60;
}

.btn-rastrear-direto:hover {
    background-color: #1a1463;
    color: white;
    border-color: #1a1463;
    transform: translateY(-2px);
}

.voltar-lista {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    text-decoration: none;
}

.voltar-lista:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* ========== BUSCA RASTREAMENTO ========== */
.busca-rastreamento {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.input-group input:focus {
    border-color: #1a1463;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 20, 99, 0.1);
}

.info-rastreio {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-rastreio i {
    margin-top: 2px;
}
/*====

/* Adicione ao seu arquivo CSS */
.acoes-coluna {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    min-width: 120px;
}

.acoes-coluna button {
    width: 100%;
    min-width: 110px;
    padding: 8px 12px;
    margin: 2px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
}





/* Ajustes para responsividade */
@media (max-width: 768px) {
    .acoes-coluna {
        min-width: 100px;
    }
    
    .acoes-coluna button {
        min-width: 90px;
        padding: 6px 8px;
        font-size: 12px;
    }
}

/* Para garantir que a tabela tenha espaço suficiente */
.tabela-pedidos table th:nth-child(7) {
    width: 140px;
    min-width: 140px;
}


/* ========== ERROS ========== */
.erro-rastreio {
    background-color: #ffeaea;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.erro-rastreio.ativo {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.erro-rastreio i {
    color: #e74c3c;
    margin-top: 2px;
}

/* ========== STATUS PEDIDO ========== */
.status-pedido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
    gap: 20px;
}

.status-info h3 {
    margin-bottom: 5px;
    color: #1a1463;
}

.status-info p {
    color: #666;
    margin-bottom: 0;
}

.status-badge {
    background-color: #abcb60;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== TIMELINE ========== */
.timeline-rastreio {
    position: relative;
    padding: 0; 
    margin-top: 10px; 
}

.timeline-rastreio::before {
    content: '';
    position: absolute;
    left: 37px; 
    
    
    top: 30px; 
    
    bottom: 0; 
    width: 3px;
    background-color: #e0e0e0;
    z-index: 1;
}



.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
	margin-left:8px;
	
}

.timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline-icon i {
    font-size: 24px;
    color: #1a1463;
}

.timeline-item.concluido .timeline-icon {
    background-color: #abcb60;
}

.timeline-item.concluido .timeline-icon i {
    color: white;
}

.timeline-item.atual .timeline-icon {
    background-color: #1a1463;
    animation: pulse 2s infinite;
}

.timeline-item.atual .timeline-icon i {
    color: white;
}

.timeline-content {
    flex: 1;
    padding-top: 5px;
}

.timeline-content h4 {
    color: #1a1463;
    margin-bottom: 5px;
    font-size: 18px;
}

.timeline-content p {
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

.timeline-data {
    font-size: 13px;
    color: #888;
    font-style: italic;
}


/* ========== DETALHES PEDIDO ========== */
.detalhes-pedido {
    background-color: #f9f9ff;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #e0e0ff;
}

.grid-detalhes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.detalhe-item {
    margin-bottom: 15px;
}

.detalhe-item label {
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.detalhe-item span {
    color: #333;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* ========== LISTA DE PEDIDOS ========== */
.cabecalho-lista {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1a1463;
    flex-wrap: wrap;
    gap: 15px;
}

.controles-lista {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filtro-pedidos {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background-color: white;
    transition: border-color 0.3s;
    font-family: inherit;
    min-width: 200px;
}

.filtro-pedidos:focus {
    border-color: #1a1463;
    outline: none;
}

/* ========== TABELA ========== */
.tabela-pedidos {
    width: 100%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.tabela-pedidos table {
    width: 100%;
    border-collapse: collapse;
}

.tabela-pedidos th {
    background-color: #1a1463;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tabela-pedidos td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 14px;
}

.tabela-pedidos tr:hover {
    background-color: #f9f9ff;
}

.tabela-pedidos tr:last-child td {
    border-bottom: none;
}

/* ========== BADGES DE STATUS ========== */
.badge-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.3px;
}

.badge-pendente {
    background-color: #f39c12;
    color: white;
}

.badge-processando {
    background-color: #3498db;
    color: white;
}

.badge-transito {
    background-color: #9b59b6;
    color: white;
}

.badge-entregue {
    background-color: #2ecc71;
    color: white;
}

.badge-cancelado {
    background-color: #e74c3c;
    color: white;
}

/* ========== INFO CLIENTE ========== */
.info-cliente {
    background-color: #f0f4ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #1a1463;
}

.info-cliente h3 {
    color: #1a1463;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-cliente p {
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.total-pedidos {
    font-size: 16px;
    font-weight: 600;
    color: #1a1463;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.total-pedidos i {
    font-size: 20px;
}

.total-pedidos span {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(26, 20, 99, 0.1);
    border-radius: 4px;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* ========== CHAT ========== */
.chat-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #1a1463;
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    transition: all 0.3s ease;
}

.chat-floating-btn:hover {
    background-color: #2a1c8c;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* ========== ESTADOS VAZIOS ========== */
.sem-resultado {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sem-resultado i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.sem-resultado h3 {
    color: #666;
    margin-bottom: 10px;
}

/* ========== BOTÕES DE AÇÃO ========== */
.botoes-acoes {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== ANIMAÇÕES ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 20, 99, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(26, 20, 99, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 20, 99, 0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 1200px) {
    .menu-wrapper {
        transform: translateX(-100%);
    }
    
    main {
        margin-left: 0;
        margin-top: 100px;
    }
    
    .menu-wrapper.mobile-open {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: block;
        position: fixed;
        top: 100px;
        left: 10px;
        z-index: 100;
        background: #1a1463;
        color: white;
        border: none;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    header .topo {
        flex-wrap: wrap;
        height: auto;
        min-height: 80px;
    }
    
    .logo-esquerda {
        width: 250px;
    }
    
    .tubos, .banner-extend {
        display: none;
    }
    
    .texto-fixo {
        position: relative;
        text-align: center;
        width: 100%;
        right: auto;
        bottom: auto;
        padding: 5px;
        background: rgba(0,0,0,0.8);
        color: white;
    }
    
    main {
        margin-top: 80px;
        padding: 15px;
    }
    
    .pagina-inicial,
    .rastreamento-container,
    .lista-pedidos-container {
        padding: 10px;
    }
    
    .busca-rastreamento {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input,
    .input-group button {
        width: 100%;
    }
    
    .status-pedido {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .grid-detalhes {
        grid-template-columns: 1fr;
    }
    
    .cabecalho-lista {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .controles-lista {
        width: 100%;
        flex-direction: column;
    }
    
    .filtro-pedidos {
        width: 100%;
    }
    
    .tabela-pedidos {
        overflow-x: auto;
        display: block;
    }
    
    .tabela-pedidos table {
        min-width: 700px;
    }
    
    .btn-ver-detalhes,
    .btn-rastrear-direto {
        min-width: auto;
        width: 100%;
        margin-bottom: 5px;
    }
    
    .botoes-acoes {
        flex-direction: column;
    }
    
    .botoes-acoes button {
        width: 100%;
    }
    
    .total-pedidos {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 10px;
        max-height: 85vh;
    }
    
    .chat-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .btn-rastrear,
    .btn-voltar,
    .btn-meus-pedidos {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    
    .timeline-icon i {
        font-size: 20px;
    }
    
    .status-badge {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .badge-status {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* ========== UTILITÁRIOS ========== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.hidden {
    display: none !important;
}

/* ========== SCROLLBAR PERSONALIZADA ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
    outline: 2px solid #1a1463;
    outline-offset: 2px;
}

/* ========== PRINT STYLES ========== */
@media print {
    .menu-wrapper,
    .chat-floating-btn,
    .btn-rastrear,
    .btn-voltar,
    .btn-meus-pedidos,
    .btn-ver-detalhes,
    .btn-rastrear-direto {
        display: none !important;
    }
    
    main {
        margin-left: 0 !important;
        margin-top: 0 !important;
    }
    
    header {
        position: static !important;
    }
    
    body {
        background: white !important;
    }
}

/* FOOTER QUE SE MOVE COM O CONTEÚDO */
.footer {
    background: linear-gradient(135deg, #1a1463 0%, #0d0a3a 100%);
    color: white;
    padding: 30px 20px;
    margin-top: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 90;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    left: 0;
}

/* ESTADO INICIAL - FOOTER CENTRALIZADO */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* QUANDO O MENU ESTÁ FIXO EM DESKTOP */
@media (min-width: 1201px) {
    /* Footer se move para direita junto com o conteúdo */
    body:has(.sidebar) .footer {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
    
    /* Alternativa usando seletor de irmão */
    .sidebar ~ .footer {
        margin-left: 250px;
        width: calc(100% - 250px);
        transition: margin-left 0.3s ease, width 0.3s ease;
    }
}

/* LAYOUT DO CONTEÚDO DO FOOTER */
.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    padding: 0 15px;
}

.footer-section h5 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.footer-section h5 i {
    color: #4dabf7;
    font-size: 20px;
}

.footer-section p {
    color: #d0d0ff;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 15px;
}

.footer-section p i {
    margin-right: 8px;
    color: #a0a0ff;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.copyright {
    color: #a0a0ff;
    font-size: 14px;
    margin: 0;
}

/* RESPONSIVIDADE PARA MOBILE */
@media (max-width: 1200px) {
    .footer {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 25px 15px;
    }
    
    .footer-sections {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 20px 15px;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-section {
        padding: 0;
        text-align: center;
    }
    
    .footer-section h5 {
        justify-content: center;
        font-size: 16px;
    }
    
    .footer-section p {
        font-size: 14px;
    }
    
    .footer-bottom {
        padding-top: 15px;
        margin-top: 15px;
    }
    
    .copyright {
        font-size: 13px;
    }
}

/* Classes de estado para JavaScript */
.footer.com-menu {
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.footer.sem-menu {
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Garantir que o footer não fique atrás do menu */
.sidebar {
    z-index: 1000;
}

.footer {
    z-index: 90;
}

/* Ajuste para quando o menu mobile está aberto */
@media (max-width: 1200px) {
    .sidebar.mobile-open ~ .footer {
        transform: translateX(250px);
        width: calc(100% - 250px);
        overflow: hidden;
        position: relative;
    }
}

/* Transições suaves */
.footer,
main,
.sidebar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== CHAT FLUTUANTE ========== */
.chat-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a1463 0%, #4dabf7 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(26, 20, 99, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(26, 20, 99, 0.4);
}

.chat-floating-btn:active {
    transform: scale(0.95);
}

/* ========== MODAL DE CHAT ========== */
.modal-chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-chat-container {
    width: 95%;
    max-width: 550px;
    height: 90vh; /* Aumentado significativamente para 90vh (era 85vh) */
    max-height: 900px; /* Aumentado para 900px (era 850px) */
    min-height: 540px; /* Adicionado min-height para garantir altura mínima */
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-chat-header {
    background: linear-gradient(135deg, #1a1463 0%, #0d0a3a 100%);
    color: white;
    padding: 20px 25px; /* Aumentado ainda mais o padding vertical */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 60px; /* Altura mínima para o header */
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 40px;        /* tamanho parecido com ícone */
    height: 40px;
    border-radius: 50%; /* deixa redonda */
    object-fit: cover;  /* evita distorção */
}

.chat-header-left i {
    font-size: 34px; /* Um pouco maior */
    color: #4dabf7;
}

.chat-header-left h4 {
    margin: 0;
    font-size: 22px; /* Aumentado para 22px */
    font-weight: 600;
	color: #e3e3e3;
}

#chatAgentStatus {
    margin: 0;
    font-size: 14px; /* Aumentado para 14px */
    opacity: 0.8;
	color: #e3e3e3;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px; /* Aumentado para 24px */
    cursor: pointer;
    width: 44px; /* Aumentado para 44px */
    height: 44px; /* Aumentado para 44px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
/* ========== CORPO DO CHAT ========== */
.modal-chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

.chat-welcome {
    margin-bottom: 20px;
}

/* Mensagens */
.user-message, .assistant-message {
    display: flex;
    margin-bottom: 20px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    justify-content: flex-end;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1463 0%, #4dabf7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    margin-right: 0;
    margin-left: 10px;
    order: 2;
}

.message-content {
    max-width: 70%;
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
	
}

.user-message .message-content {
    background: #1a1463;
    color: white;
    border-bottom-right-radius: 4px;
}

.assistant-message .message-content {
    border-bottom-left-radius: 4px;
    background: white;
}

.message-sender {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    
}

.user-message .message-sender {
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
	
}

.message-content small {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 12px;
}


.user-message .message-content small {
    color: rgba(255, 255, 255, 0.8);
}

/* Sugestões rápidas */
.quick-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-suggestion {
    background: #f0f4ff;
    border: 1px solid #d1d9ff;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: #1a1463;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.quick-suggestion:hover {
    background: #1a1463;
    color: white;
    border-color: #1a1463;
}

/* ========== ENTRADA DO CHAT ========== */

.chat-input-container {
    /* Mudei de "2px 0px" para "15px 20px" */
    /* 15px em cima/baixo e 20px na esquerda/direita */
    padding: 15px 20px; 
    border-top: 1px solid #eee;
    background: white;
}

.chat-input-container .input-group {
    display: flex;
    gap: 10px;
    margin: 0; /* Removi o "50px" que estava aqui, pois ele atrapalha o layout */
}


.chat-input-container input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    transition: border 0.3s;
}

.chat-input-container input:focus {
    outline: none;
    border-color: #1a1463;
    box-shadow: 0 0 0 3px rgba(26, 20, 99, 0.1);
}

.chat-input-container .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1463;
    border: none;
}

.chat-input-container .btn:hover {
    background: #0d0a3a;
}

.chat-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.btn-action {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-action:hover {
    color: #1a1463;
    background: #f0f4ff;
}

/* ========== RODAPÉ DO CHAT ========== */
.modal-chat-footer {
    padding: 10px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

#chatTypingIndicator {
    color: #1a1463;
    font-weight: 600;
}

#chatTypingIndicator i {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-agent-config select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    background: white;
    color: #333;
}

.chat-agent-config select:focus {
    outline: none;
    border-color: #1a1463;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    .modal-chat-container {
        width: 95%;
        height: 90vh;
        max-height: none;
    }
    
    .chat-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .message-content {
        max-width: 80%;
    }
    
    .quick-suggestions {
        flex-direction: column;
    }
    
    .quick-suggestion {
        width: 100%;
        justify-content: center;
    }
}

/* Scrollbar personalizada */
.chat-history::-webkit-scrollbar {
    width: 6px;
}

.chat-history::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-history::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-history::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ========== ANIMAÇÕES ========== */
.message-typing {
    display: inline-block;
}

.message-typing span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a1463;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.message-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.message-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}
/* ========== TIMELINE HORIZONTAL ========== */
.timeline-horizontal-container {
    position: relative;
    margin: 30px 0;
    padding: 20px 0;
    overflow-x: auto;
    overflow-y: visible;
}

.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    min-width: 600px;
    padding: 0 10px;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    padding: 0 5px;
}

.timeline-step:hover {
    transform: translateY(-5px);
}

.timeline-step-icon {
    width: 60px;
    height: 60px;
    background: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline-step-icon i {
    font-size: 24px;
    color: #1a1463;
}

.timeline-step.concluido .timeline-step-icon {
    background: #abcb60;
}

.timeline-step.concluido .timeline-step-icon i {
    color: white;
}

.timeline-step.atual .timeline-step-icon {
    background: #1a1463;
    animation: pulse 2s infinite;
}

.timeline-step.atual .timeline-step-icon i {
    color: white;
}

.timeline-step-content {
    text-align: center;
}

.timeline-step-status {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.timeline-step-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.3;
}

.timeline-step-date {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    font-style: italic;
}

.timeline-step-location {
    font-size: 10px;
    color: #1a1463;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.timeline-step-location i {
    font-size: 10px;
}

/* Barra de progresso */
.timeline-progress-bar {
    position: relative;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 20px 50px 0;
    overflow: hidden;
}

.timeline-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #abcb60, #1a1463);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Responsividade para timeline horizontal */
@media (max-width: 768px) {
    .timeline-horizontal-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .timeline-horizontal {
        min-width: 500px;
    }
    
    .timeline-step {
        min-width: 100px;
    }
    
    .timeline-step-icon {
        width: 45px;
        height: 45px;
    }
    
    .timeline-step-icon i {
        font-size: 18px;
    }
    
    .timeline-step-status {
        font-size: 11px;
    }
    
    .timeline-step-desc {
        font-size: 10px;
    }
    
    .timeline-progress-bar {
        margin: 15px 20px 0;
    }
}

@media (max-width: 480px) {
    .timeline-step {
        min-width: 80px;
    }
    
    .timeline-step-icon {
        width: 35px;
        height: 35px;
    }
    
    .timeline-step-icon i {
        font-size: 14px;
    }
}

.sem-timeline {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
    margin: 20px 0;
}