html, body {
    font-family: Bahnschrift, 'Sans Serif', sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1zbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ============================================
   HAMBURGER MENU - GLOBAL STYLES
   EXTREME PRIORITY - MUST OVERRIDE EVERYTHING
   ============================================ */

/* Force Index page content to low z-index */
.landing-page,
.landing-page *,
.hero-section,
.hero-section *,
.tech-background,
.tech-background *,
.company-name,
.features,
.feature-card,
.cta-section,
.cta-button {
    position: relative;
    z-index: auto !important;
}

/* Hamburger Menu Button - MUST BE ON TOP */
button.hamburger-menu,
.hamburger-menu,
button[class*="hamburger"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    z-index: 2147483647 !important;
    position: relative !important;
}

.hamburger-line,
span[class*="hamburger-line"] {
    display: block !important;
    width: 25px !important;
    height: 3px !important;
    background-color: #000000 !important;
    transition: all 0.3s ease !important;
    border-radius: 2px !important;
    pointer-events: none !important;
}

/* Hamburger animation when open */
.hamburger-menu.open .hamburger-line:nth-child(1),
button.hamburger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
}

.hamburger-menu.open .hamburger-line:nth-child(2),
button.hamburger-menu.open span:nth-child(2) {
    opacity: 0 !important;
}

.hamburger-menu.open .hamburger-line:nth-child(3),
button.hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px) !important;
}

/* Menu Panel - ALWAYS LIGHT GRAY BACKGROUND */
div.nav-menu,
.nav-menu,
div[class*="nav-menu"] {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 320px !important;
    height: 100vh !important;
    background: #f5f5f5 !important; /* ALWAYS light gray - matches top-bar */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 4rem 1.5rem 2rem !important;
    gap: 2rem !important;
    transition: right 0.3s ease !important;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15) !important;
    z-index: 2147483646 !important;
    overflow-y: auto !important;
}

div.nav-menu.open,
.nav-menu.open {
    right: 0 !important;
}

/* Language Selector */
.language-selector,
div[class*="language-selector"] {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.25rem !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    position: relative !important;
    z-index: 2147483647 !important;
}

button.lang-button,
.lang-button,
button[class*="lang-button"] {
    color: #000000 !important; /* Always black text */
    background: transparent !important;
    border: none !important;
    padding: 0.5rem 0.75rem !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    transition: all 0.3s !important;
    border-radius: 4px !important;
    position: relative !important;
    z-index: 2147483647 !important;
}

.lang-button:hover,
button.lang-button:hover {
    background-color: rgba(0, 102, 204, 0.1) !important;
    color: #0066cc !important;
}

.lang-button.active,
button.lang-button.active {
    background-color: rgba(0, 102, 204, 0.15) !important;
    color: #0066cc !important;
    font-weight: bold !important;
}

.lang-separator {
    color: #000000 !important; /* Always black */
    margin: 0 0.25rem !important;
}

/* Navigation Buttons Group */
.nav-buttons-group,
div[class*="nav-buttons-group"] {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.5rem !important;
    position: relative !important;
    z-index: 2147483647 !important;
}

button.nav-button,
.nav-button,
button[class*="nav-button"] {
    width: 100% !important;
    text-align: left !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    transition: all 0.3s !important;
    background-color: rgba(0, 102, 204, 0.05) !important;
    color: #000000 !important; /* Always black text */
    text-decoration: none !important;
    display: block !important;
    font-weight: 500 !important;
    border: none !important;
    cursor: pointer !important;
    font-family: Bahnschrift, 'Sans Serif', sans-serif !important;
    font-size: 1rem !important;
    position: relative !important;
    z-index: 2147483647 !important;
}

.nav-button:hover,
button.nav-button:hover {
    background-color: rgba(0, 102, 204, 0.12) !important;
    color: #0066cc !important;
}

/* Menu Overlay */
div.menu-overlay,
.menu-overlay,
div[class*="menu-overlay"] {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 2147483645 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.menu-overlay.active,
div.menu-overlay.active {
    display: block !important;
    opacity: 1 !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-menu,
    div.nav-menu {
        width: 280px !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* REMOVED - Menu background ALWAYS stays #f5f5f5 (light gray) */
    /* Menu text ALWAYS stays black */
    
    .language-selector {
        border-bottom-color: #e0e0e0 !important; /* Keep light border even in dark mode */
    }
    
    /* Hamburger lines stay BLACK in all modes */
}