/* ============================================================
   IMPORALIA CLIENT PORTAL — Custom Styles
   ============================================================ */

/* Brand accent */
:root {
    --portal-orange: #f59e0b;
    --portal-navy:   #0B1F3A;
}

/* Sidebar brand */
.sidebar-brand .brand-text span {
    color: var(--portal-orange);
}

/* Tracking timeline */
.tracking-timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: #dee2e6;
}

.tracking-timeline .tl-item {
    position: relative;
    padding: 0 0 1.5rem 52px;
}

.tracking-timeline .tl-item:last-child {
    padding-bottom: 0;
}

.tracking-timeline .tl-dot {
    position: absolute;
    left: 10px;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: #6c757d;
    z-index: 1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #dee2e6;
}

.tracking-timeline .tl-item.done .tl-dot {
    background: #198754;
    color: #fff;
    box-shadow: 0 0 0 2px #198754;
}

.tracking-timeline .tl-item.active .tl-dot {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 0 0 2px #f59e0b;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 2px #f59e0b; }
    50%       { box-shadow: 0 0 0 5px rgba(245,158,11,.3); }
}

.tracking-timeline .tl-label {
    font-weight: 600;
    font-size: .88rem;
    line-height: 1.2;
    margin-bottom: .15rem;
}

.tracking-timeline .tl-item.done .tl-label {
    color: #198754;
}

.tracking-timeline .tl-item.active .tl-label {
    color: #b45309;
}

.tracking-timeline .tl-item.pending .tl-label {
    color: #adb5bd;
}

.tracking-timeline .tl-meta {
    font-size: .78rem;
    color: #6c757d;
}

/* Stat cards mini */
.portal-stat {
    border-left: 4px solid transparent;
}
.portal-stat.stat-active     { border-color: #f59e0b; }
.portal-stat.stat-delivered  { border-color: #198754; }
.portal-stat.stat-total      { border-color: #0d6efd; }

/* Step form */
.step-form .form-step { display: none; }
.step-form .form-step.active { display: block; }

/* Status badge colour helpers (not in AdminLTE by default) */
.badge-submitted      { background: #6c757d; color:#fff; }
.badge-reviewing      { background: #0dcaf0; color:#000; }
.badge-sourcing       { background: #0d6efd; color:#fff; }
.badge-freight_booked { background: #6610f2; color:#fff; }
.badge-in_transit     { background: #ffc107; color:#000; }
.badge-customs        { background: #fd7e14; color:#fff; }
.badge-delivered      { background: #198754; color:#fff; }
.badge-closed         { background: #343a40; color:#fff; }

/* Auth pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--portal-navy);
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-logo .logo-mark {
    font-size: 2rem;
    color: var(--portal-orange);
}

.auth-logo .logo-text {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--portal-navy);
}

.auth-logo .logo-sub {
    font-size: .82rem;
    color: #6c757d;
    margin-top: .15rem;
}
