/* Genvium — shared design tokens (matches desktop app) */
:root {
    --primary-blue: #3b5bdb;
    --navy: #1a1a2e;
    --off-white: #f8f9ff;
    --surface: #ffffff;
    --muted: #6b7280;
    --blue-tint: #e8ecff;
    --border: #e2e5f0;
}

body {
    margin: 0;
    font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
    background: var(--off-white);
    color: var(--navy);
}

/* ---- Navbar ---- */
.navbar {
    background: var(--navy);
    padding: 16px 32px;
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
}
.navbar-brand {
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
}
.navbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.navbar-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.navbar-cta {
    background: var(--primary-blue);
    padding: 8px 18px;
    border-radius: 8px;
}
.navbar-user { color: var(--blue-tint); font-size: 13px; }
.link-button {
    background: none; border: none; color: #fff;
    font-size: 14px; font-weight: 600; cursor: pointer;
}
.navbar-logout-form { display: inline; }

/* ---- Navbar hamburger dropdown ---- */
.navbar-menu { position: relative; list-style: none; }
.navbar-menu summary { list-style: none; cursor: pointer; }
.navbar-menu summary::-webkit-details-marker { display: none; }
.navbar-menu-icon {
    color: #fff;
    font-size: 20px;
    padding: 4px 8px;
    border-radius: 6px;
}
.navbar-menu[open] .navbar-menu-icon { background: rgba(255,255,255,0.15); }
.navbar-menu-dropdown {
    position: absolute;
    top: 36px;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-width: 160px;
    z-index: 100;
}
.navbar-menu-dropdown a {
    color: var(--navy) !important;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
}
.navbar-menu-dropdown a:hover { background: var(--off-white); }
.navbar-menu-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.dropdown-logout {
    color: #991b1b !important;
    text-align: left;
    padding: 8px 10px;
    width: 100%;
}
.dropdown-logout:hover { background: #fee2e2; border-radius: 6px; }

/* ---- Toast banner ---- */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
    max-width: 90%;
}
.toast-success { background: #065f46; color: #fff; }
.toast-error { background: #991b1b; color: #fff; }
.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}
.toast-close:hover { opacity: 1; }

/* ---- Hero ---- */
.welcome-hero-bg {
    background: linear-gradient(rgba(10, 15, 40, 0.55), rgba(10, 15, 40, 0.55)),
                url('/images/bluecool.png') center center / cover no-repeat;
    padding: 140px 20px;
}
.welcome-hero {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.welcome-hero h1 { font-size: 34px; color: #fff; }
.welcome-hero p { color: #e5e9ff; font-size: 16px; }
.welcome-actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; }

.button {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}
.button-primary { background: var(--primary-blue); color: #fff; }
.button-secondary { background: var(--surface); color: var(--primary-blue); border: 1px solid var(--border); }

/* ---- Footer ---- */
.site-footer {
    text-align: center;
    padding: 24px;
    color: var(--muted);
    font-size: 13px;
}
.footer-links { margin-top: 8px; }
.footer-links a { color: var(--muted); margin: 0 8px; }

/* ---- Forms (login/signup) ---- */
.auth-card {
    max-width: 400px;
    margin: 60px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}
.auth-card input {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
}
.auth-card button {
    width: 100%;
    padding: 12px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}
.form-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.form-success {
    background: #d1fae5;
    color: #065f46;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.settings-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}
.settings-card h2 { font-size: 16px; margin-top: 0; margin-bottom: 12px; }
.settings-card input {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
}
.settings-card textarea {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}
.settings-card button:not(.button-danger) {
    padding: 10px 20px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}
.settings-danger { border-color: #fecaca; }

/* ---- Payments inline edit ---- */
.inline-edit-form {
    display: flex;
    gap: 6px;
    align-items: center;
}
.inline-edit-form input,
.inline-edit-form select {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
}
.inline-edit-form input[type="number"] { width: 80px; }
.inline-edit-form input[type="date"] { width: 130px; }

/* ---- Readiness ---- */
.readiness-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}
.readiness-score {
    font-size: 44px;
    font-weight: bold;
    color: var(--primary-blue);
}
.readiness-sub { color: var(--muted); margin-bottom: 20px; }
.readiness-item {
    padding: 14px 0;
    border-top: 1px solid var(--border);
}
.readiness-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.readiness-done { text-decoration: line-through; color: var(--muted); }
.checkbox-toggle {
    width: 22px; height: 22px;
    border: 2px solid var(--border);
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    padding: 0;
}
.checkbox-toggle.checked { background: var(--primary-blue); border-color: var(--primary-blue); }

/* ---- Help / FAQ ---- */
.faq-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}
.faq-card summary {
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    color: var(--navy);
}
.faq-card p {
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ---- Notifications ---- */
.notification-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.notification-card details { flex: 1; }
.notification-card summary { cursor: pointer; font-size: 14px; }
.notification-card p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.unread-card { border-left: 3px solid var(--primary-blue); }
.read-card { opacity: 0.75; }

/* ---- Genvium AI ---- */
.ai-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-top: 16px;
}
.ai-panel h2 { margin-top: 0; font-size: 18px; }
.ai-panel button {
    padding: 10px 20px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}
.ai-panel button:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
.form-notice {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}
.draft-area {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
    resize: vertical;
}

/* ---- Page container (dashboard, opportunities, etc.) ---- */
.page-container {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 20px;
}
.page-container h1 { font-size: 28px; margin-bottom: 24px; }

/* ---- Stat cards ---- */
.stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
}
.stat-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--navy);
    margin-top: 6px;
}

/* ---- Dashboard sections / tables ---- */
.dashboard-section { margin-bottom: 32px; }
.dashboard-section h2 { font-size: 18px; margin-bottom: 12px; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.data-table th {
    text-align: left;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    padding: 12px 16px;
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.data-table tr:last-child td { border-bottom: none; }

.empty-state {
    color: var(--muted);
    font-size: 14px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}

/* ---- Filter form (opportunities page) ---- */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}
.filter-form input,
.filter-form select {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}
.filter-form input[type="text"] { min-width: 160px; }

.results-count {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.button-small { padding: 6px 14px; font-size: 13px; }
.muted-text { color: var(--muted); font-size: 13px; }

.button-danger {
    background: #fee2e2;
    color: #991b1b;
    border: none;
    cursor: pointer;
}
.button-danger:hover { background: #e74c3c; color: #fff; }
.button-track {
    background: var(--blue-tint);
    color: var(--primary-blue);
    border: none;
    cursor: pointer;
    margin-left: 6px;
}
.button-track:hover { background: var(--primary-blue); color: #fff; }

.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.page-header-row h1 { margin-bottom: 0; }

.row-actions { display: flex; gap: 6px; align-items: center; }

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    background: var(--blue-tint);
    color: var(--primary-blue);
}
.status-Approved { background: #d1fae5; color: #065f46; }
.status-Rejected { background: #fee2e2; color: #991b1b; }
.status-Pending { background: #fef3c7; color: #92400e; }

/* ---- Form labels (application-form, security-setup) ---- */
.auth-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 12px;
}
.auth-card select {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
}