/* ===== Global ===== */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f4f6f9;
    color: #1a1a1a;
}

/* ===== Navigation ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.logo {
    font-weight: 700;
    font-size: 20px;
    color: #0a2342;
    text-decoration: none;
    display: inline-block;
}

.nav-links a {
    margin-left: 30px;
    text-decoration: none;
    font-weight: 600;
    color: #0a2342;
}

.nav-links a + a {
    border-left: 1px solid rgba(10, 35, 66, 0.25);
    padding-left: 18px;
}

.nav-links a:hover {
    opacity: 0.7;
}

.mobile-menu {
    display: none;
}

.mobile-menu summary {
    list-style: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(10, 35, 66, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary span {
    display: block;
    width: 18px;
    height: 2px;
    background: #0a2342;
    border-radius: 999px;
}

.mobile-menu[open] .mobile-menu-panel {
    display: flex;
}

.mobile-menu-panel {
    display: none;
    position: absolute;
    right: 18px;
    top: 62px;
    min-width: 190px;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border: 1px solid #dce3ea;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(10, 35, 66, 0.12);
    overflow: hidden;
    z-index: 30;
}

.mobile-menu-panel a {
    text-decoration: none;
    color: #0a2342;
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f6;
}

.mobile-menu-panel a:last-child {
    border-bottom: none;
}

.mobile-menu-panel a:hover {
    background: #f7f9fc;
}

@media (max-width: 700px) {
    nav {
        padding: 14px 18px;
        flex-wrap: nowrap;
        position: relative;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
        margin-left: auto;
    }

    .form-card .field-short,
    .form-card .field-medium,
    .form-card .field-long {
        max-width: 100%;
    }
}

/* ===== Flash Messages ===== */
.flash-messages {
    max-width: 1200px;
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    padding: 0 20px;
    z-index: 1000;
    pointer-events: none;
}

.flash-message {
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 12px 14px;
    pointer-events: auto;
    animation: flash-hide-after-delay 10s steps(1, end) forwards;
}

.flash-success {
    background: #e9f8ef;
    border: 1px solid #9bd3ae;
    color: #155724;
}

.flash-error {
    background: #fdecec;
    border: 1px solid #efb4b4;
    color: #842029;
}

@keyframes flash-hide-after-delay {
    0% {
        opacity: 1;
        visibility: visible;
    }
    99% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        margin: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }
}

/* ===== Landing Page Hero ===== */
.hero {
    text-align: center;
    padding: 120px 20px;
    max-width: 800px;
    margin: auto;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #0a2342;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #555;
}

.hero-with-image {
    max-width: none;
    width: 100%;
    border-radius: 0;
    padding: 72px 20px 132px;
    background-image:
        linear-gradient(rgba(10, 35, 66, 0.64), rgba(10, 35, 66, 0.56)),
        url("/static/images/Home%20(1).jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-with-image .hero-content h1,
.hero-with-image .hero-content p {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-with-image .cta-button {
    background-color: #ffffff;
    color: #0a2342;
}

.hero-with-image .cta-button:hover {
    background-color: #e7eef7;
}

/* ===== CTA Button (Used Everywhere) ===== */
.cta-button {
    background-color: #0a2342;
    color: white;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #163a6b;
}

.submit-button {
    background-color: #0a2342;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #163a6b;
}

/* ===== Features Section (Homepage) ===== */
.features {
    background-color: white;
    padding: 80px 20px;
    text-align: center;
}

.features h2 {
    font-size: 28px;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: auto;
}

.feature-card {
    padding: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #0a2342;
}

.feature-card p {
    color: #555;
}

.dashboard-home-cards .form-card {
    text-align: center;
}

.dashboard-home-cards .cta-button {
    margin-top: 8px;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 30px;
    background-color: #0a2342;
    color: white;
}

/* ================================================= */
/* ================= SUBMIT PAGE =================== */
/* ================================================= */

/* ===== Form Container ===== */
.form-container {
    max-width: 850px;
    margin: 70px auto;
    padding: 20px;
}

.form-container h1 {
    text-align: center;
    margin-bottom: 45px;
    color: #0a2342;
    font-size: 32px;
}

/* ===== Form Cards ===== */
.form-card {
    background-color: white;
    padding: 28px;
    margin-bottom: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.form-card h2 {
    margin-bottom: 25px;
    color: #0a2342;
    font-size: 20px;
}

/* ===== Inputs ===== */
form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #0a2342;
    box-shadow: 0 0 0 3px rgba(10, 35, 66, 0.1);
}

/* Submit form field sizing by expected input length */
.form-card .field-short {
    max-width: 240px;
}

.form-card .field-medium {
    max-width: 420px;
}

.form-card .field-long {
    max-width: 100%;
}

/* ===== Checkbox Styling ===== */
.checkbox-row {
    margin-top: 5px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 40px;
    margin-top: 10px;
}

@media (min-width: 768px) {
    .checkbox-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0a2342;
    cursor: pointer;
}

/* ===== Submit Button Wrapper ===== */
.submit-wrapper {
    text-align: center;
    margin-top: 10px;
}

/* =========================
   DASHBOARD
========================= */

.dashboard {
    padding: 60px 8%;
}

.dashboard h2 {
    margin-bottom: 30px;
}

.admin-tools {
    margin: -10px 0 18px;
}

.admin-link,
.admin-link-secondary {
    font-weight: 600;
    color: #0a2342;
    text-decoration: none;
}

.admin-link:hover,
.admin-link-secondary:hover {
    opacity: 0.7;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.dashboard-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.dashboard-filters input,
.dashboard-filters select {
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.dashboard-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Base card look (keep your existing styles if you already have them) */
.flight-card{
  padding:18px;
  border-radius:14px;
  background: #ffffff;
  border: 1px solid #dce3ea;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.flight-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* Status color accents (left border for ramp scanning) */
.card-pending{
  border-left: 6px solid #facc15;
}

.card-in-progress{
  border-left: 6px solid #38bdf8;
}

.card-complete{
  border-left: 6px solid #4ade80;
}

.flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pending {
    background: #f8f1da;
    color: #7a6118;
}

.in-progress {
    background: #e5f4fb;
    color: #185b77;
}

.complete {
    background: #e7f7ee;
    color: #1f6a3f;
}

.flight-body p {
    margin-bottom: 6px;
    font-size: 1rem;
    line-height: 1.4;
}

.flight-card-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 2;
    border-radius: 14px;
}

.tail-number {
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}

.time-row {
    margin-top: 2px;
}

.time-value {
    font-size: 1rem;
    font-weight: 600;
    color: #0a2342;
}

.phone-link {
    position: relative;
    z-index: 3;
    color: #0a2342;
    font-weight: 600;
    text-decoration: none;
}

.phone-link:hover {
    text-decoration: underline;
}

.flight-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.flight-actions form {
    width: 100%;
    position: relative;
    z-index: 3;
}

.flight-actions button {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #1f3148;
    border-radius: 8px;
    background: transparent;
    color: #1f3148;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: #1f3148;
    color: #ffffff;
    border-color: #1f3148;
}

.btn-secondary {
    background: transparent;
    color: #1f3148;
    border-color: #1f3148;
}

.btn-danger-outline {
    background: transparent;
    color: #b43a3a;
    border-color: #b43a3a;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-secondary:hover {
    background: #f4f6f9;
}

.btn-danger-outline:hover {
    background: #fff2f2;
}

/* =========================
   Summary Bar (Dashboard)
========================= */

.summary-bar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom: 25px;
}

.summary-pill{
  padding:10px 16px;
  border-radius:999px;
  font-weight:600;
  font-size:0.95rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

/* Status colors (match your badge classes if you already have them) */
.summary-pill.pending{
  border-color: #facc15;
  color: #facc15;
}

.summary-pill.in-progress{
  border-color: #38bdf8;
  color: #38bdf8;
}

.summary-pill.complete{
  border-color: #4ade80;
  color: #4ade80;
}

.flight-title{
  display:flex;
  align-items:center;
  gap:10px;
}

.pill{
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

.pill-ovn{
  border-color: #f59e0b;
  color: #f59e0b;
  font-weight: 700;
}

.services-list{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.service-pill{
  font-size: 1rem;
  padding: 4px 10px;
}

.split-board{
  display:grid;
  grid-template-columns: 1fr 2px 1fr; /* middle column = divider */
  gap: 22px;
  align-items:start;
  margin-top: 18px;
}

.divider{
  width: 2px;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  height: 100%;
  min-height: 600px; /* ensures it spans the board */
}

.board-col .col-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 12px;
}

.board-col h3{
  margin: 0;
}

.col-grid{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* Mobile: stack columns */
@media (max-width: 900px){
  .split-board{
    grid-template-columns: 1fr;
  }

  .divider{
    display:none;
  }
}

/* Kiosk mode: larger targets/readability for touch displays */
.kiosk-mode .dashboard {
    padding: 40px 5%;
}

.kiosk-mode .summary-pill {
    font-size: 1.1rem;
    padding: 12px 18px;
}

.kiosk-mode .flight-card {
    padding: 24px;
}

.kiosk-mode .flight-body p {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.kiosk-mode .status {
    font-size: 0.95rem;
    padding: 8px 12px;
}

.kiosk-mode .flight-actions button {
    min-height: 52px;
    padding: 12px 14px;
    font-size: 1rem;
}

/* =========================
   Contact (call) buttons (Dashboard)
========================= */

a[href^="tel:"]{
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

a[href^="tel:"]:hover{
  text-decoration: underline;
}

/* =========================
   OPS BOOK
========================= */

.ops-book-page {
    max-width: 1200px;
}

.ops-book-subtitle {
    margin: -24px 0 24px;
    text-align: center;
    color: #5b6b7b;
    font-weight: 600;
}

.ops-book-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ops-month-controls,
.ops-download-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ops-month-controls {
    justify-content: space-between;
    margin: 0 0 20px;
}

.ops-month-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ops-month-controls .field-short,
.ops-download-form .field-short {
    width: auto;
    min-width: 120px;
    max-width: 180px;
    margin-bottom: 0;
}

.ops-month-form .submit-button,
.ops-download-form .submit-button {
    margin-top: 0;
    width: auto;
}

.ops-download-form {
    margin-bottom: 14px;
}

.ops-conversion-list h3 {
    margin: 12px 0 8px;
    color: #0a2342;
    font-size: 16px;
}

.ops-conversion-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.ops-conversion-list li {
    margin: 0;
    font-size: 14px;
    padding: 6px 10px;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    background: #f7f9fc;
    min-width: 170px;
}

.ops-table-wrap {
    overflow: visible;
}

.ops-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ops-table th,
.ops-table td {
    border: 1px solid #e6ecf3;
    padding: 10px 8px;
    text-align: center;
    font-size: 14px;
    vertical-align: top;
}

.ops-table th {
    color: #0a2342;
    font-size: 13px;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 6;
    box-shadow: 0 1px 0 #e6ecf3;
}

@media (max-width: 900px) {
    .ops-book-layout {
        grid-template-columns: 1fr;
    }

    .ops-month-controls {
        justify-content: flex-start;
    }

    .ops-table-wrap {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    .ops-table {
        min-width: 980px;
    }

    .ops-table th {
        top: 64px;
    }

    .ops-table th:first-child,
    .ops-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 4;
        background: #ffffff;
    }

    .ops-table th:first-child {
        z-index: 7;
    }
}

/* =========================
   LOGIN PAGE
========================= */

.login-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-split-card {
    width: 100%;
    min-height: min(78vh, 760px);
}

.login-split-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(10, 35, 66, 0.12);
    border: 1px solid #d7e1ec;
}

.login-form-pane {
    padding: 54px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-pane h2 {
    margin: 0 0 26px;
    color: #0a2342;
    font-size: 34px;
    text-align: center;
}

.login-form-pane form {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.login-form-pane .form-group {
    margin-bottom: 16px;
}

.login-form-pane label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
}

.login-form-pane input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfd9e3;
    background: #f7f9fc;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 0;
}

.login-form-pane input:focus {
    border-color: #0a2342;
    background: #ffffff;
}

.login-btn {
    width: 100%;
    display: block;
    box-sizing: border-box;
    margin-top: 14px;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    background: linear-gradient(120deg, #0a2342, #163a6b);
    cursor: pointer;
}

.login-btn:hover {
    filter: brightness(1.05);
}

.login-visual-pane {
    background-image:
        linear-gradient(135deg, rgba(10, 35, 66, 0.18), rgba(22, 58, 107, 0.12)),
        url("/static/images/loginpic-640.jpg");
    background-image:
        linear-gradient(135deg, rgba(10, 35, 66, 0.18), rgba(22, 58, 107, 0.12)),
        image-set(
            url("/static/images/loginpic-640.jpg") 1x,
            url("/static/images/loginpic-1200.jpg") 2x
        );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    display: flex;
    align-items: flex-end;
    padding: 44px;
}

.login-visual-content h3 {
    margin: 0 0 8px;
    font-size: 30px;
}

.login-visual-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
}

@media (max-width: 900px) {
    .login-split-card {
        grid-template-columns: 1fr;
    }

    .login-visual-pane {
        min-height: 180px;
        padding: 28px;
    }

    .login-form-pane {
        padding: 36px 24px;
    }
}
