/**
 * Flight Beacon Master Stylesheet
 * Brand System Extracted from FlightBeacon.png
 */

:root {
    /* Theme color tokens */
    --primary-deep: #1b2a93;     /* Deep Navy Ray */
    --primary-bright: #00a2e8;   /* Cyan Blue Ray */
    --accent-signal: #f26522;    /* Signal Orange Waves */
    
    /* Layout canvas tokens */
    --bg-app: #f4f7fc;           /* Clean soft blue-gray backdrop */
    --card-hover: rgba(0, 162, 232, 0.05);
    --panel-plane: #e8eaf6;
    --panel-company: #ffebee;
    --panel-detail: #fffde7;
    --highlight-bg: #d1ecf9;     /* Soft cyan for active row highlighting */
    
    /* Typography & Interactive Tokens */
    --text-dark: #121933;
    --text-muted: #5c647a;
    --green: #4caf50;
    --red: #f44336;
}

/* Core Document Reset */
body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-app);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

/* --- Layout Components --- */
.container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

@media (min-width: 992px) {
    .split-row { display: flex; gap: 20px; }
    .pane-50 { flex: 1; min-width: 0; }
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px;
    box-sizing: border-box;
}

.scroller { 
    height: 380px; 
    overflow-y: auto; 
    margin-top: 15px; 
    border: 1px solid #eef0f2;
    border-radius: 6px;
}

/* Specific Workspace Panel Colors */
#planeDiv { background-color: var(--panel-plane); }
#companyDiv { background-color: var(--panel-company); }
#detailDiv { background-color: var(--panel-detail); min-height: 150px; }

/* --- Typography & Headings --- */
h1 { font-size: 1.8rem; margin: 0 0 10px 0; }
.card-title { font-size: 1.2rem; font-weight: bold; margin: 0; color: #444; }
.card-subtitle { font-size: 0.8rem; color: var(--text-muted); display: block; margin-top: 2px; }
.welcome-block { text-align: center; margin-bottom: 35px; }
.welcome-block h2 { font-size: 1.8rem; margin: 0 0 8px 0; color: var(--primary-deep); }
.welcome-block p { color: var(--text-muted); margin: 0; font-size: 1rem; }
.placeholder-msg { color: var(--text-muted); font-style: italic; padding: 20px 0; text-align: center; }

/* --- Master Application Header --- */
.header {
    background-color: var(--primary-deep);
    box-shadow: 0 4px 12px rgba(27, 42, 147, 0.15);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -20px -20px 20px -20px; /* Counteracts body margin when pinned directly at top */
}

.brand-container { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: white; padding: 2px; }
.brand-title { font-size: 1.4rem; font-weight: 800; color: white; letter-spacing: -0.5px; margin: 0; }

/* --- Interactive Navigation / Menu Grid --- */
.nav-menu { 
    margin-bottom: 25px; 
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
}

.nav-menu a { 
    color: var(--primary-deep); 
    text-decoration: none; 
    font-weight: 600;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #dcdcdc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

.nav-menu a:hover { 
    background: var(--primary-bright);
    color: white;
    border-color: var(--primary-bright);
    box-shadow: 0 2px 5px rgba(0, 162, 232, 0.2);
}

.menu-grid { display: flex; flex-direction: column; gap: 16px; }
.menu-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(27, 42, 147, 0.04);
    padding: 20px;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-bright);
    background-color: var(--card-hover);
    box-shadow: 0 6px 20px rgba(0, 162, 232, 0.12);
}

.menu-card .card-content h3 { margin: 0 0 6px 0; font-size: 1.15rem; color: var(--primary-deep); }
.menu-card .card-content p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.card-arrow { font-size: 1.4rem; color: var(--primary-bright); font-weight: bold; transition: transform 0.2s ease; }
.menu-card:hover .card-arrow { transform: translateX(6px); color: var(--primary-deep); }

/* --- Data Tables --- */
.ui-table { width: 100%; border-collapse: collapse; background: white; }
.ui-table th, .ui-table td { padding: 12px 10px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid #eef0f2; }
.ui-table th { 
    background: var(--primary-deep); 
    color: white; 
    font-weight: 600; 
    position: sticky;
    top: 0;
    z-index: 2;
}

.ui-table tr.active-row td { background-color: var(--highlight-bg) !important; }

/* --- Buttons & UI Feedback Elements --- */
.btn {
    padding: 6px 14px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-size: 0.85rem;
    transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn-go { background: var(--primary-bright); }
.btn-go:hover { background: var(--primary-deep); }
.btn-yes { background: var(--green); }
.btn-no { background: var(--red); }

.btn-logout {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 2px solid var(--accent-signal);
    background-color: var(--accent-signal);
    border-radius: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(242, 101, 34, 0.2);
}

.btn-logout:hover { background-color: transparent; color: white; border-color: white; box-shadow: none; }

.msg-banner {
    background-color: #fff4ef;
    border: 1px solid #ffccb3;
    color: #b13d00;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
}

/* Utilities */
.text-right { text-align: right; }
.text-center { text-align: center; }