/* 0. GENEL FONT AYARLARI (OUTFIT) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bs-body-font-family: 'Outfit', sans-serif !important;
    --bs-font-sans-serif: 'Outfit', sans-serif !important;
}

body {
    font-family: 'Outfit', sans-serif !important;
    background-color: #0b0f19 !important;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.15), transparent 30%),
        radial-gradient(circle at 85% 90%, rgba(16, 185, 129, 0.1), transparent 30%) !important;
    color: #f8fafc;
}

/* Form elemanları ve butonlar için font override */
input, button, select, textarea, .form-control, .btn, table, th, td {
    font-family: 'Outfit', sans-serif !important;
}

/* 1. ÖZEL FONT AĞIRLIĞI VE BOYUT AYARLARI (İstediğin Sınıflar) */
/* fw-bold sınıfı 600 weight ve 14px boyuta çekildi */
.fw-bold,
.fw-bold.text-primary {
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* Sidebar linkleri 600 weight ve 14px boyuta çekildi */
.list-group-item.list-group-item-action.sidebar-link.text-light,
.sidebar-nav .sidebar-link,
.sidebar-link {
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* 2. ANA YAPI VE SIDEBAR TASARIMI */
#sidebar-wrapper {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    min-height: 100vh;
    width: 17rem;
    min-width: 17rem;
    max-width: 17rem;
    margin-left: -17rem;
    transition: margin 0.25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
}

.sidebar-nav .list-group-item {
    background-color: transparent !important;
    border: none;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.sidebar-nav .sidebar-link {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-nav .sidebar-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* AKTİF LİNK STİLİ */
.sidebar-nav .sidebar-link.active {
    color: #ffffff !important;
    background-color: rgba(59, 130, 246, 0.15) !important;
    border-left: 4px solid #3b82f6 !important; 
}

/* 3. DİĞER BİLEŞENLER (Avatar, Kartlar vb.) */
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.border-left-primary { border-left: 0.25rem solid #0d6efd!important; }
.border-left-success { border-left: 0.25rem solid #198754!important; }
.border-left-warning { border-left: 0.25rem solid #ffc107!important; }
.border-left-danger { border-left: 0.25rem solid #dc3545!important; }
.border-left-info { border-left: 0.25rem solid #0dcaf0!important; }

/* 4. YAZDIRMA AYARLARI */
@media print {
    body { background-color: #fff; }
    .d-print-none { display: none !important; }
}

/* 5. GLOBAL KART, MODAL VE FORM ELEMANLARI (Koyu Tema Uyumu) */
.bg-white, .bg-light {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: #f8fafc !important;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}
.card-header, .card-footer {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}
.card.bg-warning {
    color: #000 !important; /* Sarı arkaplanda siyah yazı */
}
.card.bg-warning .text-dark, .card.bg-warning .text-dark-50 {
    color: #000 !important;
}

/* Metin Renkleri (Koyu Tema) */
.text-gray-800, .text-dark:not(.bg-warning .text-dark) {
    color: #f8fafc !important;
}
.text-muted {
    color: #94a3b8 !important;
}

.modal-content {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-content .form-label, 
.modal-content label {
    color: #cbd5e1;
}
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.form-control, .form-select, textarea.form-control, input.form-control {
    background-color: #1e293b !important; /* Solid koyu renk (saydam değil) */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}
.form-control:focus, .form-select:focus, textarea.form-control:focus, input.form-control:focus {
    background-color: #0f172a !important; /* Odaklanınca daha koyu solid renk */
    border-color: #3b82f6 !important;
    color: #f8fafc !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
}
.form-control:disabled, .form-control[readonly], .form-select:disabled {
    background-color: #334155 !important;
    color: #94a3b8 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}
.table {
    color: #f8fafc !important;
}
/* Tablo içi özel durumlar ve Başlıklar */
.table td, .table th, 
.table-light th, .table-light td, 
.table-dark th, .table-dark td,
table.dataTable tbody tr td,
table.dataTable thead th {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: #e2e8f0 !important; /* Tablo içeriği daha okunabilir parlak beyaz/gri */
    border-color: rgba(255, 255, 255, 0.1) !important;
}
table.dataTable thead th, .table thead th {
    color: #94a3b8 !important; /* Başlıklar farklı tonda */
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.table .bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
}
.table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: #f8fafc !important;
}
.table-hover>tbody>tr:hover>* {
    background-color: rgba(59, 130, 246, 0.1) !important; /* Vurgulanan satır mavi tonlu */
    color: #ffffff !important;
}
.table-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
}

/* Linkler tablo içinde okunabilsin */
.table a {
    color: #60a5fa !important;
    text-decoration: none;
}
.table a:hover {
    color: #93c5fd !important;
}

/* ALERTS (Koyu Temaya Uygun Glassmorphism Uyarılar) */
.alert-secondary {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}
.alert-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
    border-color: rgba(13, 202, 240, 0.2) !important;
    color: #0dcaf0 !important;
}
.alert-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
    border-color: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
}
.alert-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
    color: #ff6b6b !important;
}
.alert-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
    border-color: rgba(25, 135, 84, 0.2) !important;
    color: #a7f3d0 !important;
}

/* SELECT2 DROPDOWN KOYU TEMA */
.select2-dropdown {
    background-color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}
.select2-results__option {
    color: #f8fafc !important;
    background-color: transparent !important;
}
.select2-results__option--highlighted,
.select2-results__option:hover {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}
.select2-container--default .select2-selection--single {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f8fafc !important;
}
.select2-search__field {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(59, 130, 246, 0.3) !important;
}

/* TOPLAM ALANLARI VE YAZI İSTİSNALARI */
#grandTotalDisplay {
    color: #f8fafc !important;
}
.alert-secondary .text-muted {
    color: #cbd5e1 !important;
}