/* ==========================================
   TEMA DOLPHIN - ABA DE RASTREAMENTO DE PEDIDO
   ========================================== */

:root {
    --bg-principal: #0b111e;      /* Azul escuro profundo (Fundo) */
    --bg-card: #151f32;           /* Azul navy para os painéis */
    --cor-dolphin: #00d2ff;       /* Azul Dolphin (Neon Principal) */
    --cor-sucesso: #00ff87;       /* Verde Neon para status Concluído */
    --texto-claro: #f3f4f6;       /* Branco fosco para textos */
    --texto-mutado: #9ca3af;      /* Cinza para textos secundários */
    --borda: #24344d;             /* Cor das bordas e linhas desativadas */
}

/* Container Geral da Aba de Consulta */
.consulta-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--borda);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--texto-claro);
    text-align: center;
}

.consulta-container h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--texto-claro);
}

.consulta-container > p {
    color: var(--texto-mutado);
    font-size: 14px;
    margin-bottom: 25px;
}

/* Caixa de Pesquisa (Input + Botão) */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 14px 18px;
    background-color: var(--bg-principal);
    border: 1px solid var(--borda);
    border-radius: 8px;
    color: var(--texto-claro);
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--cor-dolphin);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.search-box button {
    padding: 0 24px;
    background-color: var(--cor-dolphin);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: #00b4dc;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
    transform: translateY(-1px);
}

.search-box button:disabled {
    background-color: var(--texto-mutado);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Texto de Mensagem da API */
.mensagem-status {
    font-size: 14px;
    font-weight: 500;
    color: var(--cor-dolphin);
    min-height: 20px;
    margin-bottom: 30px;
}

/* ==========================================
   ESTILIZAÇÃO DO STEPPER (LINHA DO TEMPO)
   ========================================== */

.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 35px;
    padding: 0 20px;
}

/* Linha horizontal cinza de fundo que conecta os passos */
.stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 4px;
    background-color: var(--borda);
    z-index: 1;
}

/* Cada Bloco de Passo */
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

/* A bolinha numérica */
.step .bullet {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-principal);
    border: 3px solid var(--borda);
    color: var(--texto-mutado);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* O texto descritivo abaixo da bolinha */
.step span {
    font-size: 13px;
    color: var(--texto-mutado);
    font-weight: 500;
    transition: color 0.4s ease;
}

/* ------------------------------------------
   ESTADOS ATIVOS (QUANDO A API ACENDE O PASSO)
   ------------------------------------------ */

/* Qualquer passo ativo ganha texto claro */
.step.active span {
    color: var(--texto-claro);
}

/* Passos 1 e 2 ativos (Aguardando / Processando) -> Tema Dolphin Azul */
.step.active .bullet {
    border-color: var(--cor-dolphin);
    background-color: var(--cor-dolphin);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

/* Passo 3 ativo (Concluído) -> Muda para o Verde de Sucesso */
#passo-concluido.active .bullet {
    border-color: var(--cor-sucesso);
    background-color: var(--cor-sucesso);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.4);
}

/* ==========================================
   PAINEL DE DETALHES DAS COINS
   ========================================== */

.painel-detalhes {
    background-color: var(--bg-principal);
    border: 1px solid var(--borda);
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    text-align: left;
    animation: fadeIn 0.5s ease-out forwards;
}

.painel-detalhes h3 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--cor-dolphin);
    border-bottom: 1px solid var(--borda);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.painel-detalhes p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--texto-mutado);
    display: flex;
    justify-content: space-between; /* Alinha o texto na esquerda e os números na direita */
}

.painel-detalhes strong {
    color: var(--texto-claro);
    font-size: 15px;
}

/* Animação de surgimento do painel */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading dinamico */
/* ==========================================
   ELEMENTOS DO LOADING DA BARRA DE PROGRESSO
   ========================================== */
.progress-container {
    width: 100%;
    height: 12px;
    background-color: #0b111e; /* Fundo escuro da barra */
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #24344d;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%; /* Começa em 0% e o JS aumenta */
    background: linear-gradient(90deg, #00b4dc, #00d2ff);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    transition: width 0.4s ease;
    position: relative;
}

/* Brilho dinâmico correndo pela barra */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: progressoBrilho 1.5s infinite;
}

@keyframes progressoBrilho {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}


/* Responsividade para Celulares */
@media (max-width: 580px) {
    .search-box {
        flex-direction: column;
    }
    .stepper::before {
        display: none; /* Esconde a linha horizontal no mobile */
    }
    .stepper {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding-left: 10px;
    }
    .step {
        flex-direction: row;
        gap: 15px;
    }
    .step .bullet {
        margin-bottom: 0;
    }
}