﻿:root {
    --customer-bg: #f5f7fa;
    --customer-dark: #1c2430;
    --customer-dark-2: #283548;
    --customer-orange: #ff5d00;
}

.customer-shell {
    width: 100%;
    max-width: 1224px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

.customer-header {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 150px;
    margin: 34px 0 28px;
    padding: 28px 46px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--customer-dark) 0%, var(--customer-dark-2) 100%);
    box-shadow: 0 18px 42px rgba(28, 36, 48, .14);
}

    .customer-header::after {
        content: "";
        position: absolute;
        top: -88px;
        right: -62px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(255, 93, 0, .13);
    }

.customer-header__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.customer-header__logo {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    display: block;
    object-fit: contain;
}

.customer-header__text {
    min-width: 0;
}

.customer-header__title {
    margin: 0;
    color: #ffffff;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .3px;
}

    .customer-header__title span {
        color: var(--customer-orange);
    }

.customer-header__subtitle {
    margin: 11px 0 0;
    color: rgba(255, 255, 255, .84);
    font-size: 18px;
    line-height: 1.35;
}

.customer-header__powered {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .54);
    font-size: 13px;
    letter-spacing: .3px;
}

.customer-header__badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 10px 17px;
    border: 1px solid rgba(255, 93, 0, .38);
    border-radius: 999px;
    color: #ffb27d;
    background: rgba(255, 93, 0, .12);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .customer-shell {
        padding-left: 10px;
        padding-right: 10px;
    }

    .customer-header {
        min-height: auto;
        margin-top: 18px;
        padding: 22px;
        border-radius: 18px;
    }

    .customer-header__content {
        gap: 17px;
    }

    .customer-header__logo {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
    }

    .customer-header__title {
        font-size: 30px;
    }

    .customer-header__subtitle {
        margin-top: 8px;
        font-size: 14px;
    }

    .customer-header__powered {
        margin-top: 7px;
        font-size: 11px;
    }

    .customer-header__badge {
        display: none;
    }
}

/* =========================================================
   TAKİP SAYFASI İÇERİK KARTI
   Talep Oluştur sayfasındaki beyaz kart standardı
========================================================= */

.customer-content-card {
    width: 100%;
    margin-bottom: 28px;
    padding: 36px 38px;
    border: 1px solid #dfe5ed;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(28, 36, 48, .07);
}

.customer-not-found-card {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 170px;
}

.customer-not-found-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ff5d00;
    background: #fff1e8;
    font-size: 29px;
    font-weight: 900;
}

.customer-not-found-content {
    min-width: 0;
    flex: 1;
}

    .customer-not-found-content h2 {
        margin: 0 0 9px;
        color: #1c2430;
        font-size: 30px;
        font-weight: 800;
        line-height: 1.15;
    }

    .customer-not-found-content p {
        margin: 0;
        color: #788598;
        font-size: 16px;
        line-height: 1.6;
    }

.customer-not-found-button {
    min-height: 46px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: #ff5d00;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, transform .15s ease;
}

    .customer-not-found-button:hover {
        color: #ffffff;
        background: #d94f00;
        transform: translateY(-1px);
    }

@media (max-width: 700px) {
    .customer-content-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .customer-not-found-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .customer-not-found-content h2 {
        font-size: 25px;
    }

    .customer-not-found-button {
        width: 100%;
    }
}

/* ===== TAKIP SAYFASI STİLLERİ ===== */

:root {
    --ay-bg: #f4f6f9;
    --ay-panel: #ffffff;
    --ay-card: #fbfcfe;
    --ay-border: #dde3eb;
    --ay-text: #1c2430;
    --ay-muted: #7b8798;
    --ay-orange: #ff5d00;
    --ay-orange-soft: #fff1e8;
    --ay-green: #198754;
    --ay-blue: #356fd2;
    --ay-red: #dc3545;
}

body {
    background: var(--ay-bg);
    color: var(--ay-text);
}

.tracking-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 38px 14px 56px;
}

.tracking-header {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding: 28px 30px;
    border-radius: 22px;
    background: linear-gradient(135deg, #1c2430 0%, #283548 100%);
    box-shadow: 0 18px 40px rgba(28, 36, 48, .15);
}

    .tracking-header::after {
        content: "";
        position: absolute;
        top: -80px;
        right: -55px;
        width: 210px;
        height: 210px;
        border-radius: 50%;
        background: rgba(255, 93, 0, .14);
    }

.brand-area {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #111;
    background: var(--ay-orange);
    font-size: 18px;
    font-weight: 900;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .14);
}

.brand-title {
    margin: 0;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .4px;
}

.brand-subtitle {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
}

.demo-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(255, 93, 0, .28);
    border-radius: 999px;
    color: #ffb27d;
    background: rgba(255, 93, 0, .13);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
}

.main-card,
.detail-card,
.timeline-card,
.rating-card {
    border: 1px solid var(--ay-border);
    border-radius: 18px;
    background: var(--ay-panel);
    box-shadow: 0 12px 30px rgba(28, 36, 48, .06);
}

.main-card {
    padding: 24px;
    margin-bottom: 20px;
}

.request-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.request-label,
.info-label {
    display: block;
    color: var(--ay-muted);
    font-size: 12px;
    font-weight: 700;
}

.request-number {
    margin-top: 5px;
    color: var(--ay-text);
    font-size: 22px;
    font-weight: 800;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

    .status-badge::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: currentColor;
    }

.status-waiting {
    color: #a56800;
    background: #fff5df;
}

.status-planned {
    color: var(--ay-blue);
    background: #edf4ff;
}

.status-road {
    color: #087f78;
    background: #e8f8f6;
}

.status-working {
    color: #7a42b8;
    background: #f4edfb;
}

.status-completed {
    color: var(--ay-green);
    background: #eaf7f0;
}

.status-cancelled,
.status-rejected {
    color: var(--ay-red);
    background: #fff0f1;
}

.status-default {
    color: #667386;
    background: #f0f3f7;
}

.progress-wrap {
    margin-top: 26px;
}

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

    .steps::before {
        content: "";
        position: absolute;
        top: 17px;
        left: 10%;
        right: 10%;
        height: 3px;
        border-radius: 4px;
        background: #e3e8ef;
    }

.step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-circle {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border: 3px solid #dce3eb;
    border-radius: 50%;
    color: #8d98a8;
    background: #fff;
    font-size: 13px;
    font-weight: 900;
}

.step.active .step-circle {
    border-color: var(--ay-orange);
    color: #fff;
    background: var(--ay-orange);
    box-shadow: 0 0 0 6px var(--ay-orange-soft);
}

.step-title {
    color: var(--ay-muted);
    font-size: 11px;
    font-weight: 700;
}

.step.active .step-title {
    color: var(--ay-text);
}

.negative-box {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid #f3c7cc;
    border-radius: 12px;
    color: #a9212d;
    background: #fff0f1;
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 20px;
}

.detail-card,
.timeline-card {
    padding: 24px;
}

.card-title,
.rating-title {
    margin: 0;
    color: var(--ay-text);
    font-size: 19px;
    font-weight: 800;
}

.card-title {
    margin-bottom: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.info-item {
    padding: 16px;
    border: 1px solid var(--ay-border);
    border-radius: 14px;
    background: var(--ay-card);
}

    .info-item.full {
        grid-column: 1 / -1;
    }

.info-value {
    display: block;
    margin-top: 7px;
    color: var(--ay-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.service-tag {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    color: #d94f00;
    background: var(--ay-orange-soft);
    font-size: 12px;
    font-weight: 750;
}

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

    .timeline::before {
        content: "";
        position: absolute;
        top: 8px;
        bottom: 12px;
        left: 15px;
        width: 2px;
        background: #e1e7ee;
    }

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 12px;
    padding-bottom: 22px;
}

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

.timeline-dot {
    position: relative;
    z-index: 2;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    border: 3px solid #d9e1ea;
    border-radius: 50%;
    background: #fff;
}

.timeline-item.done .timeline-dot {
    border-color: var(--ay-orange);
    background: var(--ay-orange);
    box-shadow: 0 0 0 4px var(--ay-orange-soft);
}

.timeline-name {
    color: var(--ay-text);
    font-size: 14px;
    font-weight: 750;
}

.timeline-date {
    margin-top: 5px;
    color: var(--ay-muted);
    font-size: 13px;
}

.rating-card {
    margin-top: 20px;
    padding: 24px;
}

.rating-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.rating-description {
    margin: 6px 0 0;
    color: var(--ay-muted);
    font-size: 14px;
}

.rating-lock {
    padding: 8px 11px;
    border-radius: 999px;
    color: #667386;
    background: #f0f3f7;
    font-size: 11px;
    font-weight: 800;
}

.rating-result,
.rating-message {
    padding: 16px;
    border: 1px solid var(--ay-border);
    border-radius: 13px;
    background: var(--ay-card);
}

.rating-result {
    display: flex;
    align-items: center;
    gap: 18px;
}

.rating-result-stars {
    color: var(--ay-orange);
    font-size: 25px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.rating-result-text {
    color: var(--ay-text);
    font-size: 14px;
    line-height: 1.55;
}

.rating-message {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 650;
}

    .rating-message.success {
        color: #12633f;
        border-color: #bfe5d0;
        background: #eaf7f0;
    }

    .rating-message.error {
        color: #a9212d;
        border-color: #f3c6cb;
        background: #fff0f1;
    }

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 14px;
}

    .star-rating input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .star-rating label {
        color: #d7dde5;
        cursor: pointer;
        font-size: 34px;
        line-height: 1;
        transition: transform .15s ease, color .15s ease;
    }

        .star-rating label:hover,
        .star-rating label:hover ~ label,
        .star-rating input:checked ~ label {
            color: var(--ay-orange);
        }

.rating-textarea {
    width: 100%;
    min-height: 110px;
    padding: 14px 15px;
    resize: vertical;
    border: 1px solid var(--ay-border);
    border-radius: 12px;
    color: var(--ay-text);
    background: #fff;
    outline: none;
}

    .rating-textarea:focus {
        border-color: rgba(255, 93, 0, .55);
        box-shadow: 0 0 0 4px rgba(255, 93, 0, .10);
    }

.rating-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.rating-button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--ay-orange);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.not-found {
    text-align: center;
    padding: 44px 24px;
}

.not-found-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--ay-red);
    background: #fff0f1;
    font-size: 24px;
    font-weight: 900;
}

.not-found h2 {
    margin: 0 0 8px;
    color: var(--ay-text);
}

.not-found p,
.footer-note {
    color: var(--ay-muted);
}

.footer-note {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
}

@media (max-width: 760px) {
    .tracking-page {
        padding-top: 18px;
    }

    .tracking-header {
        padding: 20px;
        border-radius: 18px;
    }

    .brand-title {
        font-size: 23px;
    }

    .brand-mark {
        width: 50px;
        height: 50px;
    }

    .grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item.full {
        grid-column: auto;
    }

    .request-top,
    .rating-head,
    .rating-result {
        align-items: flex-start;
        flex-direction: column;
    }

    .step-title {
        font-size: 9px;
    }
}


/* =========================================================
   TALEP SORGULA SAYFASI
========================================================= */

.sorgula-page-card {
    width: 100%;
    margin-bottom: 34px;
    padding: 34px 36px 38px;
    border: 1px solid #dfe5ed;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(28, 36, 48, .07);
}

.sorgula-page-heading {
    margin-bottom: 26px;
}

    .sorgula-page-heading h2 {
        margin: 0 0 8px;
        color: #1c2430;
        font-size: 30px;
        font-weight: 800;
    }

    .sorgula-page-heading p {
        margin: 0;
        color: #7b8798;
        font-size: 15px;
        line-height: 1.55;
    }

.sorgula-form-wrap {
    max-width: 820px;
}

.sorgula-form-card {
    padding: 26px;
    border: 1px solid #dfe5ed;
    border-radius: 16px;
    background: #fbfcfe;
}

    .sorgula-form-card .form-label {
        margin-bottom: 7px;
        color: #1c2430;
        font-weight: 700;
    }

    .sorgula-form-card .form-control,
    .sorgula-form-card .form-select {
        min-height: 50px;
        border: 1px solid #d8e0e9;
        border-radius: 11px;
        background: #ffffff;
    }

        .sorgula-form-card .form-control:focus,
        .sorgula-form-card .form-select:focus {
            border-color: rgba(255, 93, 0, .55);
            box-shadow: 0 0 0 4px rgba(255, 93, 0, .10);
        }

.sorgula-primary-button {
    min-height: 44px;
    border: 1px solid #ff5d00;
    border-radius: 10px;
    color: #ffffff;
    background: #ff5d00;
    font-weight: 750;
}

    .sorgula-primary-button:hover {
        color: #ffffff;
        border-color: #d94f00;
        background: #d94f00;
    }

.sorgula-secondary-button {
    min-height: 44px;
    border: 1px solid #aeb8c5;
    border-radius: 10px;
    color: #536174;
    background: #ffffff;
    font-weight: 650;
}

    .sorgula-secondary-button:hover {
        color: #1c2430;
        border-color: #8d99a8;
        background: #f5f7fa;
    }

/* Sorgulama sonucu geldiğinde kartlar genişliği kullanabilir. */
.sorgula-page-card > .card,
.sorgula-page-card > .alert {
    max-width: 100%;
}

@media (max-width: 760px) {
    .sorgula-page-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .sorgula-page-heading h2 {
        font-size: 25px;
    }

    .sorgula-form-card {
        padding: 20px;
    }

        .sorgula-form-card .d-flex {
            flex-direction: column;
        }

    .sorgula-primary-button,
    .sorgula-secondary-button {
        width: 100%;
    }
}
