/* ===================================
   FileCollect - Global Design System
   Cyan/Teal palette (#0ebed6)
   =================================== */

:root {
    /* Colors */
    --primary: #0ebed6;
    --primary-dark: #0a4d68;
    --primary-darker: #083d52;
    --primary-hover: #0ca8bd;
    --primary-light: #e0f5f9;
    --primary-lighter: #b8ecf4;

    --accent-navy: #1a3a5c;
    --accent-navy-dark: #0d2b45;
    --accent-gold: #DDA63A;
    --accent-gold-dark: #96631A;
    --accent-gold-bg: #F6E9CB;

    --bg: #F0F4F8;
    --surface: #FFFFFF;
    --surface-alt: #F5F7FA;
    --surface-alt2: #EEF2F6;

    --text: #1a2332;
    --text-secondary: #4a5568;
    --text-muted: #8B9DAF;
    --text-light: #A0AEC0;

    --border: #E2E8F0;
    --border-dark: #CBD5E0;

    --success: #2E7D4F;
    --success-bg: #E6F2EA;
    --success-border: #CDE5D5;
    --success-seg: #39965F;

    --danger: #B23A2E;
    --danger-bg: #FEF2F2;
    --danger-border: #FECACA;
    --danger-seg: #C1493B;

    --received: #0ebed6;
    --received-text: #0a8fa1;
    --received-bg: #e0f5f9;
    --received-border: #b8ecf4;
    --received-seg: #0ebed6;

    --waiting-seg: #CBD5E0;
    --waiting-text: #6B7280;

    --na-seg: #E2E8F0;
    --na-text: #7A7E74;

    /* Typography */
    --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Source Serif 4', Georgia, serif;

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 11px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 999px;
}

/* ─── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }

::selection { background: var(--primary-lighter); }

/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
h1 { font-size: 58px; line-height: 1.03; }
h2 { font-size: 34px; line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.25; }

/* ─── Container ───────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    h1 { font-size: 36px; }
    h2 { font-size: 26px; }
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm { padding: 9px 17px; font-size: 14px; }
.btn-md { padding: 11px 22px; font-size: 15px; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(14, 190, 214, 0.4);
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 8px 20px -8px rgba(14, 190, 214, 0.5); }

.btn-outline {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--surface-alt); }

.btn-light {
    background: #fff;
    color: var(--primary-dark);
    font-weight: 600;
}
.btn-light:hover { background: var(--surface-alt); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 14px;
}
.btn-ghost:hover { background: var(--surface-alt); }

/* ─── Status segments (progress bar) ─────────────────────── */
.progress-bar {
    display: flex;
    gap: 3px;
    height: 9px;
}
.seg {
    flex: 1;
    border-radius: 3px;
}
.seg-approved { background: var(--success-seg); }
.seg-received { background: var(--received-seg); }
.seg-rejected { background: var(--danger-seg); }
.seg-waiting { background: var(--waiting-seg); }
.seg-na { background: var(--na-seg); }

/* ─── Status pills ────────────────────────────────────────── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.pill-approved { color: var(--success); background: var(--success-bg); border: 1px solid var(--success-border); }
.pill-received { color: var(--received-text); background: var(--received-bg); border: 1px solid var(--received-border); }
.pill-rejected { color: var(--danger); background: var(--danger-bg); border: 1px solid var(--danger-border); }
.pill-waiting { color: var(--waiting-text); background: var(--surface-alt); border: 1px solid var(--border); }
.pill-na { color: var(--na-text); background: transparent; border: 1px solid var(--border-dark); }

/* ─── Chips ───────────────────────────────────────────────── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
}
.chip-approve { color: var(--success); background: var(--success-bg); border: 1px solid var(--success-border); }
.chip-reject { color: var(--danger); background: #fff; border: 1px solid var(--danger-border); }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ─── Form inputs ─────────────────────────────────────────── */
.input {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font-sans);
    font-size: 14.5px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,190,214,0.15); }
.input::placeholder { color: var(--text-light); }

textarea.input { resize: vertical; min-height: 100px; }

.label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

/* ─── Animations ──────────────────────────────────────────── */
@keyframes fcRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fcPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@keyframes fcSpin {
    to { transform: rotate(360deg); }
}
@keyframes fcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fcSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── File type badge ─────────────────────────────────────── */
.file-type-badge {
    display: inline-block;
    font-size: 8px;
    font-weight: 700;
    color: var(--danger);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ─── Utilities ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ─── Nav (shared) ────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(240,244,248,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}
.nav-logo-icon {
    width: 27px;
    height: 27px;
    border-radius: 7px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-logo span {
    font-weight: 600;
    font-size: 15.5px;
    letter-spacing: -0.01em;
    color: var(--primary-dark);
}
.nav-links {
    display: flex;
    gap: 26px;
    flex: 1;
}
.nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav-login {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark);
}

/* ─── CTA Section (shared) ────────────────────────────────── */
.cta-section {
    padding: 0 0 60px;
}
.cta-card {
    background: var(--primary-dark);
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    text-align: center;
}
.cta-title {
    font-size: 36px;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: #fff;
}
.cta-subtitle {
    font-size: 15px;
    color: #a9c0c8;
    margin-bottom: 26px;
}

/* ─── Footer (shared) ─────────────────────────────────────── */
.footer {
    background: var(--accent-navy-dark);
    color: #c8d4df;
    padding: 48px 0 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 32px;
}
.footer-tagline {
    font-size: 13px;
    color: #8b9daf;
    margin-top: 10px;
}
.footer-links {
    display: flex;
    gap: 60px;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-col-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8b9daf;
    margin-bottom: 4px;
}
.footer-col a {
    font-size: 14px;
    color: #c8d4df;
    transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 40px;
    font-size: 12px;
    color: #6b7f8f;
}

/* ─── Nav/Footer Mobile ───────────────────────────────────── */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-inner { padding: 14px 20px; }
    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-links { gap: 40px; }
}
@media (max-width: 480px) {
    .cta-card { padding: 40px 24px; }
    .cta-title { font-size: 28px; }
}

