/* ============================================================
   RASTREAMENTO CONDUSCAMP - ESTILOS GERAIS
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #d4e4f0;
    min-height: 100vh;
    color: #2c3e50;
}

/* ============================================================
   PÁGINA INICIAL - FORMULÁRIO
   ============================================================ */

.rastreio-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 20px 20px;
    background-color: #e8ecf5;
}

/* Imagem de fundo sem transparência */
.rastreio-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/rastreio.png');
    background-size: 75%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Elementos removidos - agora estão na imagem de fundo */
.rastreio-bg,
.rastreio-caminhao,
.rastreio-pin,
.rastreio-pin svg,
.rastreio-pin-line {
    display: none;
}

/* Conteúdo principal */
.rastreio-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
}

/* Hero - Títulos principais */
.rastreio-hero {
    text-align: center;
    margin-bottom: 30px;
}

.rastreio-hero-title {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 15px;
}

.rastreio-hero-light {
    display: block;
    font-weight: 400;
    color: #2c5282;
    letter-spacing: -1px;
    margin-bottom: -20px;
}

.rastreio-hero-bold {
    display: block;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -1px;
}

.rastreio-hero-subtitle {
    font-size: 1.25rem;
    color: #4a6fa5;
    font-weight: 400;
    margin: 0;
}

/* Caixa do formulário */
.rastreio-form-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.rastreio-field {
    margin-bottom: 25px;
}

.rastreio-label {
    display: block;
    font-size: 1rem;
    color: #2c5282;
    margin-bottom: 10px;
}

.rastreio-label strong {
    font-weight: 700;
}

.rastreio-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.rastreio-input:focus {
    outline: none;
    border-color: #5a9fd4;
    background: white;
    box-shadow: 0 0 0 3px rgba(90, 159, 212, 0.1);
}

.rastreio-input::placeholder {
    color: #cbd5e0;
}

.rastreio-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #5a9fd4 0%, #4a8fc7 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(90, 159, 212, 0.3);
}

.rastreio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 159, 212, 0.4);
}

.rastreio-btn:active {
    transform: translateY(0);
}

/* Rodapé */
.rastreio-footer {
    margin-top: 30px;
    text-align: center;
    color: #5a7a9b;
}

.rastreio-company {
    font-size: 1rem;
    margin-bottom: 10px;
}

.rastreio-contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
}

.rastreio-contacts a {
    color: #5a7a9b;
    text-decoration: none;
}

.rastreio-contacts a:hover {
    color: #2c5282;
}

/* ============================================================
   PÁGINA DE RASTREAMENTO - DETALHES
   ============================================================ */

.rastreamento-page {
    background: #f5f8fa;
    padding: 15px;
}

.cc-track {
    max-width: 1280px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cc-track-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.cc-track-back {
    color: #5a9fd4;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.cc-track-back:hover {
    background: #e8f4f8;
}

.cc-track-title {
    font-size: 2.5rem;
    flex: 1;
    text-align: center;
}

.cc-track-title .strong {
    font-weight: 700;
    color: #1e3a5f;
}

.cc-track-title .light {
    font-weight: 400;
    color: #4a6fa5;
}

/* Cards de informação */
.cc-track-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.cc-track-card {
    background: white;
    border: 2px solid #e8ecf1;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.cc-track-card:hover {
    border-color: #d0dbe6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cc-track-ico,
.cc-track-ico-date {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
    flex-shrink: 0;
}

.cc-track-ico img,
.cc-track-ico-date img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: none;
}

.cc-track-label {
    font-size: 0.9rem;
    color: #4a6fa5;
    margin-bottom: 8px;
    font-weight: 500;
}

.cc-track-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a5f;
}

.cc-track-value-status {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.3;
}

/* Tabela de eventos com linha vertical */
.cc-track-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 2px solid #e8ecf1;
    background: white;
}

.cc-track-table {
    width: 100%;
    border-collapse: collapse;
}

.cc-track-table thead {
    background: #1e3a5f;
    color: white;
}

.cc-track-table th {
    padding: 16px 25px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.cc-track-table th:first-child {
    border-radius: 14px 0 0 0;
}

.cc-track-table th:last-child {
    border-radius: 0 14px 0 0;
}

.cc-track-table tbody tr {
    background: #f7f9fc;
    border-bottom: 1px solid #e8ecf1;
}

.cc-track-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.cc-track-table tbody tr:last-child {
    border-bottom: none;
}

.cc-track-table td {
    padding: 14px 25px;
}

/* Coluna de data com linha vertical e pontos */
.cc-track-date {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cc-track-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #9ca3af;
    border: 4px solid #d1d5db;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.cc-track-dot.is-ok {
    background: #10b981;
    border-color: #6ee7b7;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Linha vertical conectando os pontos */
.cc-track-table tbody tr:not(:last-child) .cc-track-date::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 50%;
    width: 2px;
    height: calc(150% - 10px);
    background: #d1d5db;
    z-index: 1;
}

/* Primeira linha - linha começa do ponto */
.cc-track-table tbody tr:first-child .cc-track-date::before {
    top: 50%;
}

.cc-track-date-text {
    font-size: 0.9rem;
    color: #1e3a5f;
    font-weight: 600;
    white-space: nowrap;
}

.cc-track-status {
    color: #1e3a5f;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

/* Mensagem de erro / vazio */
.cc-track-empty {
    text-align: center;
    padding: 60px 20px;
}

.cc-track-empty-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 20px;
}

.cc-track-empty-text {
    font-size: 1.1rem;
    color: #4a6fa5;
    line-height: 1.8;
}

.mt-2 {
    margin-top: 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Desktop grande */
@media (max-width: 1600px) {
    .rastreio-container::before {
        background-size: 80%;
    }
}

@media (max-width: 1400px) {
    .rastreio-container::before {
        background-size: 85%;
    }
}

/* Desktop médio */
@media (max-width: 1200px) {
    .rastreio-container::before {
        background-size: 90%;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .cc-track-cards {
        grid-template-columns: 1fr;
    }
    
    .rastreio-container::before {
        background-size: 100%;
    }
}

/* Tablet pequeno e Mobile grande */
@media (max-width: 768px) {
    .rastreio-container {
        padding: 60px 20px 20px;
    }

    .rastreio-hero {
        margin-bottom: 25px;
    }

    .rastreio-hero-title {
        font-size: 3rem;
        line-height: 0.85;
    }
    
    .rastreio-hero-light {
        margin-bottom: -15px;
    }
    
    .rastreio-hero-subtitle {
        font-size: 1.1rem;
    }

    .rastreio-form-box {
        padding: 30px 20px;
    }
    
    .rastreio-container::before {
        background-size: 140%;
        background-position: center 10%;
    }

    .cc-track {
        padding: 20px;
    }

    .cc-track-title {
        font-size: 1.5rem;
    }

    .cc-track-cards {
        grid-template-columns: 1fr;
    }

    .cc-track-table th,
    .cc-track-table td {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .cc-track-value {
        font-size: 1.3rem;
    }

    .cc-track-value-status {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .rastreio-container {
        padding: 40px 20px 20px;
    }

    .rastreio-hero {
        margin-bottom: 20px;
    }

    .rastreio-hero-title {
        font-size: 2.5rem;
        line-height: 0.85;
    }
    
    .rastreio-hero-light {
        margin-bottom: -12px;
    }
    
    .rastreio-hero-subtitle {
        font-size: 1rem;
    }
    
    .rastreio-container::before {
        background-size: 180%;
        background-position: center 5%;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .rastreio-container {
        padding: 30px 20px 20px;
    }

    .rastreio-hero {
        margin-bottom: 15px;
    }

    .rastreio-hero-title {
        font-size: 2rem;
        line-height: 0.85;
    }
    
    .rastreio-hero-light {
        margin-bottom: -10px;
    }
    
    .rastreio-hero-subtitle {
        font-size: 0.95rem;
    }
    
    .rastreio-container::before {
        background-size: 220%;
        background-position: center 0%;
    }
    
    .rastreio-form-box {
        padding: 25px 15px;
    }
    
    .cc-track-table th,
    .cc-track-table td {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}
