/* ============================================================
   YARDHUB DRIVER DASHBOARD
   File: css/driver-dashboard.css
   ============================================================ */

:root {
    --yh-black: #050505;
    --yh-gold: #f2c200;
    --yh-gold-hot: #ffdd55;
    --yh-text: #f3f3f3;
    --yh-header-h: 78px;
    --yh-side-w: 236px;
    --yh-bottom-h: 64px;
    --font: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html,
body.yh-dash {
    margin: 0;
    min-height: 100%;
    background: #050505;
    color: var(--yh-text);
    font-family: var(--font);
    overflow-x: hidden;
}

.yh-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--yh-header-h);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 28px 0 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.25)),
        repeating-linear-gradient(90deg, #161616 0px, #1c1c1c 2px, #141414 4px);
    border-bottom: 2px solid var(--yh-gold);
}

.yh-brand { flex-shrink: 0; min-width: 160px; }

.yh-logo {
    display: inline-block;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    position: relative;
    padding-bottom: 6px;
    text-decoration: none;
}

.yh-logo::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 5px;
    background: var(--yh-gold);
    border-radius: 2px;
}

.yh-mobile-mark { display: none; }

.yh-search {
    flex: 1;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 44px;
    background: rgba(8, 8, 8, 0.55);
    border: 1px solid rgba(242, 194, 0, 0.65);
    border-radius: 999px;
    padding: 0 8px 0 18px;
}

.yh-search-compact { display: none; }

.yh-search input,
.yh-search select {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-family: var(--font);
}

.yh-search input::placeholder { color: #8a8a8a; }

.yh-search select {
    flex: 0 0 108px;
    color: #ddd;
    cursor: pointer;
}

.yh-search-split {
    width: 1px;
    height: 18px;
    background: #3d3d3d;
    margin: 0 10px;
    flex-shrink: 0;
}

.yh-search-go {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--yh-gold);
    cursor: pointer;
    flex-shrink: 0;
    font-size: 15px;
}

.yh-side {
    position: fixed;
    top: var(--yh-header-h);
    left: 0;
    bottom: 0;
    width: var(--yh-side-w);
    background: #0a0a0a;
    border-right: 1px solid #1c1c1c;
    padding: 26px 0 18px;
    display: flex;
    flex-direction: column;
    z-index: 150;
}

.yh-side-label {
    margin: 0 0 18px 28px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yh-gold);
    font-weight: 700;
}

.yh-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.yh-menu li { border-left: 3px solid transparent; }

.yh-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px 13px 26px;
    color: #cfcfcf;
    font-size: 15px;
    text-decoration: none;
}

.yh-menu li i {
    width: 18px;
    color: #8a8a8a;
    font-size: 14px;
}

.yh-menu li.active {
    background: linear-gradient(90deg, rgba(242, 194, 0, 0.12), transparent);
    border-left-color: var(--yh-gold);
}

.yh-menu li.active a,
.yh-menu li.active i { color: var(--yh-gold); }

.yh-side-foot {
    padding: 16px 26px 8px;
    border-top: 1px solid #1c1c1c;
}

.yh-help {
    margin: 0 0 4px;
    color: #888;
    font-size: 13px;
}

.yh-help-mail {
    color: var(--yh-gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.yh-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    color: #cfcfcf;
    font-size: 15px;
    text-decoration: none;
}

.yh-main {
    margin-left: var(--yh-side-w);
    margin-top: var(--yh-header-h);
    min-height: calc(100vh - var(--yh-header-h));
    background-color: #050505;
    background-image:
        radial-gradient(ellipse at 68% 62%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.72) 70%),
        url("../images/dashboard-yard.jpg");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.yh-stage {
    min-height: calc(100vh - var(--yh-header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.yh-welcome {
    width: min(720px, 92%);
    margin: 0 auto;
    text-align: center;
    background: rgba(8, 8, 8, 0.78);
    border: 1px solid rgba(242, 194, 0, 0.35);
    border-radius: 22px;
    padding: 48px 48px 42px;
}

.yh-welcome h1 {
    margin: 0 0 22px;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.yh-lead {
    margin: 0;
    font-size: 20px;
    line-height: 1.45;
    color: #d0d0d0;
}

.yh-gold {
    margin: 18px 0 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--yh-gold);
}

.yh-rule {
    width: 220px;
    height: 1px;
    border: 0;
    margin: 28px auto 30px;
    background: linear-gradient(90deg, transparent, var(--yh-gold), transparent);
}

.yh-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 52px;
    padding: 0 36px;
    border-radius: 999px;
    background: var(--yh-gold);
    color: #111;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.yh-search-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 400;
    background: #0a0a0a;
    flex-direction: column;
    padding: 16px 16px 20px;
}

.yh-search-sheet.is-open { display: flex; }

.yh-sheet-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.yh-sheet-back {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    flex-shrink: 0;
    cursor: pointer;
}

.yh-sheet-box {
    flex: 1;
    border: 1.5px solid var(--yh-gold);
    border-radius: 16px;
    padding: 10px 14px;
    background: #111;
}

.yh-sheet-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yh-sheet-row + .yh-sheet-row {
    border-top: 1px solid #2a2a2a;
    margin-top: 8px;
    padding-top: 8px;
}

.yh-sheet-row i { color: var(--yh-gold); width: 16px; }

.yh-sheet-row input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-family: var(--font);
}

.yh-popular-label {
    margin: 22px 4px 8px;
    color: var(--yh-gold);
    font-size: 14px;
    font-weight: 700;
}

.yh-popular {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: auto;
    flex: 1;
}

.yh-popular button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    border: 0;
    border-bottom: 1px solid #222;
    background: none;
    color: #fff;
    font-size: 15px;
    text-align: left;
    font-family: var(--font);
    cursor: pointer;
}

.yh-popular i { color: #888; }

.yh-sheet-search {
    margin-top: 16px;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--yh-gold);
    color: #111;
    font-size: 17px;
    font-weight: 800;
    font-family: var(--font);
    cursor: pointer;
}

@media (max-width: 900px) {
    :root { --yh-header-h: 58px; }

    .yh-top {
        gap: 10px;
        padding: 0 12px;
    }

    .yh-brand { min-width: 0; }

    .yh-logo { display: none; }

    .yh-mobile-mark {
        display: block;
        flex-shrink: 0;
    }

    .yh-mobile-mark img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--yh-gold);
        display: block;
    }

    .yh-search { display: none; }

    .yh-search-compact {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        height: 40px;
        border: 0;
        border-radius: 999px;
        background: #1a1a1a;
        color: #8a8a8a;
        padding: 0 16px;
        font-size: 14px;
        font-family: var(--font);
        cursor: pointer;
    }

    .yh-search-compact i { color: #9a9a9a; }

    .yh-side {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: var(--yh-bottom-h);
        transform: none;
        flex-direction: row;
        padding: 0;
        border-right: 0;
        border-top: 1px solid #222;
        background: #0a0a0a;
    }

    .yh-side-label,
    .yh-side-foot { display: none; }

    .yh-menu {
        display: flex;
        width: 100%;
        flex-direction: row;
    }

    .yh-menu li {
        flex: 1;
        border: 0;
        background: none;
    }

    .yh-menu li a {
        justify-content: center;
        padding: 0;
        height: var(--yh-bottom-h);
        font-size: 0;
        gap: 0;
    }

    .yh-menu li i {
        width: auto;
        font-size: 20px;
        color: #9a9a9a;
    }

    .yh-menu li.active { background: none; }

    .yh-menu li.active i { color: var(--yh-gold); }

    .yh-main {
        margin-left: 0;
        margin-bottom: var(--yh-bottom-h);
    }

    .yh-stage { padding: 20px 16px 28px; }

    .yh-welcome {
        width: 100%;
        padding: 28px 20px 24px;
    }

    .yh-welcome h1 { font-size: 34px; }

    .yh-cta { min-width: 0; width: 100%; }
}
.yh-mobile-mark img {
    width: 40px;
    height: 40px;
    border-radius: 0;
    object-fit: contain;
    border: 0;
    display: block;
    background: transparent;
}
.yh-search input:-webkit-autofill,
.yh-search input:-webkit-autofill:hover,
.yh-search input:-webkit-autofill:focus,
.yh-search select:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    box-shadow: 0 0 0 1000px #111 inset !important;
    transition: background-color 9999s ease-out;
}
.yh-search input,
.yh-search select {
    background: transparent;
    color: #fff;
}