/* Sneat Teması Entegrasyonu - Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    background-color: #f5f5f9;
    color: #566a7f;
    -webkit-font-smoothing: antialiased;
}

/* Başlık Standartları */
h1, h2, h3, h4, .sidebar-section-title span, .dash-table-header {
    font-family: 'Public Sans', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600 !important;
    color: #566a7f;
}

/* Uygulama Ana Grid Mimarisi */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.app-header {
    height: 62px;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #eef0f3;
    padding: 0 24px;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 1px 4px 0 rgba(67, 89, 111, 0.05);
}

.app-main {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Sneat Tarzı Sol Menü */
.sidebar-container {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid #eef0f3;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px 0 rgba(67, 89, 111, 0.05);
}

.sidebar-section-title {
    padding: 16px 20px 8px 20px;
    font-size: 11px;
    text-transform: Capitalize;
    letter-spacing: 0.8px;
    color: #a1acb8;
}

.sidebar-item {
    padding: 8px 20px;
}

/* Sağ Panel İçerik Alanı */
.content-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background-color: #f5f5f9;
}

/* Sneat Tarzı Kart Tasarımları */
.stat-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px 0 rgba(67, 89, 111, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(67, 89, 111, 0.15);
}

.stat-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 13px;
    color: #a1acb8;
    font-weight: 500;
}

.stat-value {
    font-size: 22px;
    color: #566a7f;
    font-weight: 600;
    margin-top: 4px;
}

/* Grafik Kartları ve Tablolar */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

.chart-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 6px 0 rgba(67, 89, 111, 0.1);
    overflow: hidden;
}

.full-width {
    grid-column: 1 / -1;
}

.mt-4 { margin-top: 24px; }

/* Dinamik Risk Pop-up Modülü */
.notification-popup {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 2px 6px 0 rgba(255, 171, 0, 0.2);
}

.popup-close-btn {
    font-size: 12px;
    color: #ffab00;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

/* Giriş Ekranı Tasarımı */
.login-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f9;
}

.login-card {
    width: 400px;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px 0 rgba(67, 89, 111, 0.15);
}

/* Mobil Uyum / Responsive */
@media (max-width: 992px) {
    .app-main {
        flex-direction: column;
    }
    .sidebar-container {
        width: 100%;
        height: auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #eef0f3;
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   DASH V4 MULTI-SELECT DROPDOWN SNEAT MODERNİZASYONU (ULTRA-MİNİMAL VE SIKI)
   ========================================================================== */

/* Tüm iç elementler için taşma önleyici kural */
.dash-dropdown, 
.dash-dropdown *, 
.dash-dropdown-menu, 
.dash-dropdown-menu * {
    box-sizing: border-box !important;
}

/* Dropdown Ana Kapsayıcı */
.dash-dropdown {
    font-family: 'Public Sans', sans-serif !important;
    border: 1px solid #eceef1 !important;
    border-radius: 0.375rem !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Dropdown Odaklandığında */
.dash-dropdown:focus-within {
    border-color: #696cff !important;
    box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.06) !important;
}

/* Seçilen Eleman Etiketleri (Pill/Badge) - Bir ölçü küçültüldü ve sıkılaştırıldı */
.dash-dropdown .dash-dropdown-value {
    background-color: #f2f2ff !important;
    color: #696cff !important;
    border-radius: 0.25rem !important;
    padding: 1px 5px !important;
    font-size: 0.7rem !important;
    font-weight: 500;
    margin: 1px 2px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
}

/* Açılır Menü Panel Kartı */
.dash-dropdown-menu {
    border: 1px solid #eceef1 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 4px 12px rgba(67, 89, 111, 0.06) !important;
    background-color: #ffffff !important;
    padding: 2px 0 !important;
    margin-top: 3px !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Üst İşlem Çubuğu */
.dash-dropdown-menu-actions {
    display: flex !important;
    gap: 10px !important;
    padding: 4px 10px !important;
    border-bottom: 1px solid #f2f4f6 !important;
    background-color: #ffffff !important;
    width: 100% !important;
}

/* Aksiyon Metin Linkleri - Bir ölçü küçültüldü */
.dash-dropdown-menu-actions button,
.dash-dropdown-menu button {
    background: transparent !important;
    border: none !important;
    color: #a1acb8 !important;
    padding: 1px 0 !important;
    font-family: 'Public Sans', sans-serif !important;
    font-size: 0.6875rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: color 0.15s ease;
}

.dash-dropdown-menu-actions button:hover,
.dash-dropdown-menu button:hover {
    color: #696cff !important;
    background: transparent !important;
}

/* Arama Giriş Alanı - Taşmayı önleyecek şekilde sıfırlandı */
.dash-dropdown-search-input {
    border: none !important;
    border-bottom: 1px solid #f2f4f6 !important;
    border-radius: 0 !important;
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
    font-family: 'Public Sans', sans-serif !important;
    margin: 0 !important;
    width: 100% !important;
}

.dash-dropdown-search-input:focus {
    outline: none !important;
    border-bottom-color: #696cff !important;
}

/* Seçenek Satırları - Bir ölçü ufaltıldı */
.dash-dropdown-option {
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
    color: #697a8d !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    width: 100% !important;
}

.dash-dropdown-option:hover {
    background-color: #fafafa !important;
    color: #696cff !important;
}

/* Minimalist İşaret Noktaları */
.dash-dropdown-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #d9dee3;
    margin-right: 8px;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.dash-dropdown-option input[type="checkbox"]:checked {
    background-color: #696cff;
    transform: scale(1.2);
}