@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');
.github-btn {

    display: flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;

    color: #0f172a;

    background: white;

    border: 1px solid #e2e8f0;

    padding: 10px 16px;

    border-radius: 12px;

    font-weight: 600;

    transition: all 0.2s ease;

    margin-right: 12px;
}

.github-btn:hover {

    background: #f8fafc;

    color: #2563eb;

    border-color: #2563eb;

    transform: translateY(-1px);
}

.theme-toggle {

    border: 1px solid #e2e8f0;

    background: white;

    width: 46px;

    height: 46px;

    border-radius: 12px;

    cursor: pointer;

    font-size: 18px;

    transition: all 0.2s ease;
}

.theme-toggle:hover {

    background: #f8fafc;

    transform: translateY(-1px);
}
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;

    --success: #16a34a;
    --warning: #ea580c;
    --danger: #dc2626;

    --text: #0f172a;
    --text-light: #64748b;

    --border: #e2e8f0;

    --card: #ffffff;
    --background: #f6f8fb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Manrope", sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            circle at top left,
            rgba(37,99,235,0.04),
            transparent 30%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(99,102,241,0.04),
            transparent 30%
        );

    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
}

/* NAVBAR */

.navbar {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);

    padding: 18px 0;
}

.navbar-brand {
    color: var(--text) !important;

    font-size: 1.4rem;
    font-weight: 800;

    letter-spacing: -0.5px;
}

/* HERO */

.hero {
    background: white;

    border: 1px solid var(--border);

    border-radius: 32px;

    padding: 90px 70px;

    text-align: center;

    margin-bottom: 50px;

    box-shadow:
        0 10px 30px rgba(
            15,
            23,
            42,
            0.05
        );
}

.hero h1 {
    color: var(--text);

    font-size: 4rem;

    font-weight: 800;

    letter-spacing: -2px;

    margin-bottom: 20px;
}

.hero p {
    max-width: 720px;

    margin: auto;

    color: var(--text-light);

    font-size: 1.1rem;

    line-height: 1.9;
}

.hero-badge {
    display: inline-block;

    background: #eff6ff;

    color: var(--primary);

    border: 1px solid #bfdbfe;

    padding: 10px 20px;

    border-radius: 999px;

    font-weight: 600;

    margin-bottom: 20px;
}

/* FEATURE CARDS */

.plan-item {
    background: white;

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 28px;

    text-align: center;

    height: 100%;

    transition: 0.25s ease;
}

.plan-item:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(
            15,
            23,
            42,
            0.08
        );
}

.plan-item h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-item p {
    color: var(--text-light);
    margin: 0;
}

/* CARDS */

.card {

    background: #0f172a;

    border: 1px solid rgba(
        255,
        255,
        255,
        0.08
    ) !important;

    border-radius: 28px !important;

    box-shadow:
        0 10px 40px rgba(
            0,
            0,
            0,
            0.35
        );
}
.card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(
            15,
            23,
            42,
            0.08
        );
}

.card-body {
    padding: 2.25rem;
}

/* FORM */

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: 14px;

    border: 1px solid #cbd5e1;

    height: 56px;

    font-size: 15px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(
            37,
            99,
            235,
            0.15
        );
}

/* BUTTON */

.btn-primary {
    width: 100%;

    height: 58px;

    border-radius: 14px;

    font-weight: 700;

    font-size: 1rem;

    background: var(--primary);

    border: none;

    transition: 0.25s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);
}

/* TITLES */

.section-title {
    font-size: 2.2rem;

    font-weight: 800;

    letter-spacing: -1px;

    margin-bottom: 30px;
}

/* LOADING */

#loadingSection {

    background: var(--card);

    color: var(--text);

    border-radius: 24px;

    padding: 40px;

    border: 1px solid var(--border);

    margin-top: 30px;
}
:root {

    --card: #ffffff;
}

body.dark-mode {

    --card: #111827;
}
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* KPI CARDS */

.metric-card {
    background: white;

    border-radius: 22px;

    padding: 30px;

    text-align: center;

    height: 100%;

    transition: 0.25s ease;
}

.metric-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 28px rgba(
            15,
            23,
            42,
            0.08
        );
}

.metric-label {
    font-size: 0.85rem;

    color: var(--text-light);

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 15px;
}

.metric-score {
    border-top: 5px solid var(--primary);
}

.metric-risk {
    border-top: 5px solid var(--danger);
}

.metric-compliance {
    border-top: 5px solid var(--warning);
}

.metric-negotiation {
    border-top: 5px solid var(--success);
}

/* KPI VALUES */

#healthScore {
    font-size: 5rem !important;

    font-weight: 900;

    color: var(--primary);

    margin: 0;
}

#highRiskCount,
#complianceCount,
#negotiationCount {
    font-size: 3rem;

    font-weight: 800;
}

#highRiskCount {
    color: var(--danger);
}

#complianceCount {
    color: var(--warning);
}

#negotiationCount {
    color: var(--success);
}

/* EXECUTIVE SUMMARY */

#executiveSummary {
    font-size: 1rem;

    line-height: 2;

    color: #334155;
}

/* RISKS */

.risk-card {
    background: white;

    border-radius: 20px;

    border: 1px solid var(--border);

    padding: 25px;

    margin-bottom: 20px;

    transition: 0.25s ease;
}

.risk-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 35px rgba(
            15,
            23,
            42,
            0.08
        );
}

.risk-title {
    font-size: 1.2rem;

    font-weight: 700;

    margin-bottom: 15px;
}

.risk-high {
    border-left: 6px solid var(--danger);
}

.risk-medium {
    border-left: 6px solid #f59e0b;
}

.risk-low {
    border-left: 6px solid var(--success);
}

/* RESULTS */

#resultsSection {
    margin-bottom: 80px;
}

#resultsSection .card {
    margin-bottom: 25px;
}

/* BADGES */

.badge {
    padding: 10px 18px;

    border-radius: 999px;

    font-weight: 600;
}

/* SCROLLBAR */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;

    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* MOBILE */

@media (max-width: 768px) {

    .hero {
        padding: 50px 25px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .card-body {
        padding: 1.4rem;
    }

    #healthScore {
        font-size: 3.5rem !important;
    }

    #highRiskCount,
    #complianceCount,
    #negotiationCount {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
/* DARK MODE */

body.dark-mode {

    --background: #0f172a;
    --card: #111827;

    --text: #f8fafc;
    --text-light: #94a3b8;

    --border: #334155;

    background: #0f172a;
}

body.dark-mode::before {

    background:

        radial-gradient(
            circle at top left,
            rgba(37,99,235,0.10),
            transparent 30%
        ),

        radial-gradient(
            circle at bottom right,
            rgba(99,102,241,0.10),
            transparent 30%
        );
}

body.dark-mode .navbar {

    background:
        rgba(15,23,42,0.85) !important;

    border-bottom:
        1px solid #334155;
}

body.dark-mode .navbar-brand {

    color: white !important;
}

body.dark-mode .hero {

    background:
        linear-gradient(
            135deg,
            #111827,
            #1e293b
        );

    border:
        1px solid #334155;
}

body.dark-mode .hero h1 {

    color: white;
}

body.dark-mode .hero p {

    color: #cbd5e1;
}

body.dark-mode .card,
body.dark-mode .plan-item,
body.dark-mode .metric-card,
body.dark-mode .risk-card {

    background: #111827;

    color: white;

    border:
        1px solid #334155 !important;
}

body.dark-mode .form-control,
body.dark-mode .form-select {

    background: #1e293b;

    color: white;

    border:
        1px solid #475569;
}

body.dark-mode .form-control::placeholder {

    color: #94a3b8;
}

body.dark-mode .form-label {

    color: #e2e8f0;
}

body.dark-mode #executiveSummary {

    color: #cbd5e1;
}

body.dark-mode .section-title {

    color: white;
}

body.dark-mode .text-muted {

    color: #94a3b8 !important;
}

body.dark-mode #loadingSection {

    background: #111827;

    border:
        1px solid #334155;
}
/* FILE INPUT */

input[type="file"] {

    width: 100%;

    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 10px;

    padding: 6px;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
}

input[type="file"]::file-selector-button {

    background: #60a5fa;

    color: #0f172a;

    border: none;

    border-radius: 8px;

    padding: 10px 20px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;

    margin-right: 16px;
}

input[type="file"]::file-selector-button:hover {

    background: #3b82f6;

    color: white;

    transform: translateY(-1px);
}

body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {

    color: #f8fafc !important;
}

body.dark-mode .risk-card {

    background: #111827;

    color: white;

    border-top: 1px solid #334155 !important;
    border-right: 1px solid #334155 !important;
    border-bottom: 1px solid #334155 !important;

    box-shadow:
        0 10px 25px rgba(
            0,
            0,
            0,
            0.25
        );
}

body.dark-mode .risk-high {

    border-left: 6px solid #ef4444 !important;
}

body.dark-mode .risk-medium {

    border-left: 6px solid #f59e0b !important;
}

body.dark-mode .risk-low {

    border-left: 6px solid #22c55e !important;
}

body.dark-mode .risk-high .risk-title {

    color: #f87171;
}

body.dark-mode .risk-medium .risk-title {

    color: #fbbf24;
}

body.dark-mode .risk-low .risk-title {

    color: #4ade80;
}
.disclaimer {

    font-size: 0.82rem;

    color: #64748b;

    text-align: center;

    line-height: 1.6;

    margin-top: 14px;

    padding: 0 10px;
}

body.dark-mode .disclaimer {

    color: #94a3b8;
}