/* ============================================================
   Get Out Aviation - THEME (American Flag)
   Colors: Old Glory Red #B31942, Old Glory Blue #0A3161, White #FFFFFF
   This sits on top of assets/style.css (layout/base)
============================================================ */

/* ---------- GLOBAL BACKGROUND & TEXT ---------- */

body {
    background:
        linear-gradient(135deg, rgba(10,49,97,0.65), rgba(0,0,0,0.9));
    color: #FFFFFF;
    /* space for fixed headers (internal & public) */
    padding-top: 60px;
}

/* Subtle star overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.18) 0, rgba(255,255,255,0) 55%),
        radial-gradient(circle, rgba(255,255,255,0.14) 0, rgba(255,255,255,0) 55%);
    background-size: 180px 180px, 260px 260px;
    background-position: 20px 40px, 140px 180px;
    opacity: 0.22;
}

/* Links */
a {
    color: #60a5fa; /* light blue for links */
}
a:hover {
    text-decoration: underline;
}

/* ---------- LEGACY TOP HEADER (if used anywhere) ---------- */

.top-header {
    background: linear-gradient(90deg, #0A3161, #B31942);
    border-bottom: 2px solid #FFFFFF33;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 22px rgba(0,0,0,0.45);
}

/* Logo with aircraft icon */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFFFFF;
}

.logo-icon {
    font-size: 1.3rem;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #B31942, #0A3161);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.logo-text {
    white-space: nowrap;
}

/* Nav links for legacy header */
.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.main-nav a {
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.15);
    text-decoration: none;
}

.nav-user {
    margin-left: 6px;
    color: #FFFFFFCC;
    font-size: 0.8rem;
}

/* ---------- CARDS (WITH FLAG RIBBON) ---------- */

.card {
    background: rgba(10,49,97,0.9);
    border: 1px solid #FFFFFF22;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    position: relative;
}

/* Red-White-Blue ribbon on top edge */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(
        90deg,
        #B31942 0%,
        #B31942 33%,
        #FFFFFF 33%,
        #FFFFFF 66%,
        #0A3161 66%,
        #0A3161 100%
    );
}

.card h1,
.card h2,
.card h3 {
    margin-top: 0;
}

/* ---------- PRIMARY BUTTONS ---------- */

.button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: #B31942;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(179,25,66,0.5);
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.button:hover {
    background: #8B1433;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(179,25,66,0.7);
}

.button.secondary {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid #FFFFFFAA;
    box-shadow: none;
}

.button.secondary:hover {
    background: rgba(255,255,255,0.12);
}

/* ---------- ACTION BUTTONS (TABLE / INLINE) ---------- */

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.action-btn {
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-decoration: none;
}

/* Red: close/delete/danger */
.action-btn.red {
    background: #B31942;
}
.action-btn.red:hover {
    background: #8B1433;
    transform: translateY(-1px);
}

/* Blue: status/view */
.action-btn.blue {
    background: #0A3161;
}
.action-btn.blue:hover {
    background: #07213F;
    transform: translateY(-1px);
}

/* White border: neutral (reopen, toggle) */
.action-btn.white {
    background: transparent;
    border: 1px solid #FFFFFFAA;
    color: #FFFFFF;
}
.action-btn.white:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

/* ---------- FORMS ---------- */

.form-group label {
    color: #FFFFFFCC;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid #FFFFFF55;
    background: rgba(0,0,0,0.35);
    color: #FFFFFF;
    font-size: 0.9rem;
}

.form-group textarea {
    min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 2px #FFFFFF33;
}

/* ---------- TABLES ---------- */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.table thead {
    background: #0A3161;
}

.table th,
.table td {
    padding: 7px 8px;
}

.table th {
    color: #FFFFFF;
    font-weight: 600;
    text-align: left;
}

.table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.07);
}
.table tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.12);
}

/* ---------- TABS (Airframe / Engine / Prop, etc.) ---------- */

.tabs {
    display: flex;
    border-bottom: 1px solid #FFFFFF33;
    margin-bottom: 10px;
    gap: 4px;
}

.tabs a {
    padding: 6px 10px;
    border-radius: 10px 10px 0 0;
    background: rgba(10,49,97,0.7);
    color: #E5E9FF;
    font-size: 0.8rem;
    border: 1px solid transparent;
    border-bottom: none;
    text-decoration: none;
}

.tabs a.active {
    background: #0A3161;
    border-color: #FFFFFF55;
    border-bottom: 1px solid #0A3161;
    color: #FFFFFF;
}

/* ---------- LOGIN HERO / AUTH PAGE ---------- */

.auth-hero {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
    gap: 32px;
    align-items: center;
    min-height: calc(100vh - 100px);
}

.auth-hero-left-tagline {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    color: #FFFFFFAA;
    margin-bottom: 6px;
}

.auth-hero-left h1 {
    font-size: 2.4rem;
    margin: 4px 0 6px;
}

.auth-hero-left h2 {
    font-size: 1.2rem;
    margin: 4px 0 12px;
    color: #FFFFFFCC;
}

.auth-hero-left-highlight {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #FFFFFF55;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.auth-hero-left-list {
    font-size: 0.85rem;
    color: #E5E9FF;
    padding-left: 18px;
}

/* Login card */
.login-container {
    max-width: 420px;
    margin: 0;
}

.login-card {
    background: rgba(10,49,97,0.9);
    border: 1px solid #FFFFFF33;
    border-radius: 16px;
    padding: 22px 22px 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7);
}

.login-card h1 {
    margin-top: 0;
    margin-bottom: 14px;
    text-align: center;
}

.error {
    color: #FFFFFF;
    background: rgba(179,25,66,0.55);
    border: 1px solid rgba(179,25,66,0.95);
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* ---------- COMPANY LANDING HERO ---------- */

.company-hero {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
    gap: 32px;
    align-items: center;
    padding-top: 20px;
}

.company-hero-tagline {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.85rem;
    color: #FFFFFFAA;
    margin-bottom: 8px;
}

.company-hero h1 {
    font-size: 2.6rem;
    margin: 0 0 4px;
}

.company-hero h2 {
    font-size: 1.3rem;
    color: #FFFFFFCC;
    margin: 4px 0 14px;
}

.company-hero-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #60a5fa;
    font-size: 0.8rem;
    margin-bottom: 12px;
    color: #bfdbfe;
}

.company-hero-list {
    font-size: 0.9rem;
    color: #E5E9FF;
    padding-left: 18px;
    margin-bottom: 14px;
}

.company-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Right side card on landing */
.company-right-card {
    background: rgba(10,49,97,0.9);
    border-radius: 16px;
    border: 1px solid #FFFFFF55;
    padding: 18px 18px 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    font-size: 0.85rem;
}

/* ---------- PILOT DASHBOARD CARDS (COMPACT) ---------- */

.pilot-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.pilot-card {
    background: rgba(10,49,97,0.9);
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #FFFFFF22;
    box-shadow: 0 2px 10px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
}

/* Red alert if any missing/expired item */
.pilot-card-issue {
    background: rgba(179,25,66,0.22);
    border-color: rgba(179,25,66,0.85);
    box-shadow: 0 0 14px rgba(179,25,66,0.9);
}

.pilot-card-ok {
    background: rgba(10,49,97,0.9);
}

.pilot-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.pilot-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.pilot-username {
    font-size: 0.7rem;
    color: #FFFFFFAA;
}

.pilot-active-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.status-pill-active,
.status-pill-inactive {
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-pill-active {
    background: rgba(22,163,74,0.25);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,0.6);
}

.status-pill-inactive {
    background: rgba(127,29,29,0.25);
    color: #fecaca;
    border: 1px solid rgba(248,113,113,0.6);
}

.pilot-status-list {
    border-top: 1px solid #FFFFFF22;
    padding-top: 4px;
    margin-top: 4px;
}

.pilot-status-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.status-icon {
    font-weight: 800;
}

.status-icon.ok {
    color: #4ade80;
}

.status-icon.bad {
    color: #fecaca;
}

/* Warning state (expiring soon) */
.status-icon.warn {
    color: #fbbf24; /* amber */
}

.pilot-card-footer {
    border-top: 1px dashed #FFFFFF22;
    margin-top: 4px;
    padding-top: 3px;
    font-size: 0.7rem;
    color: #FFFFFFAA;
}

/* Pilot edit form layout */
.pilot-edit-form {
    margin-top: 8px;
}

.pilot-edit-grid {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,1.1fr);
    gap: 18px;
}

/* ---------- FOOTER WITH RUNWAY STRIPE ---------- */

.site-footer {
    position: relative;
    margin-top: 40px;
    padding: 26px 0 24px;
    text-align: center;
    color: #FFFFFF99;
    font-size: 0.78rem;
}

/* Runway base bar behind footer */
.site-footer::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 900px;
    height: 32px;
    background: linear-gradient(
        to right,
        rgba(10,49,97,0.7),
        #111111,
        rgba(179,25,66,0.7)
    );
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(0,0,0,0.8);
    z-index: -1;
}

/* Runway centerline dashed */
.site-footer::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 11px;
    width: 80%;
    max-width: 720px;
    height: 2px;
    background-image: repeating-linear-gradient(
        to right,
        #FFFFFF,
        #FFFFFF 18px,
        transparent 18px,
        transparent 30px
    );
    opacity: 0.95;
}

/* ---------- RESPONSIVE TWEAKS ---------- */

@media (max-width: 900px) {
    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .auth-hero,
    .company-hero {
        grid-template-columns: minmax(0,1fr);
    }

    .pilot-edit-grid {
        grid-template-columns: minmax(0,1fr);
    }
}

/* ---------- DASHBOARD LAYOUT ---------- */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.dashboard-card {
    background: rgba(10,49,97,0.9);
    border-radius: 12px;
    border: 1px solid #FFFFFF33;
    padding: 12px 14px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
}

.dashboard-card h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.dashboard-card p {
    margin: 0 0 8px;
    font-size: 0.8rem;
    color: #E5E9FF;
}

.dashboard-card-actions {
    margin-top: auto;
}

.card-alert {
    border: 1px solid rgba(255, 0, 0, 0.7);
}
.card-warning {
    border: 1px solid rgba(255, 215, 0, 0.7);
}

/* Center the operations dashboard content */
.dashboard-container {
    max-width: 1120px;       /* control overall width */
    margin: 0 auto;
    padding: 16px 16px 0;
}

/* ===== LANDING LAYOUT – CENTER CONTENT ===== */

.company-hero,
.company-section {
    max-width: 1120px;
    margin: 0 auto 24px;
}

.company-hero {
    padding-top: 32px;
}

.company-section {
    padding-top: 18px;
    padding-bottom: 22px;
}

/* =========================
   PUBLIC TOP NAV / HEADER
   ========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 1000;
    background: linear-gradient(90deg, #0A3161, #B31942);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.site-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
}

.site-logo {
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    color: #ffffff;
}

.site-nav {
    display: flex;
    gap: 18px;
    font-size: 0.9rem;
}

.nav-link {
    color: #e0e7f5;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

.nav-link-active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.nav-link-cta {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

/* ========= Get Out landing content container ========= */

.go-landing-content {
    max-width: 1120px;
    margin: 0 auto 24px;
    padding: 24px 16px 0;
}

/* ==========================================
   INTERNAL HEADER / NAV (Get Out Aviation)
   Matches your reference screenshot
   ========================================== */

.go-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(90deg, #0A3161, #B31942);
    box-shadow: 0 4px 18px rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    z-index: 1000;
}

.go-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
}

/* Logo left */
.go-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-right: auto; /* anchor left */
}

.go-logo-icon {
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 1.4rem;
    color: #ffffff;
}

.go-logo-text {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Nav right */
.go-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    padding-top: 2px; /* tiny bump up for baseline match */
}

.go-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: #F6F6F6;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: 0.2s ease;
}

.go-nav a:hover {
    color: #FFFFFF;
    border-bottom-color: rgba(255,255,255,0.6);
}

.go-nav a.active {
    color: #FFFFFF;
    border-bottom-color: #FFFFFF;
}

/* Logged-in label */
.go-user-label {
    color: #ffffffd0;
    font-size: 0.9rem;
    margin-right: 6px;
}

/* Logout button */
.logout-link {
    padding: 6px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.85);
    color: white;
    font-size: 0.9rem;
}
/* Global card spacing */
.card {
    margin-bottom: 18px;
}
