/* ============================================================
   SITEHEALTHSCORE — Modern Designer Palette Override
   Jet Black:   #2A2D34
   Blue Bell:   #009DDC
   Tiger Flame: #F26430
   Dusty Grape: #6761A8
   Shamrock:    #009B72
   ============================================================ */

/* ── RESET BODY & LAYOUT ─────────────────────────────────── */
#analyzing_overlay h2 { color: #ffffff !important; }
#analyzing_overlay p { color: rgba(255,255,255,0.8) !important; }
#analyzing_overlay #analyzing_url { color: #F26430 !important; font-weight: 700 !important; }
#analyzing_overlay span { color: #ffffff !important; }

body {
    background: #f8f9fb !important;
    color: #2A2D34 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove unexpected side margins from the main app */
.app, main { margin: 0 !important; padding: 0 !important; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: #2A2D34 !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
}

/* ── HERO SECTION TEXT (dark navy bg — must be white) ────── */
.shs-hero h1,
.shs-hero h2,
.shs-hero h3,
.shs-hero h4,
.shs-hero h5,
.shs-hero h6,
.shs-hero .index-header {
    color: #ffffff !important;
}
.shs-hero p,
.shs-hero span:not([style*="background"]),
.shs-hero small,
.shs-hero li {
    color: rgba(255, 255, 255, 0.65) !important;
}
/* Gradient text span override — let it render its own color */
.shs-hero h1 span[style*="background-clip"],
.shs-hero h1 span[style*="-webkit-background-clip"] {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}
/* Stats numbers stay white + bold */
.shs-hero [style*="font-size:1.75rem"] {
    color: #ffffff !important;
}

a { color: #009DDC; transition: color 0.15s; }
a:hover { color: #0082b8; text-decoration: none; }

.text-primary { color: #009DDC !important; }
.text-secondary { color: #6761A8 !important; }
.text-success { color: #009B72 !important; }
.text-dark { color: #2A2D34 !important; }
.text-muted { color: #6b7280 !important; }

/* ── FOOTER & CTA TEXT (dark bg overrides) ───────────────── */
.footer-background, 
.footer-background a,
.app-footer a {
    color: rgba(255, 255, 255, 0.65) !important;
    transition: color 0.2s ease;
}
.footer-background a:hover,
.app-footer a:hover {
    color: #ffffff !important;
    text-decoration: none;
}
.footer-background .text-muted,
.app-footer .text-muted {
    color: rgba(255, 255, 255, 0.45) !important;
}
.footer-background .footer-logo,
.app-footer img,
.app-footer .footer-logo {
    filter: brightness(0) invert(1) !important;
}
.footer-background h5,
.footer-background .footer-heading {
    color: #ffffff !important;
}

/* Glassmorphism social icons */
.footer-social-wrapper {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 0.5rem !important;
    transition: all 0.2s ease !important;
}
.footer-social-wrapper:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}
.footer-social-wrapper i {
    color: #ffffff !important; /* Force icons to be white regardless of brand color */
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn:hover {
    transform: translateY(-2px) scale(1.03) !important;
}
.btn:active {
    transform: scale(0.97) !important;
}

/* Primary = Blue Bell */
.btn-primary,
button.btn-primary,
a.btn-primary,
input[type="submit"].btn-primary {
    background-color: #009DDC !important;
    border-color: #009DDC !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 0.5rem 1.25rem !important;
    box-shadow: 0 2px 8px rgba(0,157,220,0.25) !important;
    transition: all 0.2s ease !important;
}
.btn-primary:hover,
.btn-primary:focus,
button.btn-primary:hover {
    background-color: #0082b8 !important;
    border-color: #0082b8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0,157,220,0.35) !important;
    transform: translateY(-2px) scale(1.03) !important;
}

/* CTA hero button = Tiger Flame Orange (conversion focus) */
.index-button-hero,
.btn-cta {
    background-color: #F26430 !important;
    border-color: #F26430 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(242, 100, 48, 0.3) !important;
}
.index-button-hero:hover,
.btn-cta:hover {
    background-color: #D94F1B !important;
    border-color: #D94F1B !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(242, 100, 48, 0.4) !important;
    transform: translateY(-2px) scale(1.03) !important;
}

/* Outline / secondary buttons */
.btn-outline-primary {
    color: #009DDC !important;
    border-color: #009DDC !important;
    background: transparent !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}
.btn-outline-primary:hover {
    background: #009DDC !important;
    color: #fff !important;
    transform: translateY(-2px) scale(1.03) !important;
}

.btn-success {
    background-color: #009B72 !important;
    border-color: #009B72 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}
.btn-success:hover { 
    background-color: #007a5a !important; 
    border-color: #007a5a !important; 
    transform: translateY(-2px) scale(1.03) !important;
}

/* Fix disabled/invisible btn-primary-100 text variants for pricing */
.btn-primary-100 {
    background-color: rgba(0,157,220,0.1) !important;
    color: #009DDC !important;
    border: none !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}
.btn-primary-100:hover {
    background-color: rgba(0,157,220,0.18) !important;
    color: #0082b8 !important;
    transform: translateY(-2px) scale(1.03) !important;
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
    background: #0c1a2e !important; /* Dark navy — matches hero */
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    box-shadow: none !important;
    padding: 0.875rem 1.5rem !important;
}
.navbar-brand span,
.navbar-brand,
.navbar .navbar-brand { color: #ffffff !important; font-weight: 700 !important; font-size: 1.15rem !important; }

/* ── NAVBAR BRAND LOGO & TEXT ────────────────────────────── */
.navbar-brand span:not(.badge), 
.navbar-brand i,
.navbar-brand {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    display: inline-flex !important;
    align-items: center !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    -webkit-background-clip: initial !important;
}

/* Image-based logo → crisp white */
.navbar-brand img,
.navbar .navbar-logo {
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
}
.navbar .nav-link { color: rgba(255,255,255,0.7) !important; font-weight: 500 !important; padding: 0.45rem 0.75rem !important; border-radius: 6px !important; }
.navbar .nav-link:hover { color: #ffffff !important; background: rgba(255,255,255,0.07) !important; }
.navbar .nav-link.active { color: #009DDC !important; }

/* Navbar CTA button — Tiger Flame */
.navbar .btn-primary {
    background: linear-gradient(135deg, #F26430, #D94F1B) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    padding: 0.45rem 1.15rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 10px rgba(242, 100, 48, 0.3) !important;
}
.navbar .btn-primary:hover {
    background: linear-gradient(135deg, #ff7b4d, #F26430) !important;
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 5px 14px rgba(242, 100, 48, 0.4) !important;
}

/* ── CARDS ───────────────────────────────────────────────── */
.card {
    background: #ffffff !important;
    border: 1px solid #eaedf1 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09) !important;
    transform: translateY(-2px) !important;
}

/* ── FORMS ───────────────────────────────────────────────── */
.form-control {
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 0.6rem 0.9rem !important;
    color: #2A2D34 !important;
    background: #ffffff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.form-control:focus {
    border-color: #009DDC !important;
    box-shadow: 0 0 0 3px rgba(0,157,220,0.12) !important;
    outline: none !important;
}
.form-control::placeholder { color: #9ca3af !important; }

.input-group-text {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #6b7280 !important;
    border-radius: 8px 0 0 8px !important;
}

/* ── BADGES ──────────────────────────────────────────────── */
.badge-primary { background-color: #009DDC !important; color: #fff !important; }
.badge-success { background-color: #009B72 !important; color: #fff !important; }
.badge-secondary { background-color: #6761A8 !important; color: #fff !important; }
.badge-success-light {
    background-color: rgba(0,155,114,0.1) !important;
    color: #009B72 !important;
    font-weight: 600 !important;
}
.badge-primary-light {
    background-color: rgba(0,157,220,0.1) !important;
    color: #009DDC !important;
    font-weight: 600 !important;
}

/* ── PROGRESS ────────────────────────────────────────────── */
.progress { background: #e5e7eb !important; border-radius: 99px !important; }
.progress-bar { background-color: #009DDC !important; border-radius: 99px !important; }
.progress-bar.bg-success { background-color: #009B72 !important; }
.progress-bar.bg-warning { background-color: #F26430 !important; }
.progress-bar.bg-danger { background-color: #ef4444 !important; }

/* ── ICONS / CHECKMARKS ──────────────────────────────────── */
.fa-check.text-success, i.text-success, .fas.text-success { color: #009B72 !important; }
.fa-times.text-danger, i.text-danger { color: #ef4444 !important; }

/* ── TABLES ──────────────────────────────────────────────── */
.table thead th {
    color: #2A2D34 !important;
    background: #f8f9fb !important;
    border-bottom: 2px solid #eaedf1 !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}
.table tbody tr:hover td { background: rgba(0,157,220,0.04) !important; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.app-sidebar { background: #ffffff !important; border-color: #eaedf1 !important; }
.app-sidebar-links-wrapper .nav-link,
.app-sidebar-links-wrapper a { color: #4b5563 !important; border-radius: 8px !important; }
.app-sidebar-links-wrapper .nav-link:hover,
.app-sidebar-links-wrapper .nav-link.active {
    color: #009DDC !important;
    background: rgba(0,157,220,0.07) !important;
}

/* ── TABS / PILLS ────────────────────────────────────────── */
.nav-tabs .nav-link.active {
    color: #009DDC !important;
    border-bottom: 2px solid #009DDC !important;
    font-weight: 600 !important;
}
.nav-pills .nav-link.active {
    background-color: #009DDC !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

/* ── DROPDOWNS ───────────────────────────────────────────── */
.dropdown-menu { border: 1px solid #eaedf1 !important; border-radius: 10px !important; box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important; }
.dropdown-item:hover { background: rgba(0,157,220,0.07) !important; color: #009DDC !important; }
.dropdown-item.active, .dropdown-item:active { background-color: #009DDC !important; color: #fff !important; }

/* ── PAGINATION ──────────────────────────────────────────── */
.page-item.active .page-link { background-color: #009DDC !important; border-color: #009DDC !important; color: #fff !important; }
.page-link { color: #009DDC !important; border-radius: 6px !important; border-color: #eaedf1 !important; }
.page-link:hover { color: #0082b8 !important; background: rgba(0,157,220,0.07) !important; }

/* ── ALERTS ──────────────────────────────────────────────── */
.alert-primary { background: rgba(0,157,220,0.08) !important; border-color: rgba(0,157,220,0.2) !important; color: #0077a6 !important; border-radius: 8px !important; }
.alert-success { background: rgba(0,155,114,0.08) !important; border-color: rgba(0,155,114,0.2) !important; color: #007a5a !important; border-radius: 8px !important; }
.alert-danger { border-radius: 8px !important; }

/* ── PRICING CARDS ───────────────────────────────────────── */
.pricing-card { border-radius: 14px !important; border: 1px solid #eaedf1 !important; }
#plans .pricing-card .btn,
.pricing-card .btn-block {
    background-color: #009DDC !important;
    border-color: #009DDC !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.65rem 1rem !important;
}
#plans .pricing-card .btn:hover,
.pricing-card .btn-block:hover {
    background-color: #0082b8 !important;
    border-color: #0082b8 !important;
}
/* Featured plan */
#plans .col-xl-4:nth-child(2) .pricing-card,
#plans .col-lg-4:nth-child(2) .pricing-card {
    border: 2px solid #009DDC !important;
    box-shadow: 0 8px 32px rgba(0,157,220,0.15) !important;
}
.pricing-tag { background: #2A2D34 !important; color: #fff !important; border-radius: 99px !important; font-size: 0.7rem !important; letter-spacing: 0.04em !important; }

/* ── INDEX HERO ──────────────────────────────────────────── */
.index-background {
    background: linear-gradient(135deg, #e8f6ff 0%, #c8e8f8 25%, #a0d4f0 55%, #6fb8e8 80%, #5aaae0 100%) !important;
}
/* Keep text dark and readable on the blue gradient */
.index-background h1,
.index-background h2,
.index-background .index-header { color: #1a2332 !important; }
.index-background p,
.index-background .index-subheader { color: #1e3a52 !important; }
.index-background small.text-muted,
.index-background .text-muted { color: #2d5470 !important; }

/* ── TESTIMONIALS SECTION ────────────────────────────────── */
.py-7.bg-primary-100 {
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f5ff 100%) !important;
    border-radius: 16px !important;
}

/* ── CTA SECTION (above footer) ──────────────────────────── */
.index-cta {
    background: linear-gradient(135deg, #009DDC 0%, #0082b8 100%) !important;
    padding: 4rem 0 !important;
}
.index-cta h2 { color: #ffffff !important; }
.index-cta p { color: rgba(255,255,255,0.85) !important; }
.index-cta .btn-primary,
.index-cta a.btn {
    background: #ffffff !important;
    color: #009DDC !important;
    border-color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 0.75rem 2rem !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12) !important;
}
.index-cta .btn-primary:hover,
.index-cta a.btn:hover {
    background: #f0f9ff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer-background {
    background: #2A2D34 !important;
    padding: 3rem 0 1.5rem !important;
    margin: 0 !important;
    border-top: none !important;
}

.footer-background .container { max-width: 1200px !important; }

/* Footer text */
.app-footer { color: #cbd5e0 !important; }
.app-footer .footer-heading,
.app-footer .h5,
.app-footer span.mb-2 {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}
.app-footer .text-muted { color: #9ca3af !important; }
.app-footer .font-size-little-small { color: #9ca3af !important; }

/* Footer links */
.app-footer a,
.app-footer ul a,
.app-footer li a {
    color: #9ca3af !important;
    transition: color 0.15s !important;
    text-decoration: none !important;
}
.app-footer a:hover,
.app-footer ul a:hover {
    color: #009DDC !important;
}

/* Footer layout: stack the links cleanly */
.app-footer ul.list-style-none { padding: 0 !important; }
.app-footer ul.list-style-none li { display: inline-block !important; margin-right: 1.5rem !important; }

/* Footer bottom border */
.app-footer .row { border-top: 1px solid rgba(255,255,255,0.08) !important; padding-top: 1.25rem !important; margin-top: 1.25rem !important; }

/* Footer social icons */
.footer-social-wrapper {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ── SCORE RING COLOURS ──────────────────────────────────── */
.score-excellent, .score-excellent svg circle { color: #009B72 !important; stroke: #009B72 !important; }
.score-good, .score-good svg circle { color: #009DDC !important; stroke: #009DDC !important; }
.score-warning, .score-warning svg circle { color: #F26430 !important; stroke: #F26430 !important; }
.score-poor, .score-poor svg circle { color: #ef4444 !important; stroke: #ef4444 !important; }

/* ── REMOVE UNWANTED HORIZONTAL PADDING ON CONTAINERS ────── */
@media (max-width: 576px) {
    .container, .container-fluid { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* ── SMOOTH SCROLLBAR & SELECTION ───────────────────────── */
::selection { background: rgba(0,157,220,0.2); color: #2A2D34; }
