:root {
    /* Brand Constants - PayPal Style */
    --primary: #0070BA;
    /* PayPal Blue */
    --primary-dark: #003087;
    --secondary: #00CF92;
    /* Mint Green/Teal accent */
    --accent: #EBF5FF;
    /* Light Blue background for active items */

    /* Neutral Colors */
    --bg: #F5F7FA;
    /* Light Grey-Blue */
    --card-bg: #FFFFFF;
    --text: #111827;
    /* Dark Slate */
    --text-muted: #6B7280;
    /* Cool Grey */
    --border: #E5E7EB;

    /* Functional */
    --success: #10B981;
    --error: #EF4444;

    /* Shapes & effects */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-pill: 9999px;
    /* Full pill shape */

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 100, 0.08);
    /* Blue-tinted shadow */
    --shadow-card: 0 10px 30px -10px rgba(0, 70, 150, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Very subtle top mesh gradient */
    background-image:
        radial-gradient(at 50% 0%, rgba(0, 112, 186, 0.05) 0px, transparent 50%);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: transparent;
    color: var(--primary);
    /* Keep Blue */
    text-decoration: none;
    letter-spacing: -0.03em;
}

/* Container: Desktop Width */
.app-container {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

/* Cards */
.card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.2;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

/* Nav Links Container */
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links button {
    width: auto;
    /* Allow buttons to auto-size */
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 0.5rem;
    /* Align with pill curve */
}

input,
select {
    width: 100%;
    padding: 1rem 1.5rem;
    /* Larger touch targets */
    background: #F9FAFB;
    border: 1px solid transparent;
    /* No border initially */
    border-radius: var(--radius-pill);
    /* Pill Inputs */
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
    font-weight: 500;
}

input:focus,
select:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 112, 186, 0.1);
}

/* Buttons */
button {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-pill);
    /* Pill Buttons */
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s transform;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

button[type="submit"],
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(0, 112, 186, 0.4);
}

button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}

.link-text {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.link-text a {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.link-text a:hover {
    text-decoration: underline;
}

/* Status Indicators */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.status-ELIGIBLE {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-CONDITIONAL {
    background: rgba(234, 179, 8, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.status-REJECTED {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    border: 1px solid var(--error);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.recommendation-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    /* Rounded */
    padding: 1.5rem;
    transition: transform 0.2s;
    box-shadow: var(--shadow-sm);
}

.recommendation-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.1);
}

.hidden {
    display: none !important;
}

/* Metrics */
.metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #F3F4F6;
    /* Light Grey background instead of dark */
    border-radius: var(--radius-md);
}

.metric-item small {
    color: var(--text-muted);
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.metric-item strong {
    font-size: 1.25rem;
    color: var(--primary-dark);
}