html {
    scroll-behavior: smooth !important;
}

/* Template font ve renklerine müdahale etmiyoruz - theme.min.css kontrol ediyor */

.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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+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;
}

/* ===== Feature Cards - Sizin için neler yapabiliriz? ===== */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-card:active {
    transform: translateY(-4px);
}

.feature-card .card-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .card-icon {
    transform: scale(1.1);
}

/* ============================================================
   SILICON TEMPLATE - FABRİKA AYARLARI GERİ YÜKLEME
   Theme-Aware (Temaya Duyarlı) Dropdown ve Navbar Stilleri
   ============================================================ */

/* Dropdown Kutusu */
.dropdown-menu {
    border-radius: 0.5rem !important;
    box-shadow: 0 0.5rem 1.125rem -0.25rem rgba(0, 0, 0, 0.2) !important;
    font-size: 0.9375rem !important;
    animation: none !important;
    margin-top: 10px !important;
    z-index: 9999 !important;
}

/* Dropdown Linkleri */
.dropdown-item {
    font-family: var(--si-body-font-family), system-ui, sans-serif !important;
    font-weight: 500 !important;
    padding: 0.5rem 1.25rem !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

/* Dropdown Hover/Focus/Active - Mor #6610f2 */
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
    color: #6610f2 !important;
    background-color: transparent !important;
}

/* Navbar Linkleri */
.navbar-nav .nav-link {
    font-family: inherit !important;
    font-weight: 500 !important;
}

/* Navbar Hover/Active - Mor #6610f2 */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.show > .nav-link {
    color: #6610f2 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* LIGHT MODE - Bootstrap'ın varsayılan beyaz dropdown                         */
/* ═══════════════════════════════════════════════════════════════════════════ */
[data-bs-theme="light"] .dropdown-menu {
    background-color: #ffffff !important;
    border-color: #e3e6ed !important;
}

[data-bs-theme="light"] .dropdown-item {
    color: #33354d !important;
}

[data-bs-theme="light"] .dropdown-item:hover,
[data-bs-theme="light"] .dropdown-item:focus {
    color: #6610f2 !important;
    background-color: transparent !important;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* DARK MODE - Koyu dropdown                                                    */
/* ═══════════════════════════════════════════════════════════════════════════ */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #0b0f19 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    color: #6610f2 !important;
    background-color: transparent !important;
}

/* Dark Mode - Alt Sayfalarda Navbar Düzeltmeleri */
[data-bs-theme="dark"] .navbar.navbar-light,
[data-bs-theme="dark"] .navbar.bg-light {
    background-color: rgba(15, 15, 25, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-bs-theme="dark"] .navbar-light .navbar-nav .nav-link:hover {
    color: #6610f2 !important;
}

[data-bs-theme="dark"] .navbar-brand span,
[data-bs-theme="dark"] .navbar .text-dark {
    color: #ffffff !important;
}

/* Dark modda hamburger icon - HER ZAMAN beyaz */
[data-bs-theme="dark"] .navbar-toggler-icon,
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    filter: none !important;
}

[data-bs-theme="dark"] .mega-dropdown-column h6 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* OFFCANVAS (Mobil Menü) - Temel stiller                                      */
/* ═══════════════════════════════════════════════════════════════════════════ */
#navbarNav.offcanvas {
    z-index: 100001 !important;
}

.offcanvas-backdrop {
    z-index: 100000 !important;
}

/* Offcanvas içindeki dropdown'lar - accordion gibi davransın */
#navbarNav .navbar-nav {
    flex-direction: column !important;
    width: 100% !important;
}

#navbarNav .nav-item {
    width: 100% !important;
    position: relative !important;
}

#navbarNav .nav-item.dropdown {
    position: static !important;
}

#navbarNav .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 1rem !important;
    background-color: transparent !important;
    margin: 0 !important;
    transform: none !important;
}

#navbarNav .dropdown-menu:not(.show) {
    display: none !important;
}

#navbarNav .dropdown-menu.show {
    display: block !important;
}

/* Offcanvas içindeki dropdown başlıkları */
#navbarNav .dropdown-header {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0.5rem 1rem !important;
    margin-top: 0.5rem !important;
}

/* Offcanvas içindeki nav-link'ler - HER ZAMAN beyaz (koyu arka plan için) */
.offcanvas[data-bs-theme="dark"] .nav-link,
.offcanvas[data-bs-theme="dark"] .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

.offcanvas[data-bs-theme="dark"] .nav-link:hover,
.offcanvas[data-bs-theme="dark"] .navbar-nav .nav-link:hover,
.offcanvas[data-bs-theme="dark"] .nav-link:focus,
.offcanvas[data-bs-theme="dark"] .nav-link:active {
    color: var(--si-primary) !important;
}

/* Offcanvas dropdown-item'lar için de beyaz */
.offcanvas[data-bs-theme="dark"] .dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
}

.offcanvas[data-bs-theme="dark"] .dropdown-item:hover,
.offcanvas[data-bs-theme="dark"] .dropdown-item:focus,
.offcanvas[data-bs-theme="dark"] .dropdown-item:active {
    color: var(--si-primary) !important;
    background-color: transparent !important;
}

/* Offcanvas dropdown-menu arka planı */
.offcanvas[data-bs-theme="dark"] .dropdown-menu {
    background-color: transparent !important;
    border: none !important;
}



/* ═══════════════════════════════════════════════════════════════════════════ */
/* MODE SWITCH & HAMBURGER - Ana sayfada (navbar-dark) her zaman beyaz         */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Ana sayfada (navbar-dark) - Light/Dark yazıları HER ZAMAN beyaz */
.navbar-dark .mode-switch .form-check-label {
    color: rgba(255, 255, 255, 0.75) !important;
}

.navbar-dark .mode-switch .form-check-input:not(:checked) ~ .form-check-label:first-of-type {
    color: #ffffff !important;
}

.navbar-dark .mode-switch .form-check-input:checked ~ .form-check-label:last-of-type {
    color: #ffffff !important;
}

/* Ana sayfada (navbar-dark) - Hamburger SVG HER ZAMAN beyaz */
.navbar-dark .hamburger-svg {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* İç sayfalarda light mode - siyah */
.navbar-light .hamburger-svg {
    color: rgba(0, 0, 0, 0.7) !important;
}

/* Dark mode aktifken HER YERDE beyaz */
[data-bs-theme="dark"] .hamburger-svg {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* İç sayfalarda Dark mode aktifken                                            */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* İç sayfalarda dark mode - Light/Dark yazıları beyaz */
[data-bs-theme="dark"] .navbar-light .mode-switch .form-check-label {
    color: rgba(255, 255, 255, 0.75) !important;
}

[data-bs-theme="dark"] .navbar-light .mode-switch .form-check-input:checked ~ .form-check-label:last-of-type {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .navbar-light .mode-switch .form-check-input:not(:checked) ~ .form-check-label:first-of-type {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* İç sayfalarda dark mode - Hamburger ikonu beyaz */
[data-bs-theme="dark"] .navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

[data-bs-theme="dark"] .navbar-light .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Z-INDEX FIX - Dropdown'ların içeriklerin önünde görünmesi                   */
/* ═══════════════════════════════════════════════════════════════════════════ */
nav.navbar,
.navbar,
header.navbar,
.header {
    position: relative;
    z-index: 1050 !important;
}

.page-header,
.hero-banner,
.product-hero-card,
main .card,
.page-wrapper .card {
    z-index: 1;
    position: relative;
}

.product-hero-card .position-absolute {
    z-index: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ERROR BOUNDARY - Özel hata sayfası stilleri                                 */
/* ═══════════════════════════════════════════════════════════════════════════ */
.error-boundary-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
}

[data-bs-theme="dark"] .error-boundary-container {
    background: linear-gradient(135deg, #0b0f19 0%, #151a28 100%);
}

.error-icon svg {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* NOT FOUND (404) - Sayfa bulunamadı stilleri                                 */
/* ═══════════════════════════════════════════════════════════════════════════ */
.not-found-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
    padding-top: 80px;
}

[data-bs-theme="dark"] .not-found-container {
    background: linear-gradient(135deg, #0b0f19 0%, #151a28 100%);
}

.not-found-icon svg {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================================
   MOBİL SAFETY NET — tüm sayfalar (CRM form/akış sayfaları dahil)
   ============================================================ */
/* Medya öğeleri taşmasın */
img, iframe, svg, video, table {
    max-width: 100%;
}
/* iOS Safari: input/select font-size < 16px ise odakta otomatik zoom yapar.
   Mobilde tüm form alanlarını 16px'e sabitle (zoom + taşma engeli). */
@media (max-width: 575.98px) {
    .form-control,
    .form-control-sm,
    .form-select,
    .form-select-sm,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
    /* Mobilde butonlar rahat tıklansın (min 44px hedef) */
    .btn-lg {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }
}
