/* ============================================
   AIR TEAM Intranet - Shared Styles
   Brand: ATM Styleguide
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #153151;
    --primary-light: #507499;
    --primary-accent: #93B3CF;
    --primary-pale: #CDDCE8;
    --primary-dark: #10253E;
    --blue-v2: #1B3F67;
    --blue-v3: #23517C;
    --blue-a2: #2B4156;
    --blue-a3: #323E49;
    --accent: #D51C17;
    --success: #10B981;
    --warning: #F59E0B;
    --bg: #10253E;
    --bg-card: #153151;
    --bg-card-hover: #1c3d62;
    --border: rgba(147,179,207,0.12);
    --text: #CDDCE8;
    --text-muted: #93B3CF;
    --text-dim: #507499;
    --black: #1D1D1B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* ---- Header / Navigation ---- */
.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img { height: 28px; width: auto; }

.logo-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.header-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-color: var(--border);
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

.btn-logout {
    color: var(--text-dim);
    background: none;
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    margin-left: 8px;
}

.btn-logout:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ---- Page header ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--blue-v2) 50%, var(--primary-dark) 100%);
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.page-header p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ---- Main ---- */
.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ---- Section labels ---- */
.section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 3rem;
}

.footer a { color: var(--primary-accent); text-decoration: none; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .page-header h1 { font-size: 24px; }
    .main { padding: 1.5rem 1rem; }
    .header-nav { display: none; }
    .header-inner { height: 48px; }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
