html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.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;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.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;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.hide-k-loader .k-loading-mask {
    display: none !important;
}

#vertical-hover {
    display: none !important;
}

html[data-sidebar-size="sm-hover"] .logo-lg, html[data-sidebar-size="sm-hover-active"] .logo-lg {
    display: none !important;
}

html[data-sidebar-size="sm-hover"] .logo-sm, html[data-sidebar-size="sm-hover-active"] .logo-sm {
    display: inline-block !important;
    margin-left: 0 !important;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

html[data-sidebar-size="sm-hover"] .app-menu {
    border-right: 1px solid rgba(0,0,0,0.05);
    box-shadow: 4px 0 15px rgba(0,0,0,0.05) !important;
    transition: width 0.2s ease-out;
}

html[data-sidebar-size="sm-hover"] .app-menu .p-3 {
    padding: 0 15px !important;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

html[data-sidebar-size="sm-hover"] .app-menu #menu-search-input {
    display: none !important;
}

html[data-sidebar-size="sm-hover-active"] .app-menu .p-3 {
    opacity: 1;
    visibility: visible;
    height: auto;
    padding: 15px !important;
    transition: opacity 0.2s ease-out 0.05s;
}

.app-menu .collapsing {
    transition: height 0.15s ease-out !important;
    overflow: hidden;
}

#page-topbar {
    height: 50px !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #e9ebec;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    z-index: 1002;
}

html[data-bs-theme="dark"] #page-topbar, html[data-bs-theme="dark"] .navbar-brand-box {
    background-color: #1a1d21 !important;
    background-image: none !important;
    border-bottom: 1px solid #2a2f34;
}

.navbar-brand-box {
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 1.3rem !important;
}

.logo-sm img, .logo-lg img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.header-right-content {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sidebar GENEL Ayarlar */
html[data-sidebar-size="sm-hover"] .app-menu .menu-search-container {
    display: none !important; /* Kapalıyken kesin gizle */
}

/* Sidebar ÜZERİNE GELİNDİĞİNDE (Aktifken) */
html[data-sidebar-size="sm-hover-active"] .app-menu .menu-search-container {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    padding: 15px !important;
}

/* Zorunlu Input Gösterimi */
html[data-sidebar-size="sm-hover-active"] .app-menu #menu-search-input {
    display: block !important;
}

/* Arama Gizleme Yardımcıları */
.nav-item.search-hidden, .menu-title.search-hidden {
    display: none !important;
}

/* Profil window vb. için ek stiller */
.sidebar-user {
    display: block !important;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Kartların boyut ve hizalamasını eşitleyen güncellenmiş CSS */
.basemap-card {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    margin-bottom: 5px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    background: var(--vz-card-bg-custom, #fff);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 52px;
    width: 100%;
    box-sizing: border-box;
}

.basemap-card:hover {
    transform: translateX(4px);
    background-color: var(--vz-light);
    border-color: var(--vz-primary-subtle);
}

.basemap-card.active {
    border-color: var(--vz-primary);
    background-color: rgba(var(--vz-primary-rgb), 0.05);
}

.basemap-img-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 10px;
    border: 1px solid rgba(0,0,0,0.1);
}

    .basemap-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.basemap-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.basemap-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--vz-body-color);
    line-height: 1.2;
}

.basemap-desc {
    display: block;
    font-size: 10px;
    color: #878a99;
    margin-top: 2px;
}

.basemap-check {
    display: none;
    font-size: 16px;
}

.basemap-card.active .basemap-check {
    display: block;
}

html[data-bs-theme="dark"] .basemap-card {
    border-color: rgba(255,255,255,0.1);
}

#page-topbar #page-header-user-dropdown:focus, #page-topbar #page-header-user-dropdown.show {
    box-shadow: none !important;
    background-color: transparent !important;
}

/* Hamburger Buton – hizalı ve daha soft */
#page-topbar #topnav-hamburger-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 36px !important;
    width: 36px !important;
    padding: 0 !important;
}

/* Hover efekti (soft UI hissi) */
#topnav-hamburger-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* İç ikon */
.hamburger-icon {
    width: 16px;
    height: 12px;
    position: relative;
}

/* Çizgiler – daha soft gri */
.hamburger-icon span {
    position: absolute;
    height: 2.5px; /* daha ince */
    width: 100%;
    background-color: #6c757d; /* soft gri */
    border-radius: 2px;
    left: 0;
    transition: all 0.25s ease;
    opacity: 0.85; /* hafif soluk görünüm */
}

/* Dark mode uyumu */
html[data-bs-theme="dark"] .hamburger-icon span {
    background-color: #adb5bd;
    opacity: 0.9;
}

/* Çizgi hizalama (daha dengeli spacing) */
.hamburger-icon span:nth-child(1) {
    top: 0;
}

.hamburger-icon span:nth-child(2) {
    top: 5px;
}

.hamburger-icon span:nth-child(3) {
    top: 10px;
}

/* =========================================================
KARANLIK TEMA - SAYFA BAŞLIĞI (PAGE TITLES) ALANI
========================================================= */

/* Ana kutunun arka planını ve gölgesini dark mode'a uyarla */
html[data-bs-theme="dark"] .page-titles.bg-white {
    background-color: #1a1d21 !important; /* Topbar ile uyumlu dark arka plan */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important; /* Karanlık temaya uygun soft gölge */
}

/* "Dil İşlemleri" başlığındaki siyah (text-dark) rengi beyaza çevir */
html[data-bs-theme="dark"] .page-titles .text-dark {
    color: #f8f9fa !important;
}

/* Breadcrumb içindeki pasif metinleri (Admin Modülü) karanlık temada okunabilir yap */
html[data-bs-theme="dark"] .page-titles .breadcrumb a.text-muted {
    color: #adb5bd !important;
}

html[data-bs-theme="dark"] .page-titles .breadcrumb a.text-muted:hover {
    color: #ffffff !important;
}

/* Sol taraftaki kalın mavi çizginin (border-info) karanlık temadaki tonunu yumuşat */
html[data-bs-theme="dark"] .page-titles.border-info {
    border-left-color: #299cdb !important; /* Dark mode için biraz daha soft bir mavi */
}

/* Breadcrumb aktif öğesi (Diller) için text-info rengini karanlık temada canlandır */
html[data-bs-theme="dark"] .page-titles .breadcrumb .text-info {
    color: #3bc0ff !important;
}



/* Tıklanabilir Çeviri Metinleri İçin Görsel Efektler */
.translate-glow {
    border-bottom: 2px dotted #f39c12 !important; /* Altı noktalı turuncu çizgi */
    cursor: text !important;
    position: relative;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.translate-glow:hover {
    background-color: rgba(243, 156, 18, 0.2); /* Üzerine gelince hafif turuncu yanar */
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.5);
}