:root {
    --nl-purple: #2A165B;
    --nl-purple-light: #F5F4FA;
    --nl-black: #222222;
    --nl-border: #E0DEEC;
    --nl-border-soft: #ECEBF5;
    --nl-text-muted: #6F6F7A;
    --nl-bg: #F7F7FB;
    --nl-radius: 12px;
    --nl-shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--nl-black);
    background-color: var(--nl-bg);
}

body {
    -webkit-font-smoothing: antialiased;
}

.nl-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */

.nl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background-color: #fff;
    border-bottom: 1px solid var(--nl-border);
}

.nl-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nl-product-badge {
    padding: 4px 10px;
    border-radius: 4px;
    background-color: var(--nl-purple-light);
    border: 1px solid var(--nl-border);
    font-size: 11px;
    font-weight: 500;
    color: var(--nl-purple);
}

.nl-nextlane-icon {
    width: 36px;
    height: 36px;
    background-color: #0066CC;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nl-nextlane-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.nl-user-dealer-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nl-info-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nl-info-icon {
    width: 24px;
    height: 24px;
    color: var(--nl-text-muted);
}

.nl-info-text {
    display: flex;
    flex-direction: column;
}

.nl-info-label {
    font-size: 11px;
    color: var(--nl-text-muted);
}

.nl-info-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--nl-black);
}

.nl-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nl-logo {
    display: block;
    height: 32px;
    object-fit: contain;
}

/* Main panel */

.nl-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px;
    background-color: var(--nl-bg);
}

.nl-panel {
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    background-color: #fff;
    border-radius: var(--nl-radius);
    padding: 24px 32px 32px;
    box-shadow: var(--nl-shadow-soft);
    display: flex;
    flex-direction: column;
}

/* Selection page */

.vehicle-selection {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.vehicle-selection-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.vehicle-selection-header-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--nl-border-soft);
}

.vehicle-selection-header-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--nl-black);
}

.vehicle-selection-header-subtitle {
    font-size: 14px;
    color: var(--nl-text-muted);
}

.vehicle-selection-header-subtitle::before {
    content: "|";
    margin-right: 12px;
    color: var(--nl-border);
}

.vehicle-selection-list {
    flex: 1;
    overflow-y: auto;
}

.vehicle-row {
    display: grid;
    grid-template-columns: 48px 40px 1fr auto;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--nl-border-soft);
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.vehicle-row:last-child {
    border-bottom: none;
}

.vehicle-row:hover {
    background-color: #FAFAFF;
}

.vehicle-row-index {
    font-size: 13px;
    font-weight: 500;
    color: var(--nl-text-muted);
}

.vehicle-row-radio {
    display: flex;
    justify-content: center;
}

.vehicle-radio {
    width: 20px;
    height: 20px;
    accent-color: var(--nl-purple);
    cursor: pointer;
}

.vehicle-row-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 8px;
}

.vehicle-row-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--nl-black);
}

.vehicle-row-subtitle {
    font-size: 13px;
    color: var(--nl-text-muted);
}

.vehicle-row-meta {
    font-size: 13px;
    color: var(--nl-text-muted);
    text-align: right;
    padding-right: 8px;
}

.vehicle-selection-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--nl-border-soft);
}

/* Buttons */

.nl-btn {
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 28px;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.nl-btn-primary {
    background-color: var(--nl-purple);
    color: #fff;
    box-shadow: 0 4px 12px rgba(42, 22, 91, 0.3);
}

.nl-btn-primary:hover {
    background-color: #3A2070;
}

.nl-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(42, 22, 91, 0.4);
}

/* State messages */

.nl-state-message {
    font-size: 14px;
    color: var(--nl-text-muted);
    padding: 40px;
    text-align: center;
}

.nl-state-error {
    color: #CC0033;
}

/* Modal overlay */

.nl-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.nl-modal {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px 32px 28px;
    min-width: 360px;
    max-width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.nl-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.nl-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--nl-black);
}

.nl-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--nl-text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.nl-modal-close:hover {
    color: var(--nl-black);
}

.nl-modal-body {
    font-size: 14px;
    color: var(--nl-text-muted);
    margin-bottom: 24px;
}

.nl-modal-footer {
    display: flex;
    justify-content: flex-end;
}

