/* ==========================================================
   E-TICKET BOARDING PASS — Kajhi Trans (Exact Match Design)
   ========================================================== */

:root {
    --ticket-bg: #ffffff;
    --ticket-border: #f59e0b;
    --ticket-text-gray: #64748b;
    --ticket-yellow: #f59e0b;
    --ticket-yellow-dark: #d97706;
    --ticket-blue: #2563eb;
    --ticket-green-bg: rgba(6, 78, 59, 0.4);
    --ticket-green-border: rgba(16, 185, 129, 0.4);
    --ticket-green-text: #34d399;
}

.status-page {
    padding: 20px 15px !important;
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #070d19;
}

.status-wrapper {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.back-link-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
}

.back-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ticket-yellow);
    background: rgba(245, 158, 11, 0.08);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    padding: 8px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.back-link-pill:hover {
    color: #000000;
    background: var(--ticket-yellow);
    border-color: var(--ticket-yellow);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.back-link-pill i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.back-link-pill:hover i {
    transform: translateX(-3px);
}

/* Search Box Glass Styling */
.status-search-glass {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 18px;
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(20px);
}
.status-search-icon {
    width: 60px;
    height: 60px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--ticket-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--ticket-yellow);
    font-size: 24px;
}
.status-search-title {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 22px;
}
.status-search-desc {
    color: var(--ticket-text-gray);
    font-size: 13px;
    margin-bottom: 24px;
}
.form-label-glass {
    color: var(--ticket-text-gray);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-control-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 10px;
    padding: 12px;
}
.form-control-glass:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--ticket-yellow);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
    outline: none;
}
.btn-glow {
    background: var(--ticket-yellow);
    color: #000000;
    font-weight: 800;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-glow:hover {
    background: #fbbf24;
    color: #000000;
    transform: translateY(-1px);
}

/* Flash Alert Banner */
.alert-ticket {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 16px;
}
.alert-ticket-success {
    background: var(--ticket-green-bg);
    border: 1px solid var(--ticket-green-border);
    color: var(--ticket-green-text);
}
.alert-ticket-danger {
    background: rgba(153, 27, 27, 0.4);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}
.alert-ticket i {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Ticket Main Card */
.ticket-card {
    background: #ffffff;
    border: 1.5px solid var(--ticket-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* Ticket Header Top Layout */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    gap: 8px;
    background: #0c1427;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.ticket-code-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    line-height: 1;
    background: rgba(245, 158, 11, 0.1);
    border: 1.5px solid var(--ticket-border);
    color: var(--ticket-yellow);
    font-family: monospace;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 0 12px;
    border-radius: 8px;
    white-space: nowrap;
    box-sizing: border-box;
}

.ticket-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 0;
}

.ticket-logo {
    height: 22px;
    max-height: 22px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    display: block;
}

.ticket-status-wrapper {
    display: flex;
    align-items: center;
    justify-self: end;
    height: 28px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    line-height: 1;
    font-size: 13px;
    font-weight: 800;
    padding: 0 12px;
    border-radius: 8px;
    gap: 5px;
    white-space: nowrap !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.badge-pending {
    background: var(--ticket-yellow);
    color: #000000;
}

.badge-approved {
    background: #10b981;
    color: #ffffff;
}

.badge-rejected {
    background: #ef4444;
    color: #ffffff;
}

.badge-cancelled {
    background: #64748b;
    color: #ffffff;
}

.badge-rescheduled {
    background: #6366f1;
    color: #ffffff;
}

/* Status Badge Banner Below E-Ticket Card */
.ticket-status-outer {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.status-badge-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

/* Route Banner */
.ticket-route-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px 16px;
    gap: 12px;
}

.route-box {
    flex-shrink: 0;
}

.route-time {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.route-city {
    font-size: 13px;
    color: var(--ticket-text-gray);
    font-weight: 600;
    margin-top: 4px;
}

.route-middle {
    flex: 1;
    text-align: center;
    padding: 0 8px;
}

.route-date {
    font-size: 12px;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 6px;
}

.route-line-wrapper {
    position: relative;
    width: 100%;
    height: 2px;
    background: var(--ticket-yellow);
    border-radius: 2px;
}

/* Perforated Cutout Divider */
.ticket-perforated {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.ticket-perforated .cutout {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #070d19; /* Matches body background */
    border: 1.5px solid var(--ticket-border);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.ticket-perforated .cutout-left {
    left: -12px;
}

.ticket-perforated .cutout-right {
    right: -12px;
}

.ticket-perforated .dashed-line {
    width: 100%;
    height: 1px;
    border-bottom: 2px dashed rgba(15, 23, 42, 0.2);
    margin: 0 15px;
}

.ticket-perforated .center-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--ticket-blue);
    border-radius: 50%;
    z-index: 2;
}

/* Ticket Details Body */
.ticket-body {
    padding: 16px 20px 20px;
}

.pass-detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.pass-detail-row {
    display: flex;
    align-items: center;
    font-size: 13.5px;
}

.pass-detail-label {
    width: 140px;
    flex-shrink: 0;
    color: var(--ticket-text-gray);
    font-weight: 600;
}

.pass-detail-val {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #0f172a;
}

.link-whatsapp {
    color: var(--ticket-blue);
    text-decoration: underline;
    font-weight: 600;
}

.link-whatsapp:hover {
    color: #1d4ed8;
}

.plate-number {
    color: var(--ticket-yellow-dark);
    font-weight: 700;
    font-family: monospace;
    font-size: 12.5px;
}

.seat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.seat-chip {
    background: #fffbe6;
    border: 1px solid var(--ticket-yellow);
    color: var(--ticket-yellow-dark);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.link-gmaps {
    color: var(--ticket-yellow-dark);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.link-gmaps:hover {
    color: #b45309;
    text-decoration: underline;
}

.payment-status-text {
    font-weight: 700;
}

/* Payment Box */
.payment-box-luxury {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cod-pill {
    background: var(--ticket-yellow);
    color: #000000;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cod-desc {
    font-size: 12px;
    color: #475569;
    line-height: 1.35;
}

/* Footer Section */
.ticket-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.total-tagihan-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.total-label {
    font-size: 11px;
    color: var(--ticket-text-gray);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.total-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--ticket-yellow-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-new-booking {
    background: var(--ticket-yellow);
    color: #000000;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    transition: transform 0.15s, background-color 0.15s;
}

.btn-new-booking:hover {
    background: #fbbf24;
    color: #000000;
    transform: translateY(-1px);
}

/* ==========================================================
   RESPONSIVE MOBILE STYLING
   ========================================================== */

@media (max-width: 575.98px) {
    .status-page {
        padding: 10px 0 20px !important;
    }

    .status-wrapper {
        padding: 0 10px !important;
    }

    .ticket-card {
        border-radius: 16px !important;
    }

    .ticket-header {
        padding: 12px 14px !important;
        gap: 6px !important;
    }

    .ticket-brand {
        height: 24px !important;
    }

    .ticket-logo {
        height: 17px !important;
        max-height: 17px !important;
        max-width: 70px !important;
    }

    .ticket-code-pill {
        height: 24px !important;
        line-height: 1 !important;
        font-size: 11px !important;
        padding: 0 8px !important;
        flex-shrink: 0 !important;
    }

    .status-badge {
        height: 24px !important;
        font-size: 10.5px !important;
        padding: 0 8px !important;
    }

    .status-badge-lg {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }

    .ticket-route-section {
        padding: 6px 14px 12px !important;
    }

    .route-time {
        font-size: 22px !important;
    }

    .route-city {
        font-size: 12px !important;
    }

    .route-date {
        font-size: 11px !important;
    }

    .ticket-body {
        padding: 12px 14px 16px !important;
    }

    .pass-detail-list {
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    .pass-detail-row {
        font-size: 12.5px !important;
    }

    .pass-detail-label {
        width: 120px !important;
        font-size: 12px !important;
    }

    .payment-box-luxury {
        padding: 8px 12px !important;
        margin-bottom: 14px !important;
        gap: 8px !important;
    }

    .cod-pill {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }

    .cod-desc {
        font-size: 11px !important;
    }

    .total-label {
        font-size: 10px !important;
    }

    .total-amount {
        font-size: 19px !important;
    }

    .btn-new-booking {
        font-size: 12px !important;
        padding: 7px 12px !important;
    }
}
