/* Modern Premium Design System for Bias-Free AI: Building Fair and Ethical ML Models */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #475569;
    --accent-glow: rgba(37, 99, 235, 0.12);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-gradient: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .hero-title, .navbar-brand {
    font-family: 'Outfit', sans-serif;
}

/* Navbar Custom Styling */
.navbar-custom {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: #0f172a !important;
    letter-spacing: -0.02em;
}

.nav-link {
    color: #475569 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #2563eb !important;
    background: #eff6ff;
}

/* Hero & Header Banners */
.hero-banner {
    background: #ffffff;
    color: #0f172a;
    padding: 3.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    display: none;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: initial;
}

/* Glassmorphism Cards */
.card-custom {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Metric Display Cards */
.metric-card {
    padding: 1.75rem;
    border-radius: 1.25rem;
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease;
}

.metric-card:hover {
    transform: translateY(-4px) scale(1.02);
}

.metric-card.primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.metric-card.success { background: linear-gradient(135deg, #059669, #10b981); }
.metric-card.warning { background: linear-gradient(135deg, #d97706, #f59e0b); }
.metric-card.danger  { background: linear-gradient(135deg, #dc2626, #ef4444); }

.metric-val {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0.25rem;
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.92;
}

/* Status Badges */
.badge-fair {
    background-color: #dcfce7;
    color: #15803d;
    padding: 0.45em 0.85em;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.badge-biased {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 0.45em 0.85em;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Tables */
.table {
    border-color: #e2e8f0;
}

.table th {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Confusion Matrix Box */
.cm-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 360px;
    margin: 0 auto;
}

.cm-cell {
    padding: 1.4rem 1rem;
    border-radius: 0.85rem;
    text-align: center;
    color: white;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cm-cell.tn { background: linear-gradient(135deg, #475569, #334155); }
.cm-cell.fp { background: linear-gradient(135deg, #ef4444, #dc2626); }
.cm-cell.fn { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cm-cell.tp { background: linear-gradient(135deg, #10b981, #059669); }

/* LLM Box */
.llm-box {
    background: #f0f9ff;
    border-left: 5px solid #0284c7;
    border-radius: 0.75rem;
    padding: 1.75rem;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.08);
}

footer {
    margin-top: auto;
    background: #ffffff;
    color: #64748b;
    padding: 1.75rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
}
