/* ============================================================
   Repair Order Tracking - Timeline & Page Styles
   ============================================================ */

/* ---- Search Page Hero ---- */
.repair-track-hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 60px 0 80px;
    color: #fff;
    margin-top: 80px;
}

.repair-track-result-page {
    margin-top: 80px;
}

.repair-track-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

.repair-search-card {
    margin-top: -40px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ---- Info Card ---- */
.repair-info-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
}

.repair-info-card .card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* ---- Order Info Labels ---- */
.repair-info-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #9aa0ac;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.repair-info-value {
    font-size: 14px;
    color: #212529;
}

/* ---- Status Badge ---- */
.repair-status-badge {
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* ============================================================
   Vertical Timeline
   ============================================================ */
.repair-vtimeline {
    position: relative;
    padding-left: 0;
}

/* Vertical connecting line */
.repair-vtimeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #dee2e6;
    z-index: 0;
}

.repair-vstep {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-left: 50px;
    padding-bottom: 24px;
    min-height: 44px;
}

.repair-vstep.last {
    padding-bottom: 0;
}

/* Dot */
.repair-vstep-dot {
    position: absolute;
    left: 5px;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Done */
.repair-vstep.step-done .repair-vstep-dot {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

/* Current */
.repair-vstep.step-current .repair-vstep-dot {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    animation: pulse-blue 2s infinite;
}

/* Cancelled */
.repair-vstep.step-cancelled .repair-vstep-dot {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* Pending */
.repair-vstep.step-pending .repair-vstep-dot {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #ced4da;
}

/* Content */
.repair-vstep-content {
    flex: 1;
    padding-top: 1px;
}

.repair-vstep-name {
    font-size: 14px;
    font-weight: 600;
    color: #adb5bd;
    line-height: 1.4;
}

.repair-vstep.step-done .repair-vstep-name {
    color: #198754;
}

.repair-vstep.step-current .repair-vstep-name {
    color: #0d6efd;
    font-size: 15px;
}

.repair-vstep.step-cancelled .repair-vstep-name {
    color: #dc3545;
}

.repair-vstep-time {
    font-size: 12px;
    color: #6c757d;
    margin-top: 3px;
}

/* Connecting line fills green up to current step */
.repair-vstep.step-done::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 26px;
    bottom: 0;
    width: 2px;
    background: #198754;
    z-index: 0;
}

.repair-vstep.step-done.last::before {
    display: none;
}

/* Pulse animation */
@keyframes pulse-blue {
    0%   { box-shadow: 0 0 0 0   rgba(13, 110, 253, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(13, 110, 253, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(13, 110, 253, 0);   }
}

/* ---- History Table ---- */
.repair-history-table th {
    background: #f8f9fa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    border-bottom: 1px solid #dee2e6;
}

.repair-history-table td {
    font-size: 13px;
    vertical-align: middle;
    border-color: #f0f0f0;
}

.state-arrow {
    color: #adb5bd;
    font-size: 12px;
    margin: 0 6px;
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
    .repair-track-hero {
        padding: 40px 0 60px;
    }
    .repair-track-hero h1 {
        font-size: 1.6rem;
    }
    .repair-vstep-name {
        font-size: 13px;
    }
}
