/* ═══════════════════════════════════════════════════════════════════════════
   Neptune Design System — Design Tokens (v0.2.0 Alpha)
   Extracted from Figma: Neptune Design System (v0.2.0 Alpha)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* ── Typography ───────────────────────────────────────────────────────── */
    --npt-font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --npt-font-size-xs: 12px;
    --npt-font-size-sm: 14px;
    --npt-font-size-md: 16px;
    --npt-font-size-lg: 22px;
    --npt-font-size-xl: 36px;
    --npt-font-size-2xl: 80px;
    --npt-font-weight-regular: 400;
    --npt-font-weight-medium: 500;
    --npt-font-weight-bold: 700;
    --npt-line-height-xs: 16px;
    --npt-line-height-sm: 20px;
    --npt-line-height-md: 24px;
    --npt-line-height-lg: 28px;
    --npt-line-height-xl: 44px;

    /* ── Primary Colors ───────────────────────────────────────────────────── */
    --npt-primary-100: #f6fafe;
    --npt-primary-200: #d9eaf9;
    --npt-primary-300: #80b5e9;
    --npt-primary-400: #2d88e0;
    --npt-primary-500: #006bd3;
    --npt-primary-600: #005eba;
    --npt-primary-700: #0051a1;
    --npt-primary-800: #004487;
    --npt-primary-900: #00376e;
    --npt-primary-950: #002b54;

    /* ── Grayscale ────────────────────────────────────────────────────────── */
    --npt-gray-50: #ffffff;
    --npt-gray-100: #fafbfc;
    --npt-gray-200: #f0f3f5;
    --npt-gray-300: #dce1e5;
    --npt-gray-400: #ccd3d9;
    --npt-gray-500: #b0b7bf;
    --npt-gray-600: #8a9199;
    --npt-gray-700: #5b6065;
    --npt-gray-800: #363b40;
    --npt-gray-900: #14171a;

    /* ── Success (Green) ──────────────────────────────────────────────────── */
    --npt-success-100: #f5faf7;
    --npt-success-200: #d7f7e7;
    --npt-success-300: #abf5d0;
    --npt-success-400: #5eeba5;
    --npt-success-500: #00bf60;
    --npt-success-600: #00a653;
    --npt-success-700: #008c46;
    --npt-success-800: #007339;
    --npt-success-900: #00592d;

    /* ── Warning (Yellow) ─────────────────────────────────────────────────── */
    --npt-warning-100: #faf8f2;
    --npt-warning-200: #faefd4;
    --npt-warning-300: #f7e6ba;
    --npt-warning-400: #f7d47c;
    --npt-warning-500: #f5af00;
    --npt-warning-600: #db9d00;
    --npt-warning-700: #c28b00;
    --npt-warning-800: #a87900;
    --npt-warning-900: #8f6600;

    /* ── Error / Destructive (Red) ────────────────────────────────────────── */
    --npt-error-100: #faf4f2;
    --npt-error-200: #fce4d1;
    --npt-error-300: #facdaa;
    --npt-error-400: #f1a36a;
    --npt-error-500: #e53900;
    --npt-error-600: #cc3300;
    --npt-error-700: #b32d00;
    --npt-error-800: #992600;
    --npt-error-900: #801f00;

    /* ── Tertiary Blue ────────────────────────────────────────────────────── */
    --npt-tertiary-blue-100: #f5f8fa;
    --npt-tertiary-blue-200: #d5e8f5;
    --npt-tertiary-blue-300: #a1cce9;
    --npt-tertiary-blue-400: #55a1d4;
    --npt-tertiary-blue-500: #257fba;
    --npt-tertiary-blue-600: #206da1;
    --npt-tertiary-blue-700: #1b5c87;
    --npt-tertiary-blue-800: #164b6e;
    --npt-tertiary-blue-900: #113954;

    /* ── Teal ─────────────────────────────────────────────────────────────── */
    --npt-teal-100: #f2fcfb;
    --npt-teal-200: #defaf6;
    --npt-teal-300: #c4f3ec;
    --npt-teal-400: #a0e8dd;
    --npt-teal-500: #4fc2b0;
    --npt-teal-600: #45a899;
    --npt-teal-700: #3a8f82;
    --npt-teal-800: #30756a;
    --npt-teal-900: #265c53;

    /* ── Purple ───────────────────────────────────────────────────────────── */
    --npt-purple-100: #fbf5fc;
    --npt-purple-200: #f2e9f5;
    --npt-purple-300: #e5d1eb;
    --npt-purple-400: #c29ecd;
    --npt-purple-500: #813b9e;
    --npt-purple-600: #6c3285;
    --npt-purple-700: #57286b;
    --npt-purple-800: #421f52;
    --npt-purple-900: #2d1538;

    /* ── Orange ───────────────────────────────────────────────────────────── */
    --npt-orange-100: #fcf2ea;
    --npt-orange-200: #fce4d1;
    --npt-orange-300: #facdaa;
    --npt-orange-400: #f1a36a;
    --npt-orange-500: #f17a22;
    --npt-orange-600: #d96e1f;
    --npt-orange-700: #bf621b;
    --npt-orange-800: #a65417;
    --npt-orange-900: #8c4713;

    /* ── Elevation (Box Shadows) ──────────────────────────────────────────── */
    --npt-elevation-1: 0 1px 2px rgba(20, 23, 26, 0.15), 0 1px 3px 1px rgba(20, 23, 26, 0.08);
    --npt-elevation-2: 0 1px 2px rgba(20, 23, 26, 0.15), 0 2px 6px 2px rgba(20, 23, 26, 0.08);
    --npt-elevation-3: 0 1px 3px rgba(20, 23, 26, 0.15), 0 4px 4px rgba(20, 23, 26, 0.12);
    --npt-elevation-4: 0 2px 3px rgba(20, 23, 26, 0.15), 0 6px 10px 4px rgba(20, 23, 26, 0.08);
    --npt-elevation-5: 0 4px 4px rgba(20, 23, 26, 0.15), 0 8px 12px 6px rgba(20, 23, 26, 0.08);

    /* ── Border Radius ────────────────────────────────────────────────────── */
    --npt-radius-sm: 4px;
    --npt-radius-md: 8px;
    --npt-radius-lg: 16px;
    --npt-radius-full: 100px;

    /* ── Spacing ──────────────────────────────────────────────────────────── */
    --npt-space-2: 2px;
    --npt-space-4: 4px;
    --npt-space-8: 8px;
    --npt-space-12: 12px;
    --npt-space-16: 16px;
    --npt-space-20: 20px;
    --npt-space-24: 24px;
    --npt-space-32: 32px;
    --npt-space-40: 40px;
    --npt-space-48: 48px;
    --npt-space-64: 64px;
    --npt-space-80: 80px;

    /* ── Semantic Tokens ──────────────────────────────────────────────────── */
    --npt-color-text: var(--npt-gray-900);
    --npt-color-text-secondary: var(--npt-gray-700);
    --npt-color-text-disabled: var(--npt-gray-600);
    --npt-color-text-inverse: var(--npt-gray-50);
    --npt-color-text-link: var(--npt-primary-500);

    --npt-color-surface: var(--npt-gray-50);
    --npt-color-surface-secondary: var(--npt-gray-100);
    --npt-color-surface-hover: var(--npt-gray-200);

    --npt-color-border: var(--npt-gray-400);
    --npt-color-border-light: var(--npt-gray-300);

    --npt-color-interactive: var(--npt-primary-500);
    --npt-color-interactive-hover: var(--npt-primary-600);
    --npt-color-interactive-pressed: var(--npt-primary-700);
    --npt-color-interactive-disabled: var(--npt-gray-300);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Neptune Component Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Base Reset ───────────────────────────────────────────────────────────── */
body {
    font-family: var(--npt-font-family);
    font-size: var(--npt-font-size-sm);
    line-height: var(--npt-line-height-sm);
    color: var(--npt-color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Typography Utilities ─────────────────────────────────────────────────── */
.npt-heading-1 {
    font-family: var(--npt-font-family);
    font-size: var(--npt-font-size-2xl);
    font-weight: var(--npt-font-weight-regular);
    line-height: 1.17;
    letter-spacing: -2px;
}

.npt-heading-2 {
    font-family: var(--npt-font-family);
    font-size: var(--npt-font-size-xl);
    font-weight: var(--npt-font-weight-regular);
    line-height: var(--npt-line-height-xl);
}

.npt-heading-3 {
    font-family: var(--npt-font-family);
    font-size: 28px;
    font-weight: var(--npt-font-weight-regular);
    line-height: 36px;
}

.npt-heading-4 {
    font-family: var(--npt-font-family);
    font-size: var(--npt-font-size-lg);
    font-weight: var(--npt-font-weight-regular);
    line-height: var(--npt-line-height-lg);
}

.npt-heading-5 {
    font-family: var(--npt-font-family);
    font-size: 18px;
    font-weight: var(--npt-font-weight-medium);
    line-height: 24px;
}

.npt-heading-6 {
    font-family: var(--npt-font-family);
    font-size: var(--npt-font-size-md);
    font-weight: var(--npt-font-weight-medium);
    line-height: var(--npt-line-height-md);
}

.npt-body-lg {
    font-size: var(--npt-font-size-md);
    line-height: var(--npt-line-height-md);
}

.npt-body-md {
    font-size: var(--npt-font-size-sm);
    line-height: var(--npt-line-height-sm);
}

.npt-body-sm {
    font-size: var(--npt-font-size-xs);
    line-height: var(--npt-line-height-xs);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.npt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--npt-space-8);
    font-family: var(--npt-font-family);
    font-weight: var(--npt-font-weight-regular);
    border-radius: var(--npt-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

/* Button Sizes */
.npt-btn--sm {
    padding: var(--npt-space-8) var(--npt-space-12);
    font-size: var(--npt-font-size-sm);
    line-height: var(--npt-line-height-sm);
}

.npt-btn--md {
    padding: var(--npt-space-12) var(--npt-space-16);
    font-size: var(--npt-font-size-md);
    line-height: var(--npt-line-height-md);
}

.npt-btn--lg {
    padding: var(--npt-space-16) var(--npt-space-16);
    font-size: var(--npt-font-size-lg);
    line-height: var(--npt-line-height-lg);
}

/* Primary Button */
.npt-btn--primary {
    background-color: var(--npt-primary-500);
    color: var(--npt-gray-50);
}

.npt-btn--primary:hover {
    background-color: var(--npt-primary-600);
    color: var(--npt-gray-50);
}

.npt-btn--primary:active {
    background-color: var(--npt-primary-700);
}

.npt-btn--primary:disabled,
.npt-btn--primary.disabled {
    background-color: var(--npt-gray-300);
    color: var(--npt-gray-700);
    cursor: not-allowed;
}

/* Secondary Button */
.npt-btn--secondary {
    background-color: var(--npt-gray-50);
    border-color: var(--npt-primary-500);
    color: var(--npt-primary-500);
}

.npt-btn--secondary:hover {
    background-color: var(--npt-primary-100);
    border-color: var(--npt-primary-600);
    color: var(--npt-primary-600);
}

.npt-btn--secondary:active {
    background-color: var(--npt-primary-200);
    border-color: var(--npt-primary-700);
    color: var(--npt-primary-700);
}

.npt-btn--secondary:disabled,
.npt-btn--secondary.disabled {
    background-color: var(--npt-gray-50);
    border-color: var(--npt-gray-300);
    color: var(--npt-gray-700);
    cursor: not-allowed;
}

/* Tertiary Button (text only) */
.npt-btn--tertiary {
    background-color: transparent;
    color: var(--npt-primary-500);
}

.npt-btn--tertiary:hover {
    background-color: var(--npt-primary-100);
    color: var(--npt-primary-600);
}

.npt-btn--tertiary:active {
    background-color: var(--npt-primary-200);
    color: var(--npt-primary-700);
}

/* Flat Button */
.npt-btn--flat {
    background-color: var(--npt-primary-100);
    color: var(--npt-primary-500);
}

.npt-btn--flat:hover {
    background-color: var(--npt-primary-200);
    color: var(--npt-primary-900);
}

/* Destructive Button */
.npt-btn--destructive {
    background-color: var(--npt-error-500);
    color: var(--npt-gray-50);
}

.npt-btn--destructive:hover {
    background-color: var(--npt-error-600);
    color: var(--npt-gray-50);
}

/* Destructive Outline Button */
.npt-btn--destructive-outline {
    background-color: var(--npt-gray-50);
    border-color: var(--npt-error-600);
    color: var(--npt-error-600);
}

.npt-btn--destructive-outline:hover {
    background-color: var(--npt-error-100);
    border-color: var(--npt-error-500);
    color: var(--npt-error-500);
}

/* ── Chips ────────────────────────────────────────────────────────────────── */
.npt-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--npt-space-4);
    padding: var(--npt-space-8) var(--npt-space-12);
    border-radius: var(--npt-radius-lg);
    font-family: var(--npt-font-family);
    font-size: var(--npt-font-size-sm);
    font-weight: var(--npt-font-weight-medium);
    cursor: pointer;
    transition: background-color 0.15s ease;
    border: 1px solid var(--npt-gray-400);
    background-color: var(--npt-gray-50);
    color: var(--npt-color-text);
}

.npt-chip--selected {
    background-color: var(--npt-primary-500);
    border-color: var(--npt-primary-500);
    color: var(--npt-gray-50);
}

.npt-chip:hover:not(.npt-chip--selected) {
    background-color: var(--npt-gray-200);
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.npt-card {
    background-color: var(--npt-gray-50);
    border-radius: var(--npt-radius-md);
    box-shadow: var(--npt-elevation-1);
    overflow: hidden;
}

.npt-card--elevated {
    box-shadow: var(--npt-elevation-3);
}

.npt-card__header {
    padding: var(--npt-space-16);
    border-bottom: 1px solid var(--npt-gray-300);
}

.npt-card__body {
    padding: var(--npt-space-16);
}

.npt-card__footer {
    padding: var(--npt-space-16);
    border-top: 1px solid var(--npt-gray-300);
}

/* ── Data Table ───────────────────────────────────────────────────────────── */
.npt-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--npt-font-family);
    font-size: var(--npt-font-size-sm);
}

.npt-table th {
    padding: var(--npt-space-12) var(--npt-space-16);
    font-weight: var(--npt-font-weight-medium);
    color: var(--npt-color-text);
    text-align: left;
    background-color: var(--npt-gray-100);
    border-bottom: 1px solid var(--npt-gray-400);
}

.npt-table td {
    padding: var(--npt-space-12) var(--npt-space-16);
    color: var(--npt-color-text);
    border-bottom: 1px solid var(--npt-gray-400);
}

.npt-table tbody tr:hover {
    background-color: var(--npt-gray-100);
}

/* ── Modal ────────────────────────────────────────────────────────────────── */
.npt-modal {
    background-color: var(--npt-gray-50);
    border-radius: var(--npt-radius-md);
    box-shadow: var(--npt-elevation-5);
    overflow: hidden;
}

.npt-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--npt-space-16);
}

.npt-modal__header-title {
    font-size: var(--npt-font-size-xl);
    font-weight: var(--npt-font-weight-regular);
    color: var(--npt-color-text);
}

.npt-modal__body {
    padding: 0 var(--npt-space-16) var(--npt-space-24);
}

.npt-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--npt-space-12);
    padding: var(--npt-space-16);
    border-top: 1px solid var(--npt-gray-400);
}

/* ── Inline Notifications ─────────────────────────────────────────────────── */
.npt-notification {
    display: flex;
    align-items: flex-start;
    gap: var(--npt-space-8);
    padding: var(--npt-space-12) var(--npt-space-12) var(--npt-space-12) var(--npt-space-16);
    border-radius: var(--npt-radius-md);
    border: 1px solid;
    font-family: var(--npt-font-family);
}

.npt-notification--info {
    background-color: var(--npt-primary-100);
    border-color: var(--npt-primary-500);
}

.npt-notification--success {
    background-color: var(--npt-success-100);
    border-color: var(--npt-success-800);
}

.npt-notification--warning {
    background-color: var(--npt-warning-100);
    border-color: var(--npt-warning-500);
}

.npt-notification--error {
    background-color: var(--npt-error-100);
    border-color: var(--npt-error-500);
}

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.npt-tabs {
    display: flex;
    border-bottom: 1px solid var(--npt-gray-400);
}

.npt-tab {
    padding: 14px var(--npt-space-16);
    font-family: var(--npt-font-family);
    font-size: var(--npt-font-size-sm);
    font-weight: var(--npt-font-weight-medium);
    color: var(--npt-color-text-secondary);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.npt-tab:hover {
    color: var(--npt-primary-500);
}

.npt-tab--active {
    color: var(--npt-primary-500);
    border-bottom-color: var(--npt-primary-500);
}

/* ── Input Fields ─────────────────────────────────────────────────────────── */
.npt-input {
    font-family: var(--npt-font-family);
    font-size: var(--npt-font-size-sm);
    line-height: var(--npt-line-height-sm);
    padding: var(--npt-space-12) var(--npt-space-16);
    border: 1px solid var(--npt-gray-400);
    border-radius: var(--npt-radius-sm);
    background-color: var(--npt-gray-50);
    color: var(--npt-color-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.npt-input:hover {
    border-color: var(--npt-gray-600);
}

.npt-input:focus {
    outline: none;
    border-color: var(--npt-primary-500);
    box-shadow: 0 0 0 2px var(--npt-primary-200);
}

.npt-input:disabled {
    background-color: var(--npt-gray-200);
    color: var(--npt-color-text-disabled);
    cursor: not-allowed;
}

.npt-input--error {
    border-color: var(--npt-error-500);
}

.npt-input--error:focus {
    box-shadow: 0 0 0 2px var(--npt-error-200);
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.npt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--npt-radius-full);
    font-family: var(--npt-font-family);
    font-size: var(--npt-font-size-xs);
    font-weight: var(--npt-font-weight-medium);
    background-color: var(--npt-error-500);
    color: var(--npt-gray-50);
}

.npt-badge--sm {
    min-width: 8px;
    height: 8px;
    padding: 0;
}

/* ── Navigation (App Shell Global Header) ─────────────────────────────────── */
.npt-app-header {
    display: flex;
    align-items: center;
    padding: var(--npt-space-8) var(--npt-space-16);
    background-color: var(--npt-gray-50);
    border-bottom: 1px solid var(--npt-gray-300);
    box-shadow: var(--npt-elevation-1);
}

.npt-app-header__brand {
    display: flex;
    align-items: center;
    gap: var(--npt-space-12);
    text-decoration: none;
}

.npt-app-header__title {
    font-family: var(--npt-font-family);
    font-size: 18px;
    font-weight: var(--npt-font-weight-medium);
    color: var(--npt-primary-500);
}

.npt-app-header__nav {
    display: flex;
    align-items: center;
    gap: var(--npt-space-4);
    margin-left: auto;
}

.npt-app-header__nav-link {
    padding: var(--npt-space-8) var(--npt-space-12);
    font-family: var(--npt-font-family);
    font-size: var(--npt-font-size-sm);
    font-weight: var(--npt-font-weight-medium);
    color: var(--npt-color-text-secondary);
    text-decoration: none;
    border-radius: var(--npt-radius-sm);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.npt-app-header__nav-link:hover {
    background-color: var(--npt-gray-200);
    color: var(--npt-primary-500);
}

.npt-app-header__nav-link--active {
    color: var(--npt-primary-500);
    background-color: var(--npt-primary-100);
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.npt-pagination {
    display: flex;
    align-items: center;
    gap: var(--npt-space-4);
}

.npt-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: var(--npt-space-4) var(--npt-space-8);
    border: 1px solid var(--npt-gray-400);
    border-radius: var(--npt-radius-sm);
    background-color: var(--npt-gray-50);
    color: var(--npt-color-text);
    font-family: var(--npt-font-family);
    font-size: var(--npt-font-size-sm);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.npt-pagination__btn:hover {
    background-color: var(--npt-gray-200);
}

.npt-pagination__btn--active {
    background-color: var(--npt-primary-500);
    border-color: var(--npt-primary-500);
    color: var(--npt-gray-50);
}

/* ── Breadcrumbs ──────────────────────────────────────────────────────────── */
.npt-breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--npt-space-8);
    font-family: var(--npt-font-family);
    font-size: var(--npt-font-size-sm);
}

.npt-breadcrumbs__item {
    color: var(--npt-color-text-secondary);
    text-decoration: none;
}

.npt-breadcrumbs__item:hover {
    color: var(--npt-primary-500);
    text-decoration: underline;
}

.npt-breadcrumbs__item--current {
    color: var(--npt-color-text);
    font-weight: var(--npt-font-weight-medium);
}

.npt-breadcrumbs__separator {
    color: var(--npt-gray-500);
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.npt-divider {
    border: none;
    border-top: 1px solid var(--npt-gray-400);
    margin: var(--npt-space-16) 0;
}

/* ── Progress Bar ─────────────────────────────────────────────────────────── */
.npt-progress {
    width: 100%;
    height: 4px;
    background-color: var(--npt-gray-300);
    border-radius: var(--npt-radius-full);
    overflow: hidden;
}

.npt-progress__bar {
    height: 100%;
    background-color: var(--npt-primary-500);
    border-radius: var(--npt-radius-full);
    transition: width 0.3s ease;
}

/* ── Loader / Spinner ─────────────────────────────────────────────────────── */
.npt-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--npt-gray-300);
    border-top-color: var(--npt-primary-500);
    border-radius: 50%;
    animation: npt-spin 0.8s linear infinite;
}

@keyframes npt-spin {
    to { transform: rotate(360deg); }
}

/* ── Status Indicators ────────────────────────────────────────────────────── */
.npt-status {
    display: inline-flex;
    align-items: center;
    gap: var(--npt-space-4);
    font-size: var(--npt-font-size-xs);
    font-weight: var(--npt-font-weight-medium);
}

.npt-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.npt-status--active::before { background-color: var(--npt-success-500); }
.npt-status--warning::before { background-color: var(--npt-warning-500); }
.npt-status--error::before { background-color: var(--npt-error-500); }
.npt-status--inactive::before { background-color: var(--npt-gray-500); }
