/* =========================
   TRACK REPAIR PAGE
========================= */

.container-track {
    width: min(1000px, 92%);
    margin: 130px auto 80px;
}

.card {
    background: rgba(22, 41, 59, .75);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 35px;
    box-shadow: var(--shadow);
}

.card h1 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 30px;
    color: var(--white);
}

/* =========================
   SEARCH BOX
========================= */

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
}

.search-box input {
    flex: 1;
    height: 58px;
    border: none;
    outline: none;
    border-radius: 14px;
    padding: 0 18px;
    background: var(--dark-light);
    color: var(--white);
    border: 1px solid var(--border);
    transition: .3s;
}

.search-box input::placeholder {
    color: var(--gray);
}

.search-box input:focus {
    border-color: var(--primary);
}

.search-box button {
    min-width: 140px;
    border: none;
    cursor: pointer;
    border-radius: 14px;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    font-size: 15px;
    transition: .3s;
}

.search-box button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* =========================
   REQUEST INFO
========================= */

.info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.item {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    transition: .3s;
}

.item:hover {
    transform: translateY(-3px);
}

.item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 14px;
}

.item {
    color: var(--white);
}

/* =========================
   PROBLEM BOX
========================= */

.problem {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 35px;
}

.problem strong {
    display: block;
    margin-bottom: 12px;
    color: var(--primary);
}

.problem p {
    color: var(--gray);
    line-height: 2;
}

/* =========================
   TIMELINE
========================= */

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.step {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 10px;
    text-align: center;
    color: var(--gray);
    transition: .3s;
    font-weight: 600;
}

.step.current {
    background: rgba(0, 229, 255, .12);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 20px rgba(0, 229, 255, .15);
}

.step.done {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    font-weight: 700;
}

/* =========================
   STATUS COLORS
========================= */

.status-received {
    color: #60a5fa;
}

.status-inspection {
    color: #facc15;
}

.status-repairing {
    color: #fb7185;
}

.status-completed {
    color: #4ade80;
}

.status-delivered {
    color: #22c55e;
}

.status-cancelled {
    color: #ef4444;
}

/* =========================
   NOT FOUND
========================= */

.not-found {
    margin-top: 25px;
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, .3);
    background: rgba(239, 68, 68, .12);
    color: #fca5a5;
}

/* =========================
   SUCCESS MESSAGE
========================= */

.success-box {
    margin-top: 25px;
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, .3);
    background: rgba(34, 197, 94, .12);
    color: #86efac;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px) {

    .container-track {
        margin-top: 110px;
    }

    .card {
        padding: 20px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
        height: 55px;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .item {
        padding: 15px;
    }
}

/* =========================
   SMALL DEVICES
========================= */

@media(max-width:480px) {

    .card h1 {
        font-size: 1.6rem;
    }

    .search-box input {
        height: 52px;
    }

    .search-box button {
        height: 52px;
    }
}