/* =====================================================================
   Fuse Analysis — brand stylesheet
   Primary colour: #0a3d62 (Fuse navy)
   ===================================================================== */

:root {
    --fuse-primary:        #0a3d62;
    --fuse-primary-dark:   #062a45;
    --fuse-primary-light:  #1a5a8a;
    --fuse-accent:         #4a90c2;
    --fuse-bg:             #f7f9fb;
    --fuse-text:           #1c2733;
    --fuse-muted:          #6c7a89;
    --fuse-border:         #dde3ea;
    --fuse-success:        #2e7d32;
    --fuse-warning:        #ed6c02;
    --fuse-danger:         #c62828;
}

html, body {
    background: var(--fuse-bg);
    color: var(--fuse-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Navbar */
.fuse-navbar {
    background: var(--fuse-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
}
.fuse-navbar .navbar-brand {
    color: white;
    font-weight: 600;
    font-size: 1.15rem;
}
.fuse-navbar .navbar-brand:hover { color: white; }
.fuse-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}
.fuse-navbar .nav-link:hover, .fuse-navbar .nav-link:focus {
    color: white;
}
.fuse-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}
.fuse-navbar .navbar-toggler-icon {
    filter: invert(1);
}

.fuse-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    color: var(--fuse-primary);
    font-weight: 700;
    border-radius: 6px;
    font-size: 1.1rem;
}
.fuse-logo-text { letter-spacing: -0.02em; }

/* Buttons */
.btn-fuse {
    background: var(--fuse-primary);
    border-color: var(--fuse-primary);
    color: white;
}
.btn-fuse:hover, .btn-fuse:focus {
    background: var(--fuse-primary-dark);
    border-color: var(--fuse-primary-dark);
    color: white;
}
.btn-fuse-light {
    background: white;
    border-color: white;
    color: var(--fuse-primary);
    font-weight: 600;
}
.btn-fuse-light:hover, .btn-fuse-light:focus {
    background: #eef2f6;
    color: var(--fuse-primary-dark);
}
.btn-outline-fuse {
    border-color: var(--fuse-primary);
    color: var(--fuse-primary);
}
.btn-outline-fuse:hover {
    background: var(--fuse-primary);
    color: white;
}

/* Hero */
.fuse-hero {
    background: linear-gradient(135deg, var(--fuse-primary) 0%, var(--fuse-primary-light) 100%);
    color: white;
    padding: 5rem 0 4rem;
}
.fuse-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}
.fuse-hero .lead {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 720px;
}

/* Feature cards */
.fuse-feature-card {
    background: white;
    border: 1px solid var(--fuse-border);
    border-radius: 10px;
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fuse-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(10, 61, 98, 0.08);
}
.fuse-feature-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(10, 61, 98, 0.08);
    color: var(--fuse-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.fuse-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.fuse-feature-card p {
    color: var(--fuse-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Footer */
.fuse-footer {
    background: white;
    border-top: 1px solid var(--fuse-border);
}
.fuse-footer a { text-decoration: none; }
.fuse-footer a:hover { color: var(--fuse-primary) !important; }

/* Tables (will be used heavily later) */
.table-fuse {
    background: white;
    border: 1px solid var(--fuse-border);
    border-radius: 8px;
    overflow: hidden;
}
.table-fuse thead {
    background: var(--fuse-primary);
    color: white;
}

/* Health check styles */
.health-table { background: white; border: 1px solid var(--fuse-border); border-radius: 8px; overflow: hidden; }
.health-status-pass { color: var(--fuse-success); font-weight: 600; }
.health-status-fail { color: var(--fuse-danger);  font-weight: 600; }
.health-banner-pass { background: #e8f5e9; border: 1px solid #c8e6c9; color: #1b5e20; }
.health-banner-fail { background: #ffebee; border: 1px solid #ffcdd2; color: #b71c1c; }

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--fuse-accent);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 194, 0.18);
}

/* Alerts */
.alert-info {
    background: rgba(10, 61, 98, 0.08);
    border-color: rgba(10, 61, 98, 0.18);
    color: var(--fuse-primary-dark);
}
