/*
 * Dev Geek — dedicated stylesheet for the customer-facing repair status
 * page (Modules/Repair). Written as plain, explicit CSS rather than
 * Tailwind utility classes on purpose: the app's compiled
 * public/css/tailwind/app.css is a purged build that only contains
 * utilities already used elsewhere, so relying on ad-hoc "tw-*" classes
 * here silently breaks (missing rules = no effect, not an error). This
 * file is self-contained and does not depend on that build.
 */

/* ---- top bar ---- */
.repair-topbar-logo {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.repair-topbar-logo img {
    height: 2.5rem;
    object-fit: contain;
}

.repair-topbar-logo .app-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
}

.repair-topbar-right {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.repair-topbar-link {
    color: #fff;
    font-weight: 500;
    font-size: .875rem;
    text-decoration: none;
    white-space: nowrap;
}

.repair-topbar-link:hover {
    color: #fff;
    text-decoration: underline;
}

.repair-topbar-pill {
    border: 2px solid #fff;
    border-radius: 9999px;
    height: 2.5rem;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
}

.repair-lang-select {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: .875rem;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 9999px;
    padding: .375rem .75rem;
    outline: none;
}

.repair-lang-select option {
    color: #000;
}

/* ---- page center ---- */
.repair-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 1rem 3rem;
    box-sizing: border-box;
}

.repair-wrap {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

/* ---- search card ---- */
.repair-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .15), 0 8px 10px -6px rgba(0, 0, 0, .1);
    padding: 2rem;
    box-sizing: border-box;
}

.repair-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}

.repair-icon-badge {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: linear-gradient(to right, #6366f1, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.25rem;
}

.repair-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0;
}

.repair-subtitle {
    font-size: .875rem;
    color: #6b7280;
    margin-top: .25rem;
}

.repair-field {
    margin-bottom: 1.25rem;
}

.repair-field-label {
    display: block;
    font-size: .875rem;
    font-weight: 500;
    color: #111;
    margin-bottom: .5rem;
}

.repair-input-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.repair-input,
.repair-select {
    border: 1px solid #d1d5da;
    outline: none;
    height: 3rem;
    background: transparent;
    border-radius: .5rem;
    padding: 0 .75rem;
    font-weight: 500;
    color: #000;
    box-sizing: border-box;
    font-size: 1rem;
}

.repair-select {
    background: #fff;
    flex: 0 0 auto;
    width: 100%;
}

.repair-input {
    flex: 1 1 220px;
    width: 100%;
}

.repair-input-icon-wrap {
    position: relative;
}

.repair-input-icon-wrap .repair-input {
    padding-left: 2.5rem;
    width: 100%;
}

.repair-input-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.repair-submit {
    width: 100%;
    height: 3rem;
    border: 0;
    border-radius: .75rem;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(to right, #6366f1, #3b82f6);
    cursor: pointer;
}

.repair-submit:hover {
    background: linear-gradient(to right, #4f46e5, #2563eb);
}

/* ---- results ---- */
.repair-results {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.repair-result-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .15), 0 8px 10px -6px rgba(0, 0, 0, .1);
    padding: 1.5rem;
    box-sizing: border-box;
}

.repair-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.repair-result-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    color: #111827;
}

.repair-status-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .75rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
}

.repair-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem 1.5rem;
    font-size: .875rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .repair-detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .repair-detail-grid .span-2 {
        grid-column: span 2;
    }
}

.repair-detail-label {
    color: #6b7280;
}

.repair-detail-value {
    font-weight: 500;
    color: #111827;
}

.repair-activities-title {
    font-size: .75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .5rem;
}

.repair-activities-table-wrap {
    overflow-x: auto;
}

.repair-activities-table {
    width: 100%;
    font-size: .875rem;
    border-collapse: collapse;
}

.repair-activities-table thead tr {
    text-align: left;
    font-size: .75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    border-bottom: 1px solid #f3f4f6;
}

.repair-activities-table th,
.repair-activities-table td {
    padding: .5rem .75rem .5rem 0;
}

.repair-activities-table tbody tr {
    border-bottom: 1px solid #f9fafb;
}

.repair-activities-table tbody tr:last-child {
    border-bottom: 0;
}

.repair-activities-empty {
    text-align: center;
    padding: 1rem;
    color: #9ca3af;
}

@media (max-width: 640px) {
    .repair-topbar-logo, .repair-topbar-right {
        position: static;
        justify-content: center;
        margin-bottom: 1rem;
    }
    .repair-page {
        padding-top: 1.5rem;
    }
    .repair-select {
        flex-basis: 100%;
    }
}
