/**
 * Uçuş Takip - Doğa & Karınca Temalı Global CSS (main.css)
 * "Wild Nature, Forest Canopy & Ant Colony Atmosphere"
 */

/* 1. Üst Komuta Barının haritanın kesin üstünde ve ferah konumda kalması */
header#app-topbar {
    position: sticky !important;
    top: 0.625rem !important;
    z-index: 9999 !important;
}
@media (min-width: 640px) {
    header#app-topbar {
        top: 1rem !important;
    }
}

/* 2. Haritanın z-index izolasyonu */
#map, #pinpoint-map, .leaflet-container {
    position: relative !important;
    z-index: 1 !important;
}

/* 3. iOS Safari'de form kutusu auto-zoom engelleme */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* 4. Dokunmatik ekranlarda pürüzsüz kaydırma ve botanik doğa arka planı */
html {
    background-color: #F1F6F0;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
body {
    background-color: #FAF7F2;
    background-image: radial-gradient(rgba(180, 83, 9, 0.08) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    color: #1A0D06;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Antora Geniş Ekran Koloni Radarı Düzeni (Doğal Akış & Tam Genişlik) */
html, body {
    min-height: 100%;
}

@media (max-width: 640px) {
    #map.leaflet-container {
        height: 360px !important;
        min-height: 360px !important;
    }
    #pinpoint-map.leaflet-container {
        height: 260px !important;
        min-height: 260px !important;
    }
}

/* Mobil & Tablet Uyumluluk İyileştirmeleri (Touch, Alt Bar, Taşma Önleme) */
button,
a,
[role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

table {
    font-variant-numeric: tabular-nums;
}

[role="dialog"] > div {
    overscroll-behavior: contain;
}

@media (max-width: 1023px) {
    #back-to-top-btn {
        bottom: 74px !important;
        right: 14px !important;
        width: 40px !important;
        height: 40px !important;
    }
    #live-toasts-container {
        bottom: 72px !important;
        max-width: calc(100vw - 1.25rem) !important;
    }
    footer {
        padding-bottom: 5.5rem !important;
    }
}

/* Antora Kitin & Formik Asit Kaydırma Çubukları (Light Mode) */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #F2EBE1;
}
::-webkit-scrollbar-thumb {
    background: #D97706;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B45309;
}

/* Yatay kaydırma çubuğunu gizleme (mobil sekmeler için) */
.no-scrollbar::-webkit-scrollbar {
    display: none !important;
}
.no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* ==========================================================================
   5. Koyu Tema (Dark Mode): "Antora Terrarium Night"
   Everforest Medium + Radix Elevation + Warm Cypress Tonal Stepping
   - L0 Canvas:   #181D1B (Göz yormayan sıcak gece selvisi/arduvaz — sıfır siyah)
   - L1 Surface:  #222926 (Ana kartlar, tablo gövdeleri, paneller + gölge & kenar)
   - L2 Raised:   #2C3531 (Tablo başlıkları thead, kart alt bantları, iç kartlar)
   - L3 Hover:    #34403B (Aktif sekme, satır ve öğe vurgusu)
   - Well:        #1B211F (Kart içi gömülü bilgi kutuları + net sınır)
   - Recessed:    #131715 (Form alanları, seçimler, arama çubuğu)
   ========================================================================== */
:root {
    --ant-canvas: #181D1B;
    --ant-surface: #222926;
    --ant-raised: #2C3531;
    --ant-hover: #34403B;
    --ant-well: #1B211F;
    --ant-recessed: #131715;
    --ant-border: #35413C;
    --ant-border-strong: #43524B;
    --ant-text-primary: #F2EFE9;
    --ant-text-secondary: #D0D5D0;
    --ant-text-muted: #9AA59F;
    --ant-amber: #F2B84B;
    --ant-moss: #7AC999;
}

html.dark {
    background-color: var(--ant-canvas) !important;
    color-scheme: dark;
}
html.dark body {
    background-color: var(--ant-canvas) !important;
    background-image: radial-gradient(rgba(242, 184, 75, 0.045) 1.15px, transparent 1.15px) !important;
    background-size: 26px 26px !important;
    color: var(--ant-text-secondary) !important;
}

/* L1: Ana Kartlar, Tablo Dış Kutuları, Modallar ve Kenar Panelleri */
html.dark .bg-white,
html.dark .bg-\[\#FFFDF9\],
html.dark .bg-\[\#FAFBF8\],
html.dark [class*="dark:bg-[#120B07]"],
html.dark [class*="dark:bg-[#111F15]"],
html.dark [class*="dark:bg-[#0E1E14]"],
html.dark [class*="dark:bg-[#0D1B11]"],
html.dark [class*="dark:bg-[#142419]"],
html.dark .bg-slate-900,
html.dark .bg-slate-900\/50,
html.dark .bg-slate-900\/80 {
    background-color: var(--ant-surface) !important;
    border-color: var(--ant-border) !important;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* L2: Yükseltilmiş Yüzeyler (Tablo Başlıkları, Kart Üst Bantları, İç Alt Kartlar, Sekme Barları) */
html.dark table thead,
html.dark thead tr,
html.dark .bg-slate-100,
html.dark .bg-slate-100\/60,
html.dark .bg-slate-100\/70,
html.dark .bg-slate-100\/80,
html.dark .bg-slate-100\/90,
html.dark .bg-slate-200,
html.dark .bg-slate-800,
html.dark .bg-slate-800\/60,
html.dark .bg-slate-800\/80,
html.dark [class*="dark:bg-[#0D2012]"],
html.dark [class*="dark:bg-[#162A1D]"],
html.dark [class*="dark:bg-[#172D1F]"],
html.dark [class*="dark:bg-[#1A3822]"],
html.dark [class*="dark:bg-[#1E110A]"],
html.dark [class*="dark:bg-[#0E1A11]"] {
    background-color: var(--ant-raised) !important;
    border-color: var(--ant-border-strong) !important;
}

/* Kart İçinde Yer Alan Alt Kartlar (Örn: Yuva Atlası Izgarası, Yorum Kutuları, Modal İçi Bilgi Kartları) */
html.dark #view-grid-container .specimen-plate,
html.dark #view-compact-container .observation-card,
html.dark #detail-comments-list > div,
html.dark #notification-dropdown-menu,
html.dark #account-dropdown-menu,
html.dark [role="dialog"] > div {
    background-color: var(--ant-raised) !important;
    border-color: var(--ant-border-strong) !important;
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Gömülü İç Bilgi Kutuları (Well Layer: Ana kartın içinde net çerçeveli çukur kutu) */
html.dark .bg-slate-50,
html.dark .bg-slate-50\/50,
html.dark .bg-slate-50\/60,
html.dark .bg-slate-50\/70,
html.dark .bg-slate-50\/80,
html.dark [class*="dark:bg-[#060D08]"],
html.dark [class*="dark:bg-[#07110A]"],
html.dark [class*="dark:bg-[#07120A]"],
html.dark [class*="dark:bg-[#07130A]"],
html.dark [class*="dark:bg-[#07130B]"],
html.dark [class*="dark:bg-[#08130C]"],
html.dark [class*="dark:bg-[#09150E]"],
html.dark [class*="dark:bg-[#0A130E]"],
html.dark [class*="dark:bg-[#0A170F]"],
html.dark [class*="dark:bg-[#0B0704]"],
html.dark [class*="dark:bg-[#0B190E]"],
html.dark [class*="dark:bg-[#0B1910]"],
html.dark [class*="dark:bg-[#0C140F]"],
html.dark [class*="dark:bg-[#0C150F]"],
html.dark [class*="dark:bg-[#0C1510]"],
html.dark [class*="dark:bg-[#0E1B13]"],
html.dark [class*="dark:bg-[#102215]"],
html.dark [class*="dark:bg-[#102316]"],
html.dark [class*="dark:bg-[#12261A]"],
html.dark [class*="dark:bg-[#15251A]"] {
    background-color: var(--ant-well) !important;
    border-color: var(--ant-border) !important;
}

/* L0 Sayfa Zemini Sınıfları */
html.dark [class*="dark:bg-[#080D0A]"],
html.dark [class*="dark:bg-[#0A0604]"],
html.dark [class*="dark:bg-[#11161B]"] {
    background-color: var(--ant-canvas) !important;
}

/* Tabloların Tam Ayrımı (Başlık, Zebra Satır, Satır Çizgisi ve Hover) */
html.dark table thead th {
    color: #DCE3DE !important;
    border-bottom: 1px solid var(--ant-border-strong) !important;
}
html.dark table tbody tr {
    background-color: var(--ant-surface) !important;
    border-color: var(--ant-border) !important;
}
html.dark table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.022) !important;
}
html.dark table tbody tr:hover {
    background-color: var(--ant-hover) !important;
}

/* Tüm Kenarlık ve Ayırıcı Çizgiler */
html.dark .border-slate-100,
html.dark .border-slate-200,
html.dark .border-slate-300,
html.dark .border-slate-700,
html.dark .border-slate-800,
html.dark [class*="dark:border-moss-800"],
html.dark [class*="dark:border-moss-900"],
html.dark [class*="dark:border-[#07110A]"],
html.dark [class*="dark:border-[#0F2216]"],
html.dark [class*="dark:border-[#14261A]"],
html.dark [class*="dark:border-[#162D1D]"],
html.dark [class*="dark:border-[#1A3222]"],
html.dark [class*="dark:border-[#1A3420]"],
html.dark [class*="dark:border-[#1C2B22]"],
html.dark [class*="dark:border-[#1C2C22]"],
html.dark [class*="dark:border-[#1E110A]"],
html.dark [class*="dark:border-[#1E3626]"],
html.dark [class*="dark:border-[#1E3A25]"],
html.dark [class*="dark:border-[#213C29]"],
html.dark [class*="dark:border-[#22140C]"],
html.dark [class*="dark:border-[#24140B]"],
html.dark [class*="dark:border-[#2B3744]"],
html.dark [class*="dark:border-[#2D1B10]"],
html.dark [class*="dark:border-[#381F12]"],
html.dark [class*="dark:border-[#17321E]"] {
    border-color: var(--ant-border) !important;
}
html.dark [class*="dark:border-moss-700"] {
    border-color: var(--ant-border-strong) !important;
}
html.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
html.dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]),
html.dark .divide-slate-800 > :not([hidden]) ~ :not([hidden]),
html.dark [class*="dark:divide-[#"] > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--ant-border) !important;
}

/* Oda & İç Bilgi Gradyan Şeritlerini Terrarium Katmanına Uyumla */
html.dark [class*="dark:from-[#0B150F]"],
html.dark [class*="dark:from-[#0E1E14]"] {
    background-image: none !important;
    background-color: var(--ant-raised) !important;
}

/* Tipografi & Anti-Halation Sıcak Krem Kontrastı */
html.dark .text-slate-900,
html.dark .text-slate-800,
html.dark .dark\:text-white {
    color: var(--ant-text-primary) !important;
}
html.dark .text-slate-700,
html.dark .text-slate-600,
html.dark [class*="dark:text-[#E2ECE4]"],
html.dark [class*="dark:text-[#D5C2B2]"],
html.dark [class*="dark:text-[#C5B3A5]"] {
    color: var(--ant-text-secondary) !important;
}
html.dark .text-slate-500,
html.dark .text-slate-400,
html.dark .text-slate-300 {
    color: var(--ant-text-muted) !important;
}

/* Zümrüt & Adaçayı Yeşili Vurgular */
html.dark .text-emerald-800,
html.dark .text-emerald-900,
html.dark .text-emerald-700,
html.dark .text-emerald-600,
html.dark .text-emerald-500,
html.dark .text-emerald-400 {
    color: var(--ant-moss) !important;
}

/* Bal Özü (Amber Honey) Vurgular */
html.dark .text-amber-800,
html.dark .text-amber-900,
html.dark .text-amber-700,
html.dark .text-amber-600,
html.dark .text-amber-500,
html.dark .text-amber-400 {
    color: var(--ant-amber) !important;
}

/* Doğa Rozetleri & Renkli Durum Kutuları */
html.dark .bg-emerald-50,
html.dark .bg-emerald-100,
html.dark .bg-emerald-500\/20,
html.dark .bg-emerald-950\/60 {
    background-color: rgba(122, 201, 153, 0.14) !important;
    color: #9EE0B8 !important;
    border-color: rgba(122, 201, 153, 0.34) !important;
}
html.dark .bg-amber-50,
html.dark .bg-amber-100,
html.dark .bg-amber-500\/20,
html.dark .bg-amber-950\/60 {
    background-color: rgba(242, 184, 75, 0.14) !important;
    color: #F7D17E !important;
    border-color: rgba(242, 184, 75, 0.35) !important;
}
html.dark .bg-rose-50,
html.dark .bg-rose-100,
html.dark .bg-rose-950\/60 {
    background-color: rgba(244, 63, 94, 0.14) !important;
    color: #FDA4AF !important;
    border-color: rgba(251, 113, 133, 0.34) !important;
}
html.dark .bg-blue-50,
html.dark .bg-blue-100,
html.dark .bg-blue-950\/60,
html.dark .bg-sky-50,
html.dark .bg-sky-100,
html.dark .bg-sky-950\/60 {
    background-color: rgba(56, 189, 248, 0.14) !important;
    color: #8CD6FA !important;
    border-color: rgba(56, 189, 248, 0.34) !important;
}
html.dark .bg-purple-50,
html.dark .bg-purple-100,
html.dark .bg-purple-950\/60 {
    background-color: rgba(168, 85, 247, 0.15) !important;
    color: #E2C6FF !important;
    border-color: rgba(192, 132, 252, 0.34) !important;
}

/* Form Elemanları (Kartın İçine Gömülü Net Çerçeveli Alanlar) */
html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
html.dark select,
html.dark textarea {
    background-color: var(--ant-recessed) !important;
    color: var(--ant-text-primary) !important;
    border-color: var(--ant-border-strong) !important;
}
html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
    border-color: var(--ant-amber) !important;
    box-shadow: 0 0 0 2px rgba(242, 184, 75, 0.24) !important;
}
html.dark input[type="checkbox"],
html.dark input[type="radio"] {
    background-color: var(--ant-recessed) !important;
    border-color: var(--ant-border-strong) !important;
}
html.dark select option {
    background-color: var(--ant-surface) !important;
    color: var(--ant-text-primary) !important;
}
html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #7D8B84 !important;
}

/* Hover Durumları */
html.dark .hover\:bg-slate-50:hover,
html.dark .hover\:bg-slate-50\/80:hover,
html.dark .hover\:bg-slate-100:hover,
html.dark .hover\:bg-slate-200:hover,
html.dark [class*="dark:hover:bg-[#"]:hover {
    background-color: var(--ant-hover) !important;
}

/* Kaydırma Çubuğu */
html.dark ::-webkit-scrollbar-track {
    background: var(--ant-canvas);
}
html.dark ::-webkit-scrollbar-thumb {
    background: var(--ant-border-strong);
}
html.dark ::-webkit-scrollbar-thumb:hover {
    background: var(--ant-amber);
}

/* ==========================================================================
   6. Doğa & Karınca Mikro-Etkileşimleri
   ========================================================================== */

/* Bilimsel Cins Adı Vurgusu (İtalik & Zarif) */
.ant-species-italic {
    font-style: italic;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    letter-spacing: -0.01em;
}

/* Buton Yükleme Barı (Doğal Amber Parıltısı) */
.btn-loading {
    position: relative !important;
    overflow: hidden !important;
    pointer-events: none !important;
    cursor: wait !important;
    opacity: 0.88;
}
.btn-loading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.95), transparent);
    animation: btnProgressBarAnim 1.2s infinite ease-in-out;
}
@keyframes btnProgressBarAnim {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Dönen Yükleme Spinner'ı */
.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tıklama Efekti */
button:active:not(:disabled),
a.btn:active {
    transform: scale(0.97);
    transition: transform 0.08s ease-out;
}

/* Karınca Hafif Dönüş Efekti (Hover) */
.ant-hover-tilt:hover i.fa-bug {
    transform: rotate(12deg) scale(1.15);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Doğa Kartı Yumuşak Gölgesi */
.nature-card-shadow {
    box-shadow: 0 4px 20px -3px rgba(25, 45, 30, 0.06);
}
html.dark .nature-card-shadow {
    box-shadow: 0 6px 24px -3px rgba(5, 15, 8, 0.5);
}

/* ==========================================================================
   7. Modal ve Bildirim (Toast) Animasyonları
   ========================================================================== */
@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.modal-content-animated {
    animation: modalZoomIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-item {
    transition: all 0.35s ease;
}
.toast-item.toast-closing {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
}

/* ==========================================================================
   8. Yukarı Kaydır (Back to Top) Yüzen Buton
   ========================================================================== */
#back-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
#back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   9. Kopyalama İpucu (Tooltip) Bildirimi
   ========================================================================== */
.copy-tooltip {
    position: relative;
}
.copy-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0F2217;
    color: #F1F6F2;
    border: 1px solid #203A28;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 50;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.copy-tooltip.tooltip-active::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   10. Discord Tarzı Kullanıcı Paneli & Sol Menü Stilleri
   ========================================================================== */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #c5d8c8 transparent;
}
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c5d8c8;
    border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #8ca894;
}

html.dark .custom-scrollbar {
    scrollbar-color: #1C2B22 transparent;
}
html.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #1C2B22;
}
html.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #F59E0B;
}

/* Discord Member Item Hover & Active */
.discord-member-item {
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.discord-member-item:hover {
    background-color: #FDF4EA;
}
.discord-member-item:active {
    transform: scale(0.98);
}
html.dark .discord-member-item:hover {
    background-color: rgba(245, 158, 11, 0.14);
}

/* ==========================================================================
   11. Sol Menü Masaüstü Daraltılmış İkon Modu & Kategori Akordiyonları
   ========================================================================== */
#left-sidebar {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease-in-out;
}

/* Daraltılmış İkon Modu (Collapsed Icon Mode) */
#left-sidebar.sidebar-collapsed {
    width: 4.5rem !important; /* 72px */
}
#left-sidebar.sidebar-collapsed .sidebar-text,
#left-sidebar.sidebar-collapsed .nav-category-chevron,
#left-sidebar.sidebar-collapsed .sidebar-brand-text,
#left-sidebar.sidebar-collapsed .sidebar-user-details,
#left-sidebar.sidebar-collapsed .sidebar-full-btn-text,
#left-sidebar.sidebar-collapsed .sidebar-badge {
    display: none !important;
}
#left-sidebar.sidebar-collapsed .sidebar-nav-item {
    justify-content: center !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
#left-sidebar.sidebar-collapsed .nav-category-btn {
    justify-content: center !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}
#left-sidebar.sidebar-collapsed .sidebar-brand-wrapper {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
#left-sidebar.sidebar-collapsed .sidebar-footer-card {
    justify-content: center !important;
    padding: 0.5rem !important;
}

/* Daraltılmış Modda Hover Tooltip */
#left-sidebar.sidebar-collapsed .has-sidebar-tooltip {
    position: relative;
}
#left-sidebar.sidebar-collapsed .has-sidebar-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #1a3824;
    border: 1px solid #dce4d6;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 999999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    pointer-events: none;
    opacity: 1;
}
html.dark #left-sidebar.sidebar-collapsed .has-sidebar-tooltip:hover::after {
    background: #0E1E14;
    color: #F8F9F5;
    border: 1px solid #2B5738;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* Erişilebilir Odak Çerçeveleri (WCAG Focus-Visible) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #fbbf24 !important;
    outline-offset: 2px !important;
}

/* Navigasyon Akordiyonu Geçişleri */
.nav-category-content {
    transition: max-height 0.25s ease-in-out, opacity 0.2s ease-in-out;
}
.nav-category-content.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.nav-category-chevron.rotated {
    transform: rotate(-90deg);
}

/* Aktif Navigasyon Vurgusu */
.sidebar-nav-item.active-nav-link {
    background-color: #e8f2ea !important;
    color: #132a1b !important;
    font-weight: 800 !important;
    border-left: 4px solid #d97706 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}
html.dark .sidebar-nav-item.active-nav-link {
    background-color: rgba(26, 55, 41, 0.95) !important;
    color: #fde68a !important;
    border-left-color: #fbbf24 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* ==========================================================================
   12. SİTE GENELİ ANİMASYONLAR & ETKİLEŞİM EFEKTLERİ (SITE-WIDE ANIMATIONS)
   Doğa & Biyo-Parıltı Temalı Mikro-Etkileşimler, Pürüzsüz Geçişler & Bildirimler
   ========================================================================== */

/* Keyframe Tanımları (Yumuşak, Akıcı & Pürüzsüz Organik Eğriler) */
@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.985) translateY(8px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes floatToastIn {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(0.975);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes floatToastOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateY(18px) scale(0.975);
        filter: blur(3px);
    }
}

@keyframes liveRadarPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes amberRadarPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@keyframes badgeBounce {
    0%, 100% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.12) rotate(-2deg);
    }
    75% {
        transform: scale(0.985) rotate(1deg);
    }
}

@keyframes fadeInUpSmooth {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.5px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.35));
    }
    50% {
        opacity: 0.88;
        filter: drop-shadow(0 0 11px rgba(251, 191, 36, 0.6));
    }
}

/* Modallarda Pürüzsüz Pop-In Animasyonu */
[role="dialog"] > div {
    animation: modalPopIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Kartların Hover Vurgusu (Yazı bulanıklaştıran translateY kalkması kaldırıldı) */
.observation-card,
.nature-card-interactive {
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.observation-card:hover,
.nature-card-interactive:hover {
    box-shadow: 0 10px 24px -6px rgba(18, 36, 25, 0.10), 0 4px 10px -2px rgba(18, 36, 25, 0.05);
}
html.dark .observation-card:hover,
html.dark .nature-card-interactive:hover {
    border-color: var(--ant-border-strong) !important;
    box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.45);
}

/* Tüm Butonlarda Yumuşak ve Hissedilir Dokunma Tepkisi (Soft Tactile Press) */
button,
a.btn,
.btn-action,
input[type="button"],
input[type="submit"] {
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.26s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.2s ease;
}
button:active:not(:disabled),
a.btn:active,
.btn-action:active {
    transform: scale(0.985) !important;
    transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Canlı Rozet Zıplama Animasyonu */
.badge-bounce-anim {
    animation: badgeBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Canlı Radar Nabız Işıltıları */
.live-radar-glow {
    animation: liveRadarPulse 2s infinite;
}
.live-radar-glow-amber {
    animation: amberRadarPulse 2s infinite;
}

/* Yeni Eklenen Elemanlar İçin Pürüzsüz Giriş */
/* Custom Scrollbars (Light & Dark Nature Theme) */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbdcd0;
    border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #90be9d;
}
html.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #1c3c26;
}
html.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #2d5e3c;
}

/* Doğa & Bal Işıltıları (Glow Effects) */
.glow-honey:hover {
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}
.glow-moss:hover {
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

/* Yumuşak Yüzüş Animasyonu */
.nature-float {
    animation: subtleFloat 3.2s ease-in-out infinite;
}

/* Canlı Toast Bildirimleri Konteyneri ve Kartları */
#live-toasts-container {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100050;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.6rem;
    pointer-events: none;
    max-width: min(92vw, 440px);
    width: 100%;
}
.live-toast-notification {
    pointer-events: auto;
    animation: floatToastIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow: 0 14px 35px -6px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.live-toast-notification.hide-toast {
    animation: floatToastOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Erişilebilirlik: Kullanıcı hareketi kısıtlamışsa pürüzsüzleştir */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   13. THE NATURALIST FIELD DECK & BIO-CARTOGRAPHY DESIGN SYSTEM (v4.0)
   ========================================================================== */

/* Floating Frosted Command Deck (Bio-Deck) */
.bio-deck {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(142, 191, 155, 0.4);
    box-shadow: 0 10px 30px -10px rgba(18, 36, 25, 0.08), 0 1px 3px rgba(18, 36, 25, 0.04);
}
html.dark .bio-deck {
    background: rgba(34, 41, 38, 0.90);
    border-color: rgba(67, 82, 75, 0.72);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Botanical Pill Navigation Links */
.bio-pill {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.bio-pill.active {
    background: #142C1B;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(20, 44, 27, 0.25);
}
html.dark .bio-pill.active {
    background: #33403A;
    color: var(--ant-amber);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(242, 184, 75, 0.38);
}

/* Botanical Specimen Plate (Field Specimen Card — Sabit, Yazı Bozulmayan Hover) */
.specimen-plate {
    background: #FFFFFF;
    border: 1px solid #DCE4D6;
    border-radius: 1.5rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.specimen-plate:hover {
    border-color: rgba(94, 158, 113, 0.65);
    box-shadow: 0 10px 24px -10px rgba(20, 44, 27, 0.12), 0 2px 6px rgba(20, 44, 27, 0.04);
}
html.dark .specimen-plate {
    background: var(--ant-surface);
    border-color: var(--ant-border);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
html.dark .specimen-plate:hover {
    border-color: rgba(122, 201, 153, 0.45);
    box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.46);
}

/* Telemetry Micro-HUD */
.telemetry-hud {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
}

/* Queen Honey & Male Wind Glowing Auras */
.queen-glow {
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}
.male-glow {
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.45);
}

/* Yorum Vurgulama & Yanıt Nabız Efekti */
@keyframes antCommentPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
        border-color: #f59e0b;
        transform: scale(1);
    }
    30% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.3);
        border-color: #d97706;
        transform: scale(1.01);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
        transform: scale(1);
    }
}
.ant-comment-pulsing {
    animation: antCommentPulse 1.5s ease-out;
}



