/* ======================================================
   Tracking Details
   Design System
   ====================================================== */

/* Variáveis */
:root{
    --primary:#0d3b66;
    --primary-dark:#082947;
    --secondary:#1f6feb;
    --accent:#ff8a00;
    --success:#28a745;
    --danger:#dc3545;
    --background:#f5f7fb;
    --white:#ffffff;
    --border:#e6eaf0;
    --text:#24324a;
    --text-light:#6b7280;
    --radius:18px;
    --shadow:0 15px 35px rgba(0,0,0,.08);
}

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

body{
    background:var(--background);
    font-family:'Poppins',sans-serif;
    color:var(--text);
}

/* Header */
.tracking-header{
    background:linear-gradient(135deg,#0d3b66,#1f6feb);
    color:#fff;
    padding:45px 0;
}

/* Container */
.container{
    width:min(1180px,95%);
    margin:auto;
}

/* Cards */
.summary-card,
.events-card,
.card{
    background:#fff;
    border-radius:18px;
    box-shadow:var(--shadow);
    border:none;
}

/* Progress */
.progressbar{
    display:flex;
    justify-content:space-between;
    list-style:none;
    margin:40px 0;
}

.progressbar li{
    flex:1;
    position:relative;
    text-align:center;
    font-weight:600;
}

.progressbar li::before{
    content:"";
    width:20px;
    height:20px;
    display:block;
    margin:auto;
    border-radius:50%;
    background:#d1d5db;
    border:4px solid #fff;
}

.progressbar li.active::before{
    background:var(--accent);
}

.progressbar li::after{
    content:"";
    position:absolute;
    top:9px;
    left:50%;
    width:100%;
    height:3px;
    background:#d1d5db;
    z-index:-1;
}

.progressbar li:last-child::after{
    display:none;
}

.progressbar li.active::after{
    background:var(--accent);
}

/* ======================================================
   TIMELINE
====================================================== */

.events-card{
    padding:35px;
    border-radius:20px;
}

.events-card h3{
    display:flex;
    align-items:center;
    gap:12px;
    color:var(--primary);
    margin-bottom:30px;
    font-size:24px;
    font-weight:700;
}

.timeline{
    position:relative;
    padding-left:35px;
}

.timeline::before{
    content:"";
    position:absolute;
    left:17px;
    top:0;
    bottom:0;
    width:3px;
    background:#dbe5f2;
}

.timeline-item{
    position:relative;
    margin-bottom:35px;
}

.timeline-item:last-child{
    margin-bottom:0;
}

.timeline-dot{
    position:absolute;
    left:-35px;
    top:2px;
    width:36px;
    height:36px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--secondary),var(--primary));
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 8px 20px rgba(31,111,235,.30);
}

.timeline-content{
    background:#fff;
    border-radius:16px;
    padding:22px 24px;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
    transition:.30s;
}

.timeline-content:hover{
    transform:translateY(-3px);
}

.timeline-content h5{
    color:var(--primary);
    margin-bottom:6px;
    font-weight:600;
}

.timeline-content p{
    color:var(--text-light);
    margin-bottom:6px;
}

.timeline-content small{
    color:#9aa4b2;
}

.timeline-note{
    margin-top:15px;
    padding:14px;
    border-radius:12px;
    background:#f7f9fc;
    border-left:4px solid var(--secondary);
}

/* Hover */
.table-hover tbody tr:hover{
    background:#eef5ff;
}

/* Status */
.badge-success{
    background:#d1fae5;
    color:#065f46;
}

.badge-warning{
    background:#fef3c7;
    color:#92400e;
}

.badge-danger{
    background:#fee2e2;
    color:#991b1b;
}

/* Responsivo */
@media(max-width:992px){

    .summary-card{
        grid-template-columns:1fr;
    }

    .progressbar{
        flex-direction:column;
        gap:20px;
    }

}

@media(max-width:768px){

    .tracking-header{
        text-align:center;
    }

    .events-card{
        padding:20px;
        overflow:auto;
    }

/* ======================================================
   INFO CARDS
====================================================== */

.info-card{
    background:#fff;
    border-radius:20px;
    padding:28px;
    box-shadow:var(--shadow);
    transition:.30s;
    height:100%;
}

.info-card:hover{
    transform:translateY(-6px);
}

.card-icon{
    width:58px;
    height:58px;
    border-radius:14px;
    background:linear-gradient(135deg,var(--secondary),var(--primary));
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:24px;
    margin-bottom:20px;
}

.info-card span{
    display:block;
    font-size:13px;
    color:var(--text-light);
    margin-bottom:6px;
}

.info-card strong{
    display:block;
    color:var(--primary);
    font-size:20px;
    font-weight:700;
}
/* ======================================================
   SIDEBAR
====================================================== */

.tracking-side-card{
    border:none;
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow);
}

.tracking-side-card h4{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    padding:20px 25px;
    margin:0;
    font-size:20px;
}

.tracking-side-card .list-group-item{
    border:none;
    border-bottom:1px solid #edf2f7;
    padding:18px 24px;
}

.tracking-side-card .list-group-item:last-child{
    border-bottom:none;
}
/* ======================================================
   STATUS
====================================================== */

.status-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 16px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}

.status-success{
    background:#d1fae5;
    color:#065f46;
}

.status-warning{
    background:#fef3c7;
    color:#92400e;
}

.status-danger{
    background:#fee2e2;
    color:#991b1b;
}

.status-info{
    background:#dbeafe;
    color:#1d4ed8;
}
/* ======================================================
   ERROR PAGE
====================================================== */

.error-card{
    max-width:600px;
    margin:auto;
    background:#fff;
    border-radius:24px;
    padding:60px;
    text-align:center;
    box-shadow:var(--shadow);
}

.error-icon{
    width:90px;
    height:90px;
    border-radius:50%;
    background:#eef5ff;
    color:var(--secondary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:42px;
    margin:0 auto 30px;
}
/* ======================================================
   RESPONSIVO
====================================================== */

@media (max-width:991px){

    .tracking-header{
        text-align:center;
    }

    .progressbar{
        flex-direction:column;
        gap:25px;
    }

    .progressbar li::after{
        display:none;
    }

    .timeline{
        padding-left:25px;
    }

    .timeline-dot{
        left:-25px;
    }

    .events-card{
        margin-top:30px;
    }

}

@media (max-width:768px){

    .info-card{
        padding:22px;
    }

    .events-card{
        padding:22px;
    }

    .timeline-content{
        padding:18px;
    }

    .tracking-side-card{
        margin-top:25px;
    }
