:root {
    --ink: #17212b;
    --muted: #697586;
    --line: #e3e8ee;
    --surface: #ffffff;
    --canvas: #f6f8fa;
    --brand: #167d70;
    --brand-dark: #10675c;
    --brand-soft: #e8f5f2;
    --danger: #b42332;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(23, 33, 43, .055);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

a:hover {
    color: var(--brand);
}

h1, h2, h3, h4, h5 {
    color: var(--ink);
    font-weight: 650;
    letter-spacing: -.025em;
}

.site-navbar {
    min-height: 72px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.navbar-brand, .auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.03em;
}

.navbar-brand:hover, .auth-brand:hover {
    color: var(--ink);
}

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--brand);
    color: white;
    font-size: 17px;
    font-weight: 750;
}

.brand-light {
    margin-left: 4px;
    color: var(--muted);
    font-weight: 500;
}

.site-navbar .nav-link {
    margin: 0 3px;
    padding: 9px 12px !important;
    border-radius: 9px;
    color: #536171;
    font-weight: 550;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    background: #f1f6f5;
    color: var(--brand-dark);
}

.site-navbar .navbar-toggler {
    border-color: var(--line);
}

.site-main {
    flex: 1;
    width: 100%;
    padding-top: 38px;
    padding-bottom: 52px;
}

.site-main > .container {
    max-width: 1180px;
}

.site-footer {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.page-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.eyebrow {
    margin-bottom: 7px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.card, .surface-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.card-header {
    padding: 17px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.card-body {
    padding: 24px;
}

.btn {
    --bs-btn-border-radius: 9px;
    padding: 9px 15px;
    font-size: 14px;
    font-weight: 600;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 13px;
}

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
}

.btn-success {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
}

.btn-secondary {
    --bs-btn-bg: #667382;
    --bs-btn-border-color: #667382;
}

.btn-danger {
    --bs-btn-bg: var(--danger);
    --bs-btn-border-color: var(--danger);
}

.btn-warning {
    --bs-btn-bg: #f0b84b;
    --bs-btn-border-color: #f0b84b;
    --bs-btn-color: #352807;
}

.form-label, label {
    margin-bottom: 7px;
    color: #344252;
    font-size: 13px;
    font-weight: 650;
}

.form-control, .form-select {
    min-height: 44px;
    border-color: #d6dde5;
    border-radius: 9px;
    color: var(--ink);
    font-size: 14px;
}

textarea.form-control {
    min-height: 110px;
}

.form-control:focus, .form-select:focus {
    border-color: #72b9ae;
    box-shadow: 0 0 0 .2rem rgba(22, 125, 112, .12);
}

.form-check-input:checked {
    border-color: var(--brand);
    background-color: var(--brand);
}

.form-check-label {
    font-weight: 450;
}

.table-responsive {
    border-radius: 10px;
}

.table {
    margin-bottom: 0;
    color: #344252;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: 14px 16px;
    border-color: #edf0f3;
}

.table thead th {
    background: #f8fafb;
    color: #647181;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table tbody tr:hover > * {
    background: #fbfcfd;
}

.badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
}

.bg-success, .badge.bg-success {
    background: #e6f5ec !important;
    color: #187341 !important;
}

.bg-warning, .badge.bg-warning {
    background: #fff4d9 !important;
    color: #8b6100 !important;
}

.bg-danger, .badge.bg-danger {
    background: #fdebed !important;
    color: #a61b2b !important;
}

.bg-info, .badge.bg-info {
    background: #e8f3f6 !important;
    color: #236477 !important;
}

.bg-secondary, .badge.bg-secondary {
    background: #eef1f4 !important;
    color: #536171 !important;
}

.alert {
    border: 1px solid transparent;
    border-radius: 10px;
}

.alert-success {
    border-color: #ccebd8;
}

.alert-danger {
    border-color: #f3cbd0;
}

.pagination {
    gap: 5px;
    margin-top: 20px;
}

.page-link {
    border-color: var(--line);
    border-radius: 8px !important;
    color: var(--brand-dark);
}

.page-link:focus {
    box-shadow: 0 0 0 .2rem rgba(22, 125, 112, .12);
}

.auth-shell {
    background: #f5f8f8;
}

.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 36px 18px;
}

.auth-wrap {
    width: min(100%, 440px);
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.auth-card {
    padding: clamp(24px, 5vw, 38px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 14px 40px rgba(23, 33, 43, .07);
}

.auth-header {
    margin-bottom: 25px;
}

.auth-header h1 {
    margin-bottom: 7px;
    font-size: 27px;
}

.auth-header p, .auth-footer {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.auth-card .form-group {
    margin-bottom: 18px;
}

.auth-card .btn-primary {
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
}

.auth-footer {
    margin-top: 22px;
    text-align: center;
}

.auth-footer a {
    font-weight: 650;
}

.auth-back {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.message {
    display: none;
    margin-bottom: 17px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 14px;
}

.message.error {
    display: block;
    background: #fdebed;
    color: #a61b2b;
}

.message.success {
    display: block;
    background: #e6f5ec;
    color: #187341;
}

.vehicle-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
    gap: 24px;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0;
}

.detail-item span, .profile-item span {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 12px;
}

.detail-item strong, .profile-item strong {
    font-weight: 650;
}

.rental-vehicle-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #f8fafb;
}

.rental-vehicle-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 20px;
}

.rental-vehicle-info > span,
.rental-vehicle-price > span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.rental-vehicle-price {
    text-align: right;
}

.rental-vehicle-price strong {
    color: var(--brand-dark);
}

.filter-panel {
    margin-bottom: 20px;
    padding: 18px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
}

.profile-aside, .profile-content {
    padding: 25px;
}

.profile-aside {
    text-align: center;
}

.profile-avatar {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 25px;
    font-weight: 700;
}

.profile-item {
    padding: 14px 0;
    border-bottom: 1px solid #edf0f3;
}

.profile-item:last-child {
    border-bottom: 0;
}

.role {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 650;
}

.empty-state {
    padding: 40px 20px !important;
    color: var(--muted);
    text-align: center;
}

.status-pending {
    background: #fff4d9;
    color: #8b6100;
}

.status-approved, .status-completed {
    background: #e6f5ec;
    color: #187341;
}

.status-rejected {
    background: #fdebed;
    color: #a61b2b;
}

.status-ongoing {
    background: #e8f3f6;
    color: #236477;
}

.status-cancelled {
    background: #eef1f4;
    color: #536171;
}

.welcome-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr);
    align-items: center;
    gap: 30px;
    padding: clamp(28px, 6vw, 64px);
}

.welcome-copy h1 {
    max-width: 680px;
    margin-bottom: 15px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.12;
}

.welcome-copy p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.welcome-aside {
    display: grid;
    min-height: 220px;
    align-content: center;
    justify-items: center;
    gap: 18px;
    border: 1px solid #dcece8;
    border-radius: 14px;
    background: #f5faf8;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 600;
}

.welcome-icon {
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-soft);
    font-size: 44px;
}

.welcome-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.benefit-card {
    padding: 22px;
}

.benefit-card h2 {
    margin: 15px 0 7px;
}

.benefit-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

@media (max-width: 767.98px) {
    .site-main {
        padding-top: 25px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .vehicle-detail-grid, .profile-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-list {
        gap: 14px;
    }

    .rental-vehicle-summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .rental-vehicle-price {
        width: 100%;
        margin-left: 64px !important;
        text-align: left;
    }

    .welcome-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .welcome-aside {
        min-height: 160px;
    }

    .welcome-benefits {
        grid-template-columns: minmax(0, 1fr);
    }

    .card-body, .profile-aside, .profile-content {
        padding: 19px;
    }

    .site-navbar .navbar-nav {
        align-items: stretch !important;
        padding-top: 12px;
    }

    .site-navbar .nav-link {
        margin: 2px 0;
    }
}
