 
:root {
    --bg: #f3f1eb;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --surface-border: rgba(34, 38, 40, 0.08);
    --ink: #111111;
    --muted: #6f756f;
    --accent: #133a32;
    --accent-soft: #e6efe9;
    --shadow: 0 18px 50px rgba(24, 34, 28, 0.08);
}

body {
    background:
        radial-gradient(circle at top left, rgba(201, 226, 212, 0.7), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 232, 204, 0.55), transparent 22%),
        linear-gradient(180deg, #f8f6f0 0%, var(--bg) 100%);
    color: var(--ink);
    min-height: 100vh;
}

.app-shell {
    position: relative;
    min-height: 100vh;
}

.app-backdrop {
    position: absolute;
    inset: 0 0 auto 0;
    height: 220px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 0;
}

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 1rem 0 0;
    background: transparent;
}

.app-navbar-inner {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 0.85rem 1.35rem;
}

.app-brand {
    color: var(--ink);
    margin-right: 1.25rem;
}

.app-brand:hover {
    color: var(--ink);
}

.brand-mark {
    width: 145px;
    height: 90px;
    object-fit: contain;
    flex: 0 0 auto;
}

.navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #385149;
    font-weight: 500;
    border-radius: 12px;
    padding: 0.8rem 0.75rem;
    position: relative;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--ink);
    background: rgba(19, 58, 50, 0.05);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--accent);
    background: transparent;
    box-shadow: none;
    font-weight: 700;
}

.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.2rem;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
}

.navbar-nav .nav-link i {
    font-size: 0.9rem;
    line-height: 1;
}

.navbar-nav.me-auto {
    gap: 0.15rem;
}

.navbar .dropdown-menu {
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 0.6rem;
}

.dropdown-item {
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--accent-soft);
    color: var(--ink);
}

.app-main {
    position: relative;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.app-alert {
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.card-header {
    background: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #173f36, #24594d);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(19, 58, 50, 0.18);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #0f322b, #1d4e43);
    border-color: transparent;
}

.btn-outline-primary {
    color: var(--accent);
    border-color: rgba(19, 58, 50, 0.22);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(19, 58, 50, 0.3);
}

.badge.bg-primary,
.text-primary {
    color: var(--accent) !important;
}

.bg-primary {
    background-color: var(--accent) !important;
}

.table {
    --bs-table-bg: transparent;
}

.table thead th {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom-color: rgba(34, 38, 40, 0.08);
}

.table tbody td {
    border-bottom-color: rgba(34, 38, 40, 0.06);
    vertical-align: middle;
}

.metric-card .card-body {
    padding: 1.35rem 1.5rem;
}

.metric-card__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(19, 58, 50, 0.08);
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.metric-card__content {
    min-width: 0;
}

.metric-card__content h4 {
    letter-spacing: -0.03em;
}

.form-control,
.form-select,
.input-group-text,
.modal-content {
    border-radius: 16px;
}

.form-control,
.form-select,
.input-group-text {
    border-color: rgba(34, 38, 40, 0.1);
}

.modal-content {
    border: 1px solid var(--surface-border);
    box-shadow: 0 28px 60px rgba(17, 17, 17, 0.18);
}

.expense-modal-dialog {
    max-width: min(1100px, 95vw);
}

.home-office-summary-card {
    background: rgba(19, 58, 50, 0.05);
    border: 1px solid rgba(19, 58, 50, 0.08);
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

.claim-form-section,
.claim-summary-panel {
    background: rgba(248, 246, 240, 0.72);
    border: 1px solid rgba(19, 58, 50, 0.08);
    border-radius: 20px;
    padding: 1.15rem 1.2rem;
}

.claim-form-section + .claim-form-section {
    margin-top: 1rem;
}

.claim-form-section__header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.claim-form-section__step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.claim-summary-panel {
    position: sticky;
    top: 1rem;
}

.modal {
    z-index: 2000;
}

.modal-backdrop {
    z-index: 1990;
}

.app-footer {
    background: transparent;
}

.auth-shell {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.auth-shell-narrow {
    max-width: 920px;
}

.auth-stage {
    display: grid;
    grid-template-columns: 1.15fr 0.9fr;
    gap: 1.5rem;
    align-items: stretch;
}

.auth-stage-single {
    grid-template-columns: minmax(320px, 520px);
    justify-content: center;
}

.auth-panel {
    border-radius: 28px;
}

.auth-brand-panel {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 40%),
        linear-gradient(160deg, rgba(19, 58, 50, 0.92), rgba(29, 78, 67, 0.82));
    color: #f4f2eb;
    padding: 2.5rem;
    box-shadow: 0 28px 60px rgba(19, 58, 50, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.auth-brand-lockup {
    position: relative;
    z-index: 1;
}

.auth-brand-mark {
    width: 104px;
    height: 104px;
    background: #f8f6f0;
    border-radius: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    margin-bottom: 1.5rem;
}

.auth-brand-mark img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.auth-kicker,
.auth-form-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
}

.auth-kicker {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.9rem;
}

.auth-title {
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
}

.auth-copy {
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.auth-feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.8rem;
    margin-top: 2rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.92);
}

.auth-feature i {
    font-size: 1.1rem;
}

.auth-form-panel {
    display: flex;
    align-items: center;
}

.auth-form-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.auth-form-header {
    margin-bottom: 1.5rem;
}

.auth-form-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.auth-form-icon-success {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.auth-form-title {
    font-size: 2rem;
    letter-spacing: -0.04em;
    margin-bottom: 0.4rem;
}

.auth-form-copy {
    color: var(--muted);
    margin-bottom: 0;
}

.auth-form-grid {
    display: grid;
    gap: 1.1rem;
}

.input-group-auth .input-group-text {
    background: #f7f5ef;
}

.auth-inline-alert {
    border-radius: 16px;
}

.auth-footer-link,
.auth-secondary-actions {
    margin-top: 1.4rem;
    text-align: center;
}

.auth-otp-input {
    text-align: center;
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: 0.42rem;
}

.auth-otp-icon {
    min-width: 56px;
}

@media (max-width: 991.98px) {
    .app-navbar-inner {
        border-radius: 20px;
    }

    .navbar-collapse {
        padding-top: 1rem;
    }

    .auth-stage {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        min-height: 0;
        padding: 2rem;
    }

    .auth-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 575.98px) {
    .auth-shell {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .auth-form-card,
    .auth-brand-panel {
        padding: 1.4rem;
        border-radius: 22px;
    }

    .auth-brand-mark {
        width: 84px;
        height: 84px;
        border-radius: 20px;
    }
}
