/* ==========================================================================
   1. GLOBAL & BASE LAYOUT STYLES
   ========================================================================== */
body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 20px;
    color: #333;
}

h2 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

/* ==========================================================================
   2. SHARED INTERACTIVE NAVIGATION HEADER
   ========================================================================== */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #dcdfe4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    margin: -20px -20px 30px -20px; /* Counteracts body padding to bleed edge-to-edge */
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Spreads components evenly */
    align-items: center;
}

.nav-spacer, 
.nav-auth-placeholder {
    width: 250px; /* Symmetrical balance panels to lock middle links dead-center */
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-grow: 1;
}

.nav-item {
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    padding: 20px 15px;
    display: inline-block;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.nav-item:hover {
    color: #3498db;
    border-bottom: 3px solid #3498db;
    background-color: #f8fafc;
}

/* ==========================================================================
   3. LEADERBOARD DASHBOARD & CARD PATTERNS
   ========================================================================== */
.dashboard {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    flex: 1;
    min-width: 300px;
}

/* Data Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #3498db;
    color: #fff;
}

/* ==========================================================================
   4. INTERACTIVE FAQ ACCORDION BOARDS
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.faq-card {
    background-color: #ffffff;
    border: 1px solid #dcdfe4;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Hidden checkbox engine powering animation */
input[type="checkbox"].faq-toggle {
    display: none !important;
    visibility: hidden;
    position: absolute;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background-color: #ffffff;
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.faq-header:hover {
    background-color: #fcfdfe;
    color: #3498db;
}

.faq-icon::before {
    content: "▼";
    font-size: 12px;
    color: #3498db;
    display: inline-block;
    transition: transform 0.2s ease;
}

.faq-content {
    max-height: 0;
    padding: 0 20px;
    background-color: #fafbfc;
    color: #444444;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    transition: max-height 0.25s ease-out, padding 0.25s ease-out;
}

/* Expand panel selectors upon click triggers */
.faq-toggle:checked ~ .faq-content {
    max-height: 600px; 
    padding: 20px;
    border-top: 1px solid #eef2f5;
}

.faq-toggle:checked ~ .faq-header {
    border-bottom: 1px solid #eef2f5;
    background-color: #f7f9fa;
}

.faq-toggle:checked ~ .faq-header .faq-icon::before {
    transform: rotate(-180deg);
    color: #2c3e50;
}

/* ==========================================================================
   5. MANUAL SETUP GUIDE SYSTEM
   ========================================================================== */
.guide-container { 
    max-width: 800px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

.guide-step { 
    background: #fff; 
    border: 1px solid #dcdfe4; 
    border-radius: 8px; 
    padding: 25px; 
    margin-bottom: 25px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); 
}

.step-num { 
    background: #3498db; 
    color: #fff; 
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    margin-bottom: 15px; 
}

.guide-step h3 { 
    margin-top: 0; 
    color: #2c3e50; 
    font-size: 18px; 
}

.code-box { 
    background: #222; 
    color: #fff; 
    padding: 12px; 
    border-radius: 4px; 
    font-family: monospace; 
    font-size: 13px; 
    margin-top: 10px; 
    border-left: 4px solid #3498db; 
}

.pro-tip { 
    background: #fdf2f2; 
    border-left: 4px solid #f44949; 
    padding: 12px; 
    margin-top: 15px; 
    border-radius: 0 4px 4px 0; 
    font-size: 14px; 
    color: #2c3e50; 
}

/* ==========================================================================
   6. AUTHENTICATED PILOT ACCOUNT PORTALS
   ========================================================================== */
.dashboard-layout {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px;
}

.profile-header { 
    background: #fff; 
    border: 1px solid #dcdfe4; 
    padding: 25px; 
    border-radius: 8px; 
    margin-bottom: 30px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.profile-title h1 {
    margin: 0; 
    color: #2c3e50;
}

.profile-title p {
    color: #777; 
    margin: 5px 0 0 0;
}

.signout-link {
    color: #e74c3c; 
    font-weight: bold; 
    text-decoration: none;
    transition: color 0.2s ease;
}

.signout-link:hover {
    color: #c0392b;
}

.stat-large {
    font-size: 36px; 
    font-weight: bold; 
    color: #3498db; 
    margin-top: 10px;
}

.stat-subtext {
    font-size: 16px; 
    color: #777;
}

.workhorse-text {
    font-size: 24px; 
    font-weight: bold; 
    color: #2c3e50; 
    margin-top: 15px;
}

.workhorse-desc {
    color: #888; 
    font-size: 13px; 
    margin: 5px 0 0 0;
}

.stat-badge { 
    background: #3498db; 
    color: white; 
    padding: 5px 12px; 
    border-radius: 20px; 
    font-weight: bold; 
    font-size: 14px; 
}

.hub-link {
    color: #3498db; 
    text-decoration: none; 
    font-weight: bold;
    transition: color 0.2s ease;
}

.hub-link:hover {
    color: #2980b9;
}

/* ==========================================================================
   7. SITE-WIDE SYSTEM FOOTERS & REGULATORY STATEMENTS
   ========================================================================== */
.main-footer {
    background-color: #eef2f5; 
    color: #555555;            
    padding: 25px 10px;
    margin-top: 40px;          
    border-top: 1px solid #dcdfe4;
    font-size: 13px;
    text-align: center;
    line-height: 1.6;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.main-footer .disclaimer {
    max-width: 800px;
    margin: 10px auto 0 auto;
    font-size: 11px;           
    color: #777777;
}
