/*
 * NGS Virtual theme (2026).
 * Everything is namespaced .n- so pages still rendered by the old
 * flyingsvirtual views can share the layout without style clashes.
 */

:root {
  --n-navy: #09264B;
  --n-navy-deep: #061B37;
  --n-ocean: #0878D1;
  --n-cyan: #25B9F2;
  --n-sky: #53D4F5;
  --n-ground: #F4F7FA;
  --n-white: #FFFFFF;
  --n-ink: #1E293B;
  --n-ink-strong: #0F172A;
  --n-slate: #475569;
  --n-muted: #64748B;
  --n-line: #E2E8F0;
  --n-line-soft: #EEF2F6;
  --n-input: #CBD5E1;
  --n-on-navy: #C9D6E6;
  --n-on-navy-muted: #9FB3CC;
  --n-hard: #B4430B;
  --n-ok-bg: #E7F6EC; --n-ok: #166534;
  --n-info-bg: #E0F2FE; --n-info: #075985;
  --n-warn-bg: #FEF3C7; --n-warn: #854D0E;
  --n-err-bg: #FEE2E2; --n-err: #991B1B;
  --n-radius: 10px;
  --n-head: 'Montserrat', system-ui, sans-serif;
  --n-body: 'Lato', system-ui, sans-serif;
}

/* ---------- Base (only on pages built for this theme) ---------- */
body.n-body { margin: 0; background: var(--n-ground); color: var(--n-ink); font-family: var(--n-body); font-size: 16px; line-height: 1.55; }
.n-body a { color: var(--n-ocean); text-decoration: none; }
.n-body a:hover { color: var(--n-navy); }
.n-body :focus-visible { outline: 2px solid var(--n-cyan); outline-offset: 2px; }
.n-body h1, .n-body h2, .n-body h3, .n-body h4 { font-family: var(--n-head); font-weight: 700; color: var(--n-navy); letter-spacing: -0.02em; margin: 0; }

.n-wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; }
.n-main { padding: 40px 0 72px; }
.n-h1 { font-size: 34px; }
.n-h2 { font-size: 22px; }
.n-lead { margin: 6px 0 0; color: var(--n-muted); max-width: 720px; }
.n-pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.n-muted { color: var(--n-muted); }
.n-slate { color: var(--n-slate); }
.n-hard { color: var(--n-hard); font-weight: 700; }

/* ---------- Header ---------- */
.n-header { background: var(--n-navy); position: relative; z-index: 50; }
.n-header.is-over-photo { background: transparent; position: absolute; left: 0; right: 0; top: 0; }
.n-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; min-height: 72px; }
.n-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.n-brand img { height: 36px; width: auto; display: block; }
.n-brand-word { display: flex; flex-direction: column; line-height: 1; }
.n-brand-word b { font-family: var(--n-head); font-weight: 700; font-size: 18px; letter-spacing: .1em; color: #fff; }
.n-brand-word span { font-family: var(--n-head); font-weight: 600; font-size: 9px; letter-spacing: .62em; color: var(--n-sky); margin-top: 5px; }
.n-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.n-menu > li > a, .n-menu > li > button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 6px; border: 0; background: none;
  font-family: var(--n-head); font-weight: 500; font-size: 15px; color: #fff; opacity: .88; cursor: pointer; text-decoration: none;
}
.n-menu > li > a:hover, .n-menu > li > button:hover, .n-menu > li > .is-on { opacity: 1; background: rgba(255,255,255,.1); color: #fff; }
.n-menu .dropdown-toggle::after { display: none; }
.n-menu .n-caret { width: 10px; height: 10px; }
.n-header .dropdown-menu { border: 0; border-radius: var(--n-radius); padding: 8px; min-width: 220px; box-shadow: 0 16px 40px rgba(4,21,44,.22); font-family: var(--n-body); }
.n-header .dropdown-item { border-radius: 6px; padding: 9px 12px; color: var(--n-ink); font-size: 15px; }
.n-header .dropdown-item:hover, .n-header .dropdown-item:focus { background: var(--n-ground); color: var(--n-navy); }
.n-header .dropdown-divider { margin: 6px 4px; border-color: var(--n-line); }
.n-actions { display: flex; align-items: center; gap: 8px; }
.n-login { color: #fff !important; font-family: var(--n-head); font-weight: 500; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; }
.n-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #1E4A7E; }
.n-user { display: inline-flex; align-items: center; gap: 10px; color: #fff; background: none; border: 0; min-height: 44px; font-size: 15px; cursor: pointer; padding: 0 6px; }
.n-burger { display: none; width: 44px; height: 44px; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; align-items: center; justify-content: center; }

/* ---------- Buttons ---------- */
.n-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 6px; border: 0;
  font-family: var(--n-head); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.n-btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.n-btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.n-btn--primary { background: var(--n-ocean); color: #fff !important; }
.n-btn--primary:hover { background: var(--n-navy); }
.n-btn--cyan { background: var(--n-cyan); color: var(--n-navy) !important; }
.n-btn--cyan:hover { background: var(--n-sky); }
.n-btn--line { background: #fff; color: var(--n-navy) !important; box-shadow: inset 0 0 0 1px var(--n-input); }
.n-btn--line:hover { box-shadow: inset 0 0 0 1px var(--n-navy); }
.n-btn--ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.n-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255,255,255,.08); }
.n-btn--booked { background: var(--n-info-bg); color: var(--n-info) !important; }
.n-btn--danger { background: #fff; color: var(--n-err) !important; box-shadow: inset 0 0 0 1px #FCA5A5; }

/* ---------- Panels, chips, placeholders ---------- */
.n-panel { background: #fff; border-radius: var(--n-radius); padding: 24px 26px; }
.n-panel + .n-panel { margin-top: 24px; }
.n-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.n-panel-head h2 { font-size: 19px; }
.n-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: #EAF4FB; color: var(--n-info); font-size: 14px; font-weight: 700; }
.n-status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.n-status--ok { background: var(--n-ok-bg); color: var(--n-ok); }
.n-status--info { background: var(--n-info-bg); color: var(--n-info); }
.n-status--warn { background: var(--n-warn-bg); color: var(--n-warn); }
.n-status--err { background: var(--n-err-bg); color: var(--n-err); }
.n-status--muted { background: #F1F5F9; color: var(--n-slate); }
.n-placeholder { display: flex; align-items: center; justify-content: center; min-height: 240px; border-radius: 8px; border: 1px dashed var(--n-input); background: #F8FAFC; color: var(--n-muted); }
.n-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.n-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.n-cols { display: grid; grid-template-columns: minmax(0,8fr) minmax(0,4fr); gap: 24px; align-items: start; }
.n-sidebar-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.n-sidebar-layout > .n-side { flex: 1 1 260px; max-width: 100%; }
.n-sidebar-layout > .n-content { flex: 999 1 640px; min-width: 0; }
@media (min-width: 1000px) { .n-sidebar-layout > .n-side { flex: 0 0 260px; position: sticky; top: 24px; } }

/* ---------- Tables ---------- */
.n-table-box { background: #fff; border-radius: var(--n-radius); }
.n-table { width: 100%; border-collapse: collapse; }
.n-table th { font-size: 13px; font-weight: 700; color: var(--n-muted); text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--n-line); white-space: nowrap; }
.n-table td { padding: 13px 12px; border-bottom: 1px solid var(--n-line-soft); vertical-align: middle; }
.n-table tr:last-child td { border-bottom: 0; }
.n-table th:first-child, .n-table td:first-child { padding-left: 20px; }
.n-table th:last-child, .n-table td:last-child { padding-right: 16px; }
.n-table tbody tr:hover td { background: #F8FAFC; }
.n-table tr.is-booked td { background: #EAF4FB; }
.n-table .num { text-align: right; }
.n-flight { font-family: var(--n-head); font-weight: 700; color: var(--n-navy); }

/* ---------- Forms ---------- */
.n-field label, .n-label { display: block; font-weight: 700; font-size: 14px; color: #334155; margin-bottom: 6px; }
.n-input, .n-field input:not([type=checkbox]):not([type=radio]):not([type=file]), .n-field select, .n-field textarea {
  width: 100%; box-sizing: border-box; min-height: 48px; border: 1px solid var(--n-input); border-radius: 6px; padding: 0 14px; font: inherit; color: var(--n-ink-strong); background: #fff;
}
.n-field textarea { padding: 12px 14px; min-height: 110px; resize: vertical; }
.n-input::placeholder, .n-field input::placeholder, .n-field textarea::placeholder { color: #94A3B8; }
.n-code { font-family: var(--n-head) !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.n-help { margin: 6px 0 0; font-size: 14px; color: var(--n-muted); }
.n-error { margin: 6px 0 0; font-size: 14px; color: var(--n-err); font-weight: 700; }
.n-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 20px; }
.n-form-grid .is-wide { grid-column: 1 / -1; }
.n-fieldset { border: 0; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--n-line); }
.n-fieldset legend { padding: 0 0 16px; font-family: var(--n-head); font-weight: 700; font-size: 18px; color: var(--n-navy); float: none; width: auto; }
.n-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #334155; }
.n-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--n-ocean); }

/* ---------- Flash messages ---------- */
.n-flash { display: flex; gap: 12px; align-items: flex-start; border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; font-weight: 700; }
.n-flash--success { background: var(--n-ok-bg); color: var(--n-ok); }
.n-flash--info { background: var(--n-info-bg); color: var(--n-info); }
.n-flash--warning { background: var(--n-warn-bg); color: var(--n-warn); }
.n-flash--danger, .n-flash--error { background: var(--n-err-bg); color: var(--n-err); }

/* ---------- Pagination (Laravel bootstrap-5 markup) ---------- */
.n-body .pagination { gap: 6px; margin: 16px 0 0; flex-wrap: wrap; }
.n-body .page-link { border-radius: 6px !important; border: 0; box-shadow: inset 0 0 0 1px var(--n-input); color: var(--n-navy); min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; font-family: var(--n-head); font-weight: 600; }
.n-body .page-item.active .page-link { background: var(--n-navy); box-shadow: none; color: #fff; }

/* ---------- Footer ---------- */
.n-footer { background: var(--n-navy-deep); color: var(--n-on-navy); padding: 64px 0 32px; font-size: 15px; }
.n-footer a { color: var(--n-on-navy); text-decoration: none; }
.n-footer a:hover { color: #fff; }
.n-foot { display: grid; grid-template-columns: minmax(0,1.6fr) repeat(4, minmax(0,1fr)); gap: 40px; }
.n-foot-col { display: flex; flex-direction: column; gap: 10px; }
.n-foot-col h3 { font-family: var(--n-head); font-weight: 600; font-size: 16px; color: #fff; margin: 0 0 4px; letter-spacing: 0; }
.n-foot-note { margin: 18px 0 0; max-width: 280px; color: #94A3B8; font-size: 14px; }
.n-foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(201,214,230,.14); font-size: 14px; color: #94A3B8; }

/* ---------- Auth split layout ---------- */
.n-auth { display: flex; flex-wrap: wrap; min-height: 100vh; background: #fff; }
.n-auth-photo { flex: 1 1 560px; position: relative; min-height: 320px; background: #061B37 url('../images/photos/login-night.jpg') center / cover no-repeat; }
.n-auth-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,27,55,.55) 0%, rgba(6,27,55,0) 30%, rgba(6,27,55,0) 70%, rgba(6,27,55,.6) 100%); }
.n-auth-photo .n-brand { position: absolute; left: 40px; top: 32px; z-index: 1; }
.n-auth-credit { position: absolute; left: 40px; bottom: 28px; margin: 0; font-size: 14px; color: rgba(255,255,255,.85); z-index: 1; }
.n-auth-side { flex: 0 1 560px; display: flex; flex-direction: column; justify-content: center; padding: 64px 72px; box-sizing: border-box; }
.n-auth-inner { width: 100%; max-width: 400px; margin: 0 auto; }
.n-auth-foot { margin: 56px auto 0; max-width: 400px; width: 100%; font-size: 13px; color: #94A3B8; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .n-cols { grid-template-columns: minmax(0,1fr); }
  .n-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1000px) {
  .n-foot { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .n-burger { display: inline-flex; }
  .n-menu-wrap { display: none; width: 100%; order: 3; padding-bottom: 12px; }
  .n-menu-wrap.show { display: block; }
  .n-menu { flex-direction: column; align-items: stretch; }
  .n-header .dropdown-menu { position: static !important; transform: none !important; box-shadow: none; }
}
@media (max-width: 900px) {
  .n-auth-side { flex: 1 1 100%; padding: 40px 20px; }
  .n-auth-photo { flex-basis: 100%; min-height: 240px; }
  .n-form-grid, .n-grid-2 { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .n-wrap { padding: 0 16px; }
  .n-grid-3 { grid-template-columns: minmax(0,1fr); }
  .n-table-box { overflow-x: auto; }
  .n-table { min-width: 620px; }
  .n-h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.n-user::after{display:none}
