/* ============================================================
   Web Travel Lokalan — style.css
   Framework: Bootstrap 5 + custom
   ============================================================ */

/* ── FONT & ROOT ─────────────────────────────────────────── */
:root {
    --primary:       #0d9488;
    --primary-dark:  #0b7a70;
    --primary-light: #f0fdfa;
    --accent:        #f97316;
    --success:       #16a34a;
    --danger:        #dc2626;
    --text-dark:     #111827;
    --text-muted:    #6b7280;
    --border:        #e5e7eb;
    --bg-light:      #f9fafb;
    --radius:        12px;
    --radius-sm:     8px;
    --shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:     0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    --shadow-lg:     0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.6;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.fw-600  { font-weight: 600 !important; }
.fw-700  { font-weight: 700 !important; }
.fw-800  { font-weight: 800 !important; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
    padding-top: .875rem;
    padding-bottom: .875rem;
    border-bottom: 1px solid var(--border);
}

.brand-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-dark);
    letter-spacing: -.3px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: .375rem .75rem;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all .2s;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,148,136,.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/* ── CARDS ───────────────────────────────────────────────── */
.card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* ── AUTH PAGES ──────────────────────────────────────────── */
.auth-page {
    background: var(--bg-light);
    min-height: 100vh;
}

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

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-top {
    padding: 3rem 0 2rem;
}

.footer-bottom {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.footer-links li {
    margin-bottom: .375rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .875rem;
    transition: color .15s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact li {
    font-size: .875rem;
}

/* ── FORM CONTROLS ───────────────────────────────────────── */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--border);
    padding: .5rem .75rem;
    font-size: .9375rem;
    transition: border-color .15s, box-shadow .15s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,.1);
}

.input-group-text {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
    border-color: var(--border);
}

/* ── ALERTS ──────────────────────────────────────────────── */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    font-size: .9rem;
}

.alert-success { background: #f0fdf4; color: #15803d; }
.alert-danger  { background: #fef2f2; color: #b91c1c; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-info    { background: #f0fdfa; color: #0b7a70; }

/* ── DROPDOWN ────────────────────────────────────────────── */
.dropdown-menu {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: .5rem;
    min-width: 200px;
}

.dropdown-item {
    border-radius: 6px;
    padding: .5rem .75rem;
    font-size: .9rem;
    font-weight: 500;
    transition: background .15s;
}

.dropdown-header {
    padding: .5rem .75rem;
}

/* ── BADGES ──────────────────────────────────────────────── */
.badge {
    font-weight: 600;
    font-size: .75rem;
    padding: .3em .6em;
    border-radius: 6px;
}

/* Status badges */
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-paid      { background: #ccfbf1; color: #0b7a70; }
.badge-confirmed { background: #dcfce7; color: #15803d; }
.badge-canceled  { background: #fee2e2; color: #991b1b; }
.badge-expired   { background: #f3f4f6; color: #6b7280; }

/* ── TABLES ──────────────────────────────────────────────── */
.table {
    font-size: .9rem;
}

.table thead th {
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.table tbody tr:hover {
    background: var(--bg-light);
}

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination .page-link {
    border-radius: 6px !important;
    margin: 0 2px;
    color: var(--primary);
    border-color: var(--border);
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ── SECTION HEADINGS ────────────────────────────────────── */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -.4px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: .95rem;
}

/* ── HERO SEARCH (Beranda) ───────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0b7a70 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255,255,255,.8);
    font-size: 1.05rem;
}

.search-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
}

/* ── ROUTE CARD ──────────────────────────────────────────── */
.route-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: box-shadow .2s, transform .2s;
    cursor: pointer;
}

.route-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* ── BOOKING WIZARD ──────────────────────────────────────── */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.wizard-step.active  { color: var(--primary); }
.wizard-step.done    { color: var(--success); }

.wizard-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    background: var(--border);
    color: var(--text-muted);
    flex-shrink: 0;
}

.wizard-step.active .wizard-step-num {
    background: var(--primary);
    color: #fff;
}

.wizard-step.done .wizard-step-num {
    background: var(--success);
    color: #fff;
}

.wizard-connector {
    width: 60px;
    height: 2px;
    background: var(--border);
    flex-shrink: 0;
}

.wizard-connector.done { background: var(--success); }

/* ── TICKET CARD ─────────────────────────────────────────── */
.ticket-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.ticket-card-header {
    background: var(--primary);
    color: #fff;
    padding: 1rem 1.25rem;
}

.ticket-card-body {
    padding: 1.25rem;
}

.ticket-divider {
    border: none;
    border-top: 2px dashed var(--border);
    margin: 1rem 0;
}

/* ── COUNTDOWN TIMER ─────────────────────────────────────── */
.countdown-badge {
    background: #fef3c7;
    color: #92400e;
    padding: .5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-title { font-size: 1.65rem; }
    .wizard-step-label { display: none; }
    .wizard-connector { width: 30px; }
}