/* Özel renkler */
.text-primary {
    color: #0d6efd !important;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Modern Kart Tasarımı */
.card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
}

.card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 1.5rem !important;
    font-weight: 600 !important;
    color: #495057 !important;
}

.card-body {
    padding: 2rem !important;
    background: #ffffff !important;
}

.card-title {
    font-weight: 700 !important;
    color: #212529 !important;
    margin-bottom: 1rem !important;
}

.card-text {
    color: #6c757d !important;
    line-height: 1.6 !important;
}

/* Dashboard Kartları */
.dashboard-card {
    border: none !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    position: relative !important;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #6610f2, #6f42c1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

.dashboard-card .card-body {
    padding: 1.5rem 1.25rem !important;
    text-align: center !important;
    position: relative !important;
}

.dashboard-card .card-title {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #6c757d !important;
    margin-bottom: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.dashboard-card .card-value {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #212529 !important;
    margin-bottom: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* İstatistik Kartları İkonları */
.dashboard-card .card-title i {
    font-size: 1.2rem !important;
    margin-right: 0.5rem !important;
    opacity: 0.8 !important;
}

/* Renkli Kartlar */
.card-primary {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: #212529 !important;
    border-left: 4px solid #0d6efd !important;
}

.card-primary .card-title,
.card-primary .card-value {
    color: #212529 !important;
}

.card-success {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: #212529 !important;
    border-left: 4px solid #198754 !important;
}

.card-success .card-title,
.card-success .card-value {
    color: #212529 !important;
}

.card-danger {
    background: linear-gradient(145deg, #dc3545 0%, #b02a37 100%) !important;
    color: white !important;
}

.card-danger .card-title,
.card-danger .card-value {
    color: white !important;
}

.card-info {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: #212529 !important;
    border-left: 4px solid #0dcaf0 !important;
}

.card-info .card-title,
.card-info .card-value {
    color: #212529 !important;
}

.card-warning {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: #212529 !important;
    border-left: 4px solid #ffc107 !important;
}

.card-warning .card-title,
.card-warning .card-value {
    color: #212529 !important;
}

/* Özel Renkli Kartlar */
.card-alacak {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-left: 4px solid #dc3545 !important;
}

.card-alacak .card-title {
    color: #dc3545 !important;
}

.card-alacak .card-value {
    color: #dc3545 !important;
}

.card-tahsilat {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-left: 4px solid #198754 !important;
}

.card-tahsilat .card-title {
    color: #198754 !important;
}

.card-tahsilat .card-value {
    color: #198754 !important;
}

.card-musteri {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-left: 4px solid #0d6efd !important;
}

.card-musteri .card-title {
    color: #0d6efd !important;
}

.card-musteri .card-value {
    color: #0d6efd !important;
}

.card-hareket {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-left: 4px solid #0dcaf0 !important;
}

.card-hareket .card-title {
    color: #0dcaf0 !important;
}

.card-hareket .card-value {
    color: #0dcaf0 !important;
}

/* Tema Sistemi - Basit ve Etkili */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Koyu Tema */
[data-theme="dark"] body {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

[data-theme="dark"] .navbar {
    background-color: #2d2d2d !important;
    border-bottom: 1px solid #404040 !important;
}

[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .nav-link {
    color: #ffffff !important;
}

[data-theme="dark"] .navbar-brand:hover,
[data-theme="dark"] .nav-link:hover {
    color: #0d6efd !important;
}

[data-theme="dark"] .user-info .fw-semibold {
    color: #ffffff !important;
}

[data-theme="dark"] .user-info small {
    color: #adb5bd !important;
}

[data-theme="dark"] .dropdown-header .fw-semibold {
    color: #ffffff !important;
}

[data-theme="dark"] .dropdown-header .text-muted {
    color: #adb5bd !important;
}

[data-theme="dark"] .dropdown-header .text-primary {
    color: #0d6efd !important;
}

[data-theme="dark"] .card {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .card-header {
    background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px 16px 0 0 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .card-body {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .card-title {
    color: #ffffff !important;
}

[data-theme="dark"] .card-text {
    color: #adb5bd !important;
}

/* Koyu Mod Dashboard Kartları */
[data-theme="dark"] .dashboard-card {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .dashboard-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .dashboard-card .card-body {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%) !important;
}

[data-theme="dark"] .dashboard-card .card-title {
    color: #adb5bd !important;
}

[data-theme="dark"] .dashboard-card .card-body {
    padding: 1.5rem 1.25rem !important;
}

[data-theme="dark"] .dashboard-card .card-title {
    font-size: 0.85rem !important;
    margin-bottom: 0.75rem !important;
}

[data-theme="dark"] .dashboard-card .card-value {
    font-size: 1.8rem !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .dashboard-card .card-title i {
    color: #adb5bd !important;
}

/* Koyu Mod Renkli Kartlar */
[data-theme="dark"] .card-alacak {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    border-left: 4px solid #dc3545 !important;
}

[data-theme="dark"] .card-alacak .card-title {
    color: #dc3545 !important;
}

[data-theme="dark"] .card-alacak .card-value {
    color: #dc3545 !important;
}

[data-theme="dark"] .card-tahsilat {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    border-left: 4px solid #198754 !important;
}

[data-theme="dark"] .card-tahsilat .card-title {
    color: #198754 !important;
}

[data-theme="dark"] .card-tahsilat .card-value {
    color: #198754 !important;
}

[data-theme="dark"] .card-musteri {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    border-left: 4px solid #0d6efd !important;
}

[data-theme="dark"] .card-musteri .card-title {
    color: #0d6efd !important;
}

[data-theme="dark"] .card-musteri .card-value {
    color: #0d6efd !important;
}

[data-theme="dark"] .card-hareket {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    border-left: 4px solid #0dcaf0 !important;
}

[data-theme="dark"] .card-hareket .card-title {
    color: #0dcaf0 !important;
}

[data-theme="dark"] .card-hareket .card-value {
    color: #0dcaf0 !important;
}

[data-theme="dark"] .card-header {
    background-color: #404040 !important;
    border-bottom: 1px solid #404040 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .table {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

[data-theme="dark"] .table thead th {
    background-color: #404040 !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

[data-theme="dark"] .table tbody tr {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

[data-theme="dark"] .table tbody tr:hover {
    background-color: #404040 !important;
}

[data-theme="dark"] .table tbody td {
    border-color: #404040 !important;
}

[data-theme="dark"] .dropdown-menu {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
}

[data-theme="dark"] .dropdown-item {
    color: #ffffff !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: #404040 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .dropdown-item i {
    color: #adb5bd !important;
}

[data-theme="dark"] .dropdown-item:hover i {
    color: #0d6efd !important;
}

[data-theme="dark"] .dropdown-item.text-danger {
    color: #dc3545 !important;
}

[data-theme="dark"] .dropdown-item.text-danger:hover {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .dropdown-item.text-danger:hover i {
    color: #ffffff !important;
}

[data-theme="dark"] .dropdown-divider {
    border-color: #404040 !important;
}

[data-theme="dark"] .user-dropdown .dropdown-header {
    background-color: #404040 !important;
    border-bottom: 1px solid #404040 !important;
}

[data-theme="dark"] .user-dropdown .dropdown-header .fw-semibold {
    color: #ffffff !important;
}

[data-theme="dark"] .user-dropdown .dropdown-header .text-muted {
    color: #adb5bd !important;
}

[data-theme="dark"] .user-dropdown .dropdown-header .text-primary {
    color: #0d6efd !important;
}

[data-theme="dark"] .modal-content {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

[data-theme="dark"] .modal-header {
    background-color: #404040 !important;
    border-bottom: 1px solid #404040 !important;
}

[data-theme="dark"] .modal-footer {
    border-top: 1px solid #404040 !important;
}

[data-theme="dark"] .list-group-item {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

[data-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

[data-theme="dark"] .bg-light {
    background-color: #404040 !important;
}

[data-theme="dark"] .form-control {
    background-color: #404040 !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .form-control:focus {
    background-color: #404040 !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

[data-theme="dark"] .form-select {
    background-color: #404040 !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .form-select:focus {
    background-color: #404040 !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

[data-theme="dark"] .btn-outline-primary {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

[data-theme="dark"] .btn-outline-danger:hover {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-outline-success {
    color: #198754 !important;
    border-color: #198754 !important;
}

[data-theme="dark"] .btn-outline-success:hover {
    background-color: #198754 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-outline-info {
    color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
}

[data-theme="dark"] .btn-outline-info:hover {
    background-color: #0dcaf0 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .alert-success {
    background-color: #0f5132 !important;
    border-color: #0f5132 !important;
    color: #d1e7dd !important;
}

[data-theme="dark"] .alert-danger {
    background-color: #842029 !important;
    border-color: #842029 !important;
    color: #f8d7da !important;
}

[data-theme="dark"] .alert-warning {
    background-color: #664d03 !important;
    border-color: #664d03 !important;
    color: #fff3cd !important;
}

[data-theme="dark"] .alert-info {
    background-color: #055160 !important;
    border-color: #055160 !important;
    color: #cff4fc !important;
}

[data-theme="dark"] .text-body {
    color: #ffffff !important;
}

/* Koyu modda tüm metinleri beyaz yap */
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] label,
[data-theme="dark"] small,
[data-theme="dark"] strong,
[data-theme="dark"] b,
[data-theme="dark"] i,
[data-theme="dark"] em,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #ffffff !important;
}

/* Gündüz modda tüm metinleri siyah yap */
body:not([data-theme="dark"]) p,
body:not([data-theme="dark"]) span,
body:not([data-theme="dark"]) div,
body:not([data-theme="dark"]) label,
body:not([data-theme="dark"]) small,
body:not([data-theme="dark"]) strong,
body:not([data-theme="dark"]) b,
body:not([data-theme="dark"]) i,
body:not([data-theme="dark"]) em,
body:not([data-theme="dark"]) h1,
body:not([data-theme="dark"]) h2,
body:not([data-theme="dark"]) h3,
body:not([data-theme="dark"]) h4,
body:not([data-theme="dark"]) h5,
body:not([data-theme="dark"]) h6 {
    color: #212529 !important;
}

/* Koyu modda buton metinleri */
[data-theme="dark"] .btn {
    color: #ffffff !important;
}

[data-theme="dark"] .btn-primary {
    color: #ffffff !important;
}

[data-theme="dark"] .btn-success {
    color: #ffffff !important;
}

[data-theme="dark"] .btn-info {
    color: #ffffff !important;
}

[data-theme="dark"] .btn-warning {
    color: #ffffff !important;
}

[data-theme="dark"] .btn-danger {
    color: #ffffff !important;
}

/* Koyu modda kart içeriği */
[data-theme="dark"] .card-body * {
    color: #ffffff !important;
}

[data-theme="dark"] .card-body .text-muted {
    color: #adb5bd !important;
}

[data-theme="dark"] .card-body .text-primary {
    color: #0d6efd !important;
}

[data-theme="dark"] .card-body .text-success {
    color: #198754 !important;
}

[data-theme="dark"] .card-body .text-danger {
    color: #dc3545 !important;
}

[data-theme="dark"] .card-body .text-warning {
    color: #ffc107 !important;
}

[data-theme="dark"] .card-body .text-info {
    color: #0dcaf0 !important;
}

/* Koyu modda istatistik kartları */
[data-theme="dark"] .dashboard-card .card-title {
    color: #ffffff !important;
}

[data-theme="dark"] .dashboard-card .card-value {
    color: #ffffff !important;
}

/* Koyu modda hızlı erişim butonları */
[data-theme="dark"] .btn i {
    color: #ffffff !important;
}

/* Koyu modda genel metin sınıfları */
[data-theme="dark"] .text-center {
    color: #ffffff !important;
}

[data-theme="dark"] .text-start {
    color: #ffffff !important;
}

[data-theme="dark"] .text-end {
    color: #ffffff !important;
}

/* Koyu modda yardım sayfası */
[data-theme="dark"] .accordion-button {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #404040 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

[data-theme="dark"] .accordion-body {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

[data-theme="dark"] .accordion-item {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
}

[data-theme="dark"] .accordion-header {
    background-color: #2d2d2d !important;
}

[data-theme="dark"] .list-group-item {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

[data-theme="dark"] .list-group-item:hover {
    background-color: #404040 !important;
}

[data-theme="dark"] .list-group-item.active {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

[data-theme="dark"] .list-group-item.active:hover {
    background-color: #0b5ed7 !important;
}

/* Koyu modda tablo */
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #404040 !important;
}

[data-theme="dark"] .table-hover tbody tr:hover {
    background-color: #404040 !important;
}

/* Koyu modda tablo detayları */
[data-theme="dark"] .table thead th {
    background-color: #404040 !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

[data-theme="dark"] .table tbody tr {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

[data-theme="dark"] .table tbody tr:nth-of-type(even) {
    background-color: #404040 !important;
}

[data-theme="dark"] .table tbody tr:hover {
    background-color: #404040 !important;
}

[data-theme="dark"] .table tbody td {
    border-color: #404040 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .table tbody td a {
    color: #0d6efd !important;
}

[data-theme="dark"] .table tbody td a:hover {
    color: #0b5ed7 !important;
}

[data-theme="dark"] .table tbody td small {
    color: #000000 !important;
}

[data-theme="dark"] .table tbody td .badge {
    color: #ffffff !important;
}

[data-theme="dark"] .table tbody td .fw-bold {
    color: #ffffff !important;
}

[data-theme="dark"] .table tbody td .text-muted {
    color: #000000 !important;
}

/* Koyu modda tablo responsive */
[data-theme="dark"] .table-responsive {
    background-color: #2d2d2d !important;
}

[data-theme="dark"] .table-responsive .table {
    background-color: #2d2d2d !important;
}

/* Koyu modda form elemanları */
[data-theme="dark"] .form-control:disabled {
    background-color: #404040 !important;
    color: #adb5bd !important;
}

[data-theme="dark"] .form-control[readonly] {
    background-color: #404040 !important;
    color: #ffffff !important;
}

/* Koyu modda badge'ler */
[data-theme="dark"] .badge {
    color: #ffffff !important;
}

/* Bakiye badge'leri için beyaz yazı */
.badge.bg-danger,
.badge.bg-success,
.badge.bg-info {
    color: #ffffff !important;
}

/* Koyu modda alert'ler */
[data-theme="dark"] .alert {
    border-color: #404040 !important;
}

[data-theme="dark"] .alert-primary {
    background-color: #0f5132 !important;
    border-color: #0f5132 !important;
    color: #d1e7dd !important;
}

[data-theme="dark"] .alert-secondary {
    background-color: #404040 !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .alert-success {
    background-color: #0f5132 !important;
    border-color: #0f5132 !important;
    color: #d1e7dd !important;
}

[data-theme="dark"] .alert-danger {
    background-color: #842029 !important;
    border-color: #842029 !important;
    color: #f8d7da !important;
}

[data-theme="dark"] .alert-warning {
    background-color: #664d03 !important;
    border-color: #664d03 !important;
    color: #fff3cd !important;
}

[data-theme="dark"] .alert-info {
    background-color: #055160 !important;
    border-color: #055160 !important;
    color: #cff4fc !important;
}

[data-theme="dark"] .alert-light {
    background-color: #404040 !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .alert-dark {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* Koyu modda beyaz arka planlı alanlar */
[data-theme="dark"] .bg-white {
    background-color: #2d2d2d !important;
}

[data-theme="dark"] .bg-white * {
    color: #ffffff !important;
}

[data-theme="dark"] .bg-white .text-dark {
    color: #ffffff !important;
}

[data-theme="dark"] .bg-white .text-muted {
    color: #adb5bd !important;
}

[data-theme="dark"] .bg-white .text-secondary {
    color: #adb5bd !important;
}

[data-theme="dark"] .bg-white .text-body {
    color: #ffffff !important;
}

[data-theme="dark"] .bg-white .fw-bold {
    color: #ffffff !important;
}

[data-theme="dark"] .bg-white .fw-semibold {
    color: #ffffff !important;
}

[data-theme="dark"] .bg-white .fw-normal {
    color: #ffffff !important;
}

/* Koyu modda kart içindeki beyaz alanlar */
[data-theme="dark"] .card .bg-white {
    background-color: #404040 !important;
}

[data-theme="dark"] .card .bg-white * {
    color: #ffffff !important;
}

/* Koyu modda tablo içindeki beyaz alanlar */
[data-theme="dark"] .table .bg-white {
    background-color: #404040 !important;
}

[data-theme="dark"] .table .bg-white * {
    color: #ffffff !important;
}

/* Koyu modda genel beyaz arka plan kontrolü */
[data-theme="dark"] [style*="background-color: white"],
[data-theme="dark"] [style*="background-color: #fff"],
[data-theme="dark"] [style*="background-color: #ffffff"] {
    background-color: #2d2d2d !important;
}

[data-theme="dark"] [style*="background-color: white"] *,
[data-theme="dark"] [style*="background-color: #fff"] *,
[data-theme="dark"] [style*="background-color: #ffffff"] * {
    color: #ffffff !important;
}

[data-theme="dark"] .bg-light {
    background-color: #404040 !important;
}

/* Arama Kutusu Stilleri */
#musteriArama {
    border-radius: 8px !important;
    border: 2px solid #e9ecef !important;
    transition: all 0.3s ease !important;
}

#musteriArama:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

.input-group-text {
    background-color: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    border-right: none !important;
}

.input-group .form-control {
    border-left: none !important;
}

/* Arama Sonuçları */
.arama-bulundu {
    animation: fadeIn 0.3s ease-in !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Arama Boş Mesaj */
#aramaBosMesaj {
    background-color: #f8f9fa !important;
}

#aramaBosMesaj td {
    border: none !important;
    padding: 3rem !important;
}

/* Koyu Mod Arama */
[data-theme="dark"] #musteriArama {
    background-color: #404040 !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

[data-theme="dark"] #musteriArama:focus {
    background-color: #404040 !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

[data-theme="dark"] .input-group-text {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

[data-theme="dark"] #aramaBosMesaj {
    background-color: #2d2d2d !important;
}

[data-theme="dark"] #aramaBosMesaj td {
    color: #ffffff !important;
}

/* Grafik Stilleri */
.card canvas {
    max-height: 300px !important;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Animasyonlu sayaçlar */
.card-value {
    transition: all 0.3s ease;
}

.card-value:hover {
    transform: scale(1.05);
}

/* Grafik kartları */
.chart-card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
}

.chart-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.chart-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 1.25rem !important;
}

/* Koyu mod grafikler */
[data-theme="dark"] .chart-card {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .chart-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .chart-card .card-header {
    background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Loading animasyonu */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Real-time güncelleme göstergesi */
.update-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background-color: #198754;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Footer Stilleri */
footer {
    background-color: #212529 !important;
    color: #ffffff !important;
}

footer * {
    color: #ffffff !important;
}

footer .text-primary {
    color: #0d6efd !important;
}

footer .text-light {
    color: #ffffff !important;
}

footer .text-light-50 {
    color: #ffffff !important;
}

footer a {
    color: #ffffff !important;
}

footer a:hover {
    color: #0d6efd !important;
}

footer h5 {
    color: #0d6efd !important;
}

footer p {
    color: #ffffff !important;
}

footer span {
    color: #ffffff !important;
}

footer li {
    color: #ffffff !important;
}

footer .border-secondary {
    border-color: #6c757d !important;
}

/* Koyu modda footer */
[data-theme="dark"] footer {
    background-color: #212529 !important;
    color: #ffffff !important;
}

[data-theme="dark"] footer * {
    color: #ffffff !important;
}

[data-theme="dark"] footer .text-primary {
    color: #0d6efd !important;
}

[data-theme="dark"] footer .text-light {
    color: #ffffff !important;
}

[data-theme="dark"] footer a {
    color: #ffffff !important;
}

[data-theme="dark"] footer a:hover {
    color: #0d6efd !important;
}

[data-theme="dark"] footer h5 {
    color: #0d6efd !important;
}

[data-theme="dark"] footer p {
    color: #ffffff !important;
}

[data-theme="dark"] footer span {
    color: #ffffff !important;
}

[data-theme="dark"] footer li {
    color: #ffffff !important;
}

/* === FOOTER DARK MODE DÜZELTME === */

/* footer ana blok - HER MODDA ÇALIŞIR */
.site-footer {
    background-color: #1E1E1E !important;        /* koyu zemin */
    color: #E0E0E0 !important;                   /* açık yazı */
    border-top: 1px solid #2C2C2C !important;    /* ince çizgi */
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

/* footer başlıkları (Hızlı Linkler / İletişim / Hakkımızda) - HER MODDA */
.site-footer h5,
.site-footer h4,
.site-footer h3 {
    color: #E0E0E0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

/* footer içindeki paragraflar, küçük açıklamalar - HER MODDA */
.site-footer p {
    color: #A8A8A8 !important;
    margin-bottom: 0.5rem !important;
}

/* footer içindeki linkler - HER MODDA */
.site-footer a {
    color: #E0E0E0 !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-bottom: 0.4rem !important;
    transition: color 0.2s ease !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

/* hover rengi: mavi vurgu - HER MODDA */
.site-footer a:hover {
    color: #2196F3 !important;
    text-decoration: none !important;
}

/* tel / mail gibi info satırları - HER MODDA */
.site-footer .contact-line {
    color: #E0E0E0 !important;
}

/* tel / mail linkleri özel - HER MODDA */
.site-footer .contact-line a {
    color: #E0E0E0 !important;
    font-weight: 500 !important;
}
.site-footer .contact-line a:hover {
    color: #2196F3 !important;
}

/* alt copyright bar - HER MODDA */
.footer-bottom {
    border-top: 1px solid #2C2C2C !important;
    margin-top: 2rem !important;
    padding-top: 1rem !important;
    font-size: 0.8rem !important;
    color: #A8A8A8 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    row-gap: .5rem !important;
}

/* versiyon etiketi - HER MODDA */
.footer-version-pill {
    background-color: #2A2A2A !important;
    color: #E0E0E0 !important;
    border: 1px solid #2C2C2C !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    padding: .4rem .6rem !important;
    line-height: 1 !important;
}

/* Normal modda da footer yazılarını zorla görünür yap */
body:not([data-theme="dark"]) .site-footer {
    background-color: #1E1E1E !important;
    color: #E0E0E0 !important;
}

body:not([data-theme="dark"]) .site-footer * {
    color: #E0E0E0 !important;
}

body:not([data-theme="dark"]) .site-footer h5,
body:not([data-theme="dark"]) .site-footer h4,
body:not([data-theme="dark"]) .site-footer h3 {
    color: #E0E0E0 !important;
}

body:not([data-theme="dark"]) .site-footer p {
    color: #A8A8A8 !important;
}

body:not([data-theme="dark"]) .site-footer a {
    color: #E0E0E0 !important;
}

body:not([data-theme="dark"]) .site-footer a:hover {
    color: #2196F3 !important;
}

body:not([data-theme="dark"]) .site-footer .contact-line {
    color: #E0E0E0 !important;
}

body:not([data-theme="dark"]) .site-footer .contact-line a {
    color: #E0E0E0 !important;
}

body:not([data-theme="dark"]) .site-footer .contact-line a:hover {
    color: #2196F3 !important;
}

body:not([data-theme="dark"]) .footer-bottom {
    color: #A8A8A8 !important;
}

body:not([data-theme="dark"]) .footer-version-pill {
    background-color: #2A2A2A !important;
    color: #E0E0E0 !important;
}
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 1.2rem;
}
/* Footer spacing */
.site-footer {
    margin-top: 25rem !important;
}

/* Dashboard refresh */
.dashboard-quick-actions {
    display: flex !important;
    justify-content: flex-end !important;
    flex-direction: column !important;
}

.dashboard-heading {
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.dashboard-quick-actions .quick-actions {
    width: 100% !important;
}

@media (max-width: 992px) {
    .dashboard-quick-actions {
        justify-content: center !important;
    }
    .dashboard-heading {
        text-align: center !important;
        width: 100% !important;
    }
    .dashboard-quick-actions .text-muted.small {
        text-align: center !important;
        width: 100% !important;
    }
}

.btn-soft {
    border-radius: 0.75rem !important;
    padding: 0.6rem 1.2rem !important;
    font-weight: 600 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-soft:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 20px rgba(59, 130, 246, 0.18) !important;
}

.btn-soft.btn-outline-primary {
    background-color: #eef2ff !important;
    border-color: #d4dcff !important;
    color: #2563eb !important;
}

.btn-soft.btn-outline-primary:hover {
    background-color: #dbeafe !important;
    border-color: #c7d2fe !important;
    color: #1d4ed8 !important;
}

.stat-card,
.minimal-card {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05) !important;
    border-radius: 18px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.stat-card:hover,
.minimal-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08) !important;
}

.stat-card .card-body {
    padding: 1.8rem !important;
}

.stat-label {
    font-size: 0.85rem !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.15rem !important;
}

.stat-value {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.stat-icon {
    width: 3rem !important;
    height: 3rem !important;
    border-radius: 0.9rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    background-color: #eff6ff !important;
}

.minimal-card .card-header {
    border: none !important;
    background: transparent !important;
    padding: 1.5rem 1.5rem 0 !important;
}

.minimal-card .card-body {
    padding: 1.5rem !important;
}

.minimal-card .card-body.p-0 {
    padding: 0 !important;
}

.table-modern {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table-modern thead th {
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
}

.table-modern tbody tr {
    border-bottom: 1px solid #f1f5f9 !important;
}

.table-modern tbody tr:last-child {
    border-bottom: none !important;
}

.table-modern tbody td {
    color: #1f2937 !important;
    font-size: 0.9rem !important;
}

.dashboard-feed .table-modern tbody tr:hover {
    background-color: #f8fafc !important;
}

.link-muted {
    color: #475569 !important;
    text-decoration: none !important;
}

.link-muted:hover {
    color: #2563eb !important;
}

.empty-state {
    color: #94a3b8 !important;
}

.badge-soft-negative {
    background-color: rgba(248, 113, 113, 0.2) !important;
    color: #b91c1c !important;
}

.badge-soft-positive {
    background-color: rgba(16, 185, 129, 0.2) !important;
    color: #047857 !important;
}

.badge-soft-primary {
    background-color: rgba(59, 130, 246, 0.18) !important;
    color: #1d4ed8 !important;
}

.badge-soft-warning {
    background-color: rgba(251, 191, 36, 0.25) !important;
    color: #92400e !important;
}

.status-item {
    padding: 0 0.25rem !important;
}

.status-label {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

.status-negative {
    color: #b91c1c !important;
    background-color: rgba(248, 113, 113, 0.18) !important;
}

.status-positive {
    color: #047857 !important;
    background-color: rgba(74, 222, 128, 0.18) !important;
}

.status-neutral {
    color: #475569 !important;
    background-color: rgba(148, 163, 184, 0.18) !important;
}

.status-count {
    font-weight: 600 !important;
    color: #0f172a !important;
}

.minimal-progress {
    height: 0.5rem !important;
    background-color: #f1f5f9 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
}

.minimal-progress .progress-bar {
    border-radius: 999px !important;
}

/* === YENİ KULLANICI PROFİL TASARIMI === */
.user-profile-link {
    padding: 0.5rem 1rem !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.user-profile-link:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
    transform: translateY(-1px) !important;
}

.user-profile-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.5rem !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(13, 110, 253, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

.user-profile-container:hover {
    background: rgba(13, 110, 253, 0.05) !important;
    border-color: rgba(13, 110, 253, 0.3) !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15) !important;
}

.user-avatar {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3) !important;
    transition: all 0.3s ease !important;
}

.user-profile-container:hover .user-avatar {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4) !important;
}

.user-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.1rem !important;
}

.user-name {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: #1a202c !important;
    line-height: 1.2 !important;
}

.user-role {
    font-size: 0.8rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
}

.dropdown-arrow {
    color: #64748b !important;
    font-size: 0.8rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: center !important;
    margin-left: 0.5rem !important;
}

.user-profile-link:hover .dropdown-arrow {
    color: #0d6efd !important;
    transform: translateY(-1px) !important;
}

.user-profile-link[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg) !important;
    color: #0d6efd !important;
}

.user-profile-link[aria-expanded="true"]:hover .dropdown-arrow {
    transform: rotate(180deg) translateY(-1px) !important;
}


/* Dark Mode Desteği */
[data-bs-theme="dark"] .user-profile-container {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

[data-bs-theme="dark"] .user-profile-container:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

[data-bs-theme="dark"] .user-name {
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .user-role {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .dropdown-arrow {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .user-profile-link:hover .dropdown-arrow {
    color: #3b82f6 !important;
}

[data-bs-theme="dark"] .user-profile-link[aria-expanded="true"] .dropdown-arrow {
    color: #3b82f6 !important;
}

/* === AVATAR STİLLERİ === */
.avatar-sm {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3) !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.avatar-lg {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 3rem !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3) !important;
    transition: all 0.3s ease !important;
    border: 4px solid rgba(255, 255, 255, 0.2) !important;
}

.avatar-lg:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.4) !important;
}

/* Dark Mode Avatar */
[data-bs-theme="dark"] .avatar-sm {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

[data-bs-theme="dark"] .avatar-lg {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3) !important;
}

[data-bs-theme="dark"] .avatar-lg:hover {
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4) !important;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .user-profile-container {
        padding: 0.4rem !important;
        gap: 0.5rem !important;
    }
    
    .user-avatar {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
    
    .user-name {
        font-size: 0.9rem !important;
    }
    
    .user-role {
        font-size: 0.75rem !important;
    }
    
    .avatar-lg {
        width: 100px !important;
        height: 100px !important;
        font-size: 2.5rem !important;
    }
}

/* === MODERN TOAST NOTIFICATION STİLLERİ === */
.toast-container {
    z-index: 9999 !important;
}

.toast {
    min-width: 300px !important;
    max-width: 400px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    backdrop-filter: blur(10px) !important;
    animation: slideInRight 0.3s ease-out !important;
}

.toast-header {
    border-radius: 12px 12px 0 0 !important;
    padding: 0.75rem 1rem !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

.toast-body {
    padding: 0.75rem 1rem 1rem 1rem !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
}

.toast .btn-close {
    filter: brightness(0) invert(1) !important;
}

/* Toast Animasyonları */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hide {
    animation: slideOutRight 0.3s ease-in !important;
}

/* Dark Mode Toast */
[data-bs-theme="dark"] .toast {
    background-color: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

[data-bs-theme="dark"] .toast-header {
    background-color: rgba(30, 41, 59, 0.95) !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2) !important;
}

/* Toast Tip Özel Renkler */
.toast.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.toast.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.toast.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.toast.bg-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

/* === YEDEKLEME SAYFASI STİLLERİ === */
.backup-card {
    transition: all 0.3s ease !important;
    border-left: 4px solid #0d6efd !important;
}

.backup-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15) !important;
}

.backup-file-icon {
    font-size: 1.2rem !important;
    color: #0d6efd !important;
}

.backup-size-badge {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.8rem !important;
}

.backup-actions .btn {
    margin: 0 2px !important;
}

.backup-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid rgba(13, 110, 253, 0.1) !important;
}

.backup-info-card .card-title {
    color: #495057 !important;
    font-weight: 600 !important;
}

.backup-info-card .list-unstyled li {
    padding: 0.25rem 0 !important;
}

.backup-info-card .bi-check {
    color: #28a745 !important;
}

.backup-info-card .bi-shield-check {
    color: #17a2b8 !important;
}

/* Dark Mode Yedekleme */
[data-bs-theme="dark"] .backup-card {
    border-left-color: #3b82f6 !important;
}

[data-bs-theme="dark"] .backup-card:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15) !important;
}

[data-bs-theme="dark"] .backup-file-icon {
    color: #3b82f6 !important;
}

[data-bs-theme="dark"] .backup-info-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}

[data-bs-theme="dark"] .backup-info-card .card-title {
    color: #e2e8f0 !important;
}

/* Responsive Yedekleme */
@media (max-width: 768px) {
    .backup-actions .btn-group {
        flex-direction: column !important;
    }
    
    .backup-actions .btn {
        margin: 2px 0 !important;
        width: 100% !important;
    }
    
    .table-responsive {
        font-size: 0.85rem !important;
    }
}

/* ========================================
   MOBİL UYUMLULUK İYİLEŞTİRMELERİ
   ======================================== */

/* Touch-Friendly Butonlar - Minimum 44x44px (Apple HIG / Material Design) */
@media (max-width: 768px) {
    /* Tüm butonlar için minimum boyut */
    .btn {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 1rem !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(13, 110, 253, 0.2) !important;
        tap-highlight-color: rgba(13, 110, 253, 0.2) !important;
    }
    
    /* Küçük butonlar bile minimum boyutta */
    .btn-sm {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 0.65rem 1rem !important;
        font-size: 0.95rem !important;
    }
    
    /* İkon butonları */
    .btn i {
        font-size: 1.1rem !important;
    }
    
    /* Butonlar arası boşluk */
    .btn + .btn {
        margin-top: 0.5rem !important;
    }
    
    /* Buton grupları mobilde dikey */
    .btn-group {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .btn-group .btn {
        width: 100% !important;
        border-radius: 0.5rem !important;
        margin: 0.25rem 0 !important;
    }
    
    /* Navbar butonları */
    .navbar-toggler {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 0.5rem 0.75rem !important;
    }
}

/* Responsive Navbar */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem !important;
        padding: 1rem 0 !important;
        background-color: rgba(255, 255, 255, 0.98) !important;
        border-radius: 0.5rem !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0 !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        border-radius: 0.5rem !important;
        transition: background-color 0.2s ease !important;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:active {
        background-color: rgba(13, 110, 253, 0.1) !important;
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
        box-shadow: none !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-radius: 0.5rem !important;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.75rem 1.5rem !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* User profile dropdown mobilde */
    .user-profile-container {
        padding: 0.75rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .user-dropdown {
        position: static !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
    }
}

/* Mobil Tablolar */
@media (max-width: 768px) {
    /* Tablolar için kart görünümü mobilde */
    .table-responsive {
        border-radius: 0.75rem !important;
        overflow: hidden !important;
    }
    
    .table {
        font-size: 0.9rem !important;
        margin-bottom: 0 !important;
    }
    
    .table thead {
        display: none !important;
    }
    
    .table tbody tr {
        display: block !important;
        margin-bottom: 1rem !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 0.5rem !important;
        padding: 1rem !important;
        background-color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }
    
    .table tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.5rem 0 !important;
        border: none !important;
        text-align: left !important;
    }
    
    .table tbody td:before {
        content: attr(data-label) !important;
        font-weight: 600 !important;
        color: #6b7280 !important;
        margin-right: 1rem !important;
        flex-shrink: 0 !important;
    }
    
    /* Tablo içindeki butonlar */
    .table .btn {
        width: 100% !important;
        margin: 0.25rem 0 !important;
    }
    
    .table .btn-group {
        width: 100% !important;
    }
}

/* Form Elemanları Mobil Optimizasyonu */
@media (max-width: 768px) {
    /* Form kontrol elemanları */
    .form-control,
    .form-select {
        min-height: 44px !important;
        font-size: 16px !important; /* iOS zoom engelleme */
        padding: 0.75rem 1rem !important;
        border-radius: 0.5rem !important;
    }
    
    /* Label'lar */
    .form-label {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.5rem !important;
        color: #374151 !important;
    }
    
    /* Input grupları */
    .input-group {
        margin-bottom: 1rem !important;
    }
    
    .input-group-text {
        min-height: 44px !important;
        padding: 0.75rem 1rem !important;
    }
    
    /* Form grid düzeni mobilde tek sütun */
    .row .col-md-4,
    .row .col-md-6,
    .row .col-md-8,
    .row .col-md-12 {
        margin-bottom: 1rem !important;
    }
    
    /* Form butonları */
    .form-group .btn,
    form .btn {
        width: 100% !important;
        margin: 0.5rem 0 !important;
    }
    
    /* Checkbox ve radio butonları */
    .form-check {
        min-height: 44px !important;
        padding-left: 2.5rem !important;
        display: flex !important;
        align-items: center !important;
        margin-bottom: 0.75rem !important;
    }
    
    .form-check-input {
        width: 1.25rem !important;
        height: 1.25rem !important;
        margin-top: 0 !important;
        margin-left: -2.5rem !important;
    }
    
    .form-check-label {
        font-size: 1rem !important;
        padding-left: 0.5rem !important;
    }
}

/* Kartlar Mobil Optimizasyonu */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1.5rem !important;
        border-radius: 1rem !important;
    }
    
    .card-header {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    
    .card-body {
        padding: 1.25rem !important;
    }
    
    .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Dashboard kartları */
    .stat-card,
    .minimal-card {
        margin-bottom: 1rem !important;
    }
    
    .stat-card .card-body,
    .minimal-card .card-body {
        padding: 1.5rem 1rem !important;
    }
    
    .stat-value {
        font-size: 1.75rem !important;
    }
    
    .stat-label {
        font-size: 0.8rem !important;
    }
    
    .stat-icon {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 1.2rem !important;
    }
}

/* Modal Mobil Optimizasyonu */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
    }
    
    .modal-content {
        border-radius: 1rem !important;
    }
    
    .modal-header {
        padding: 1rem !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    .modal-title {
        font-size: 1.1rem !important;
    }
    
    .modal-body {
        padding: 1rem !important;
        max-height: calc(100vh - 200px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .modal-footer {
        padding: 1rem !important;
        border-top: 1px solid #e5e7eb !important;
        flex-direction: column-reverse !important;
    }
    
    .modal-footer .btn {
        width: 100% !important;
        margin: 0.25rem 0 !important;
    }
}

/* Container ve Spacing */
@media (max-width: 768px) {
    .container,
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Sayfa başlıkları */
    h1, .h1 {
        font-size: 1.5rem !important;
    }
    
    h2, .h2 {
        font-size: 1.25rem !important;
    }
    
    h3, .h3 {
        font-size: 1.1rem !important;
    }
    
    h4, .h4 {
        font-size: 1rem !important;
    }
    
    /* Margin ve padding ayarları */
    .mt-4, .my-4 {
        margin-top: 1.5rem !important;
    }
    
    .mb-4, .my-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .pt-4, .py-4 {
        padding-top: 1.5rem !important;
    }
    
    .pb-4, .py-4 {
        padding-bottom: 1.5rem !important;
    }
}

/* Touch Optimizasyonları */
@media (hover: none) and (pointer: coarse) {
    /* Touch cihazlarda hover efektlerini kaldır */
    .card:hover {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    /* Touch için aktif durum vurgusu */
    .btn:active {
        transform: scale(0.98) !important;
        opacity: 0.9 !important;
    }
    
    .card:active {
        transform: scale(0.99) !important;
    }
    
    /* Linkler için touch feedback */
    a:active {
        opacity: 0.7 !important;
    }
}

/* Scroll Optimizasyonu */
@media (max-width: 768px) {
    /* Smooth scrolling mobilde */
    html {
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
    }
    
    /* Scroll bar gizleme ama scroll etkin */
    ::-webkit-scrollbar {
        width: 4px !important;
        height: 4px !important;
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #888 !important;
        border-radius: 2px !important;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #555 !important;
    }
}

/* Badge ve Etiketler Mobil */
@media (max-width: 768px) {
    .badge {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.6rem !important;
        min-height: 28px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
}

/* Alert ve Mesajlar Mobil */
@media (max-width: 768px) {
    .alert {
        padding: 1rem !important;
        font-size: 0.95rem !important;
        border-radius: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .alert-dismissible .btn-close {
        padding: 0.75rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
}

/* Dashboard Mobil İyileştirmeleri */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem 0.5rem !important;
    }
    
    .dashboard-quick-actions {
        margin-bottom: 1.5rem !important;
    }
    
    .quick-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .quick-actions .btn {
        width: 100% !important;
    }
    
    .dashboard-stats .row {
        margin: 0 !important;
    }
    
    .dashboard-stats [class*="col-"] {
        padding: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Tablo Responsive Fallback (data-label attribute olmadan) */
@media (max-width: 768px) {
    .table tbody td:first-child {
        font-weight: 600 !important;
        color: #1f2937 !important;
        border-bottom: 1px solid #e5e7eb !important;
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .table tbody td:not(:first-child) {
        margin-top: 0.5rem !important;
    }
}

/* Erdoğan Traktör YP Mobil Optimizasyonu */
@media (max-width: 768px) {
    /* Parça tablosu mobil */
    #parcaTablosu tbody tr {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    #parcaTablosu tbody td {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0.75rem 0 !important;
    }
    
    #parcaTablosu tbody td input {
        width: 100% !important;
        margin-top: 0.5rem !important;
    }
    
    #parcaEkleBtn {
        width: 100% !important;
        margin-top: 1rem !important;
    }
}

/* Dark Mode Mobil */
@media (max-width: 768px) {
    [data-theme="dark"] .navbar-collapse {
        background-color: rgba(45, 45, 45, 0.98) !important;
    }
    
    [data-theme="dark"] .table tbody tr {
        background-color: #2d2d2d !important;
        border-color: #404040 !important;
    }
    
    [data-theme="dark"] .card {
        background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    }
}

/* Viewport Meta Tag Desteği */
@supports (-webkit-touch-callout: none) {
    /* iOS özel ayarlar */
    @media (max-width: 768px) {
        .form-control,
        .form-select {
            font-size: 16px !important; /* iOS zoom engelleme */
        }
    }
}

/* Landscape Mode Optimizasyonu */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar-collapse {
        max-height: 60vh !important;
        overflow-y: auto !important;
    }
    
    .modal-body {
        max-height: 50vh !important;
    }
}

/* Touch Device Class Optimizasyonları */
.touch-device {
    -webkit-tap-highlight-color: rgba(13, 110, 253, 0.2) !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

.touch-device input,
.touch-device textarea,
.touch-device select {
    -webkit-user-select: text !important;
    user-select: text !important;
}

.touch-device .btn,
.touch-device .nav-link,
.touch-device .dropdown-item {
    -webkit-tap-highlight-color: rgba(13, 110, 253, 0.3) !important;
    cursor: pointer !important;
}

/* Mobilde görsel optimizasyonlar */
@media (max-width: 768px) {
    /* Görselleri responsive yap */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* İkon boyutları mobilde */
    .bi,
    i[class*="bi-"] {
        font-size: 1.1rem !important;
    }
    
    /* Küçük ikonlar */
    .bi-sm,
    .small i {
        font-size: 0.9rem !important;
    }
    
    /* Büyük ikonlar */
    .bi-lg {
        font-size: 1.5rem !important;
    }
}

/* Çok küçük ekranlar için ekstra optimizasyon */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .btn {
        font-size: 0.95rem !important;
        padding: 0.7rem 1rem !important;
    }
    
    h1, .h1 {
        font-size: 1.35rem !important;
    }
    
    .stat-value {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
    }
}

/* ========================================
   MÜŞTERİ DETAY SAYFASI MOBİL DÜZENİ
   ======================================== */

/* Geri Dön butonu - Mobilde üst sol köşede */
@media (max-width: 767px) {
    .musteri-detay-geri-btn {
        margin-bottom: 1rem !important;
    }
    
    .musteri-detay-geri-btn .btn {
        min-height: 44px !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Desktop'ta Geri Dön butonunu gizle (zaten üst sağda) */
    .d-md-flex .musteri-detay-geri-btn {
        display: none !important;
    }
}

/* Mobil başlık düzeni */
@media (max-width: 767px) {
    .musteri-bilgi {
        background-color: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 0.75rem !important;
        padding: 1.25rem !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }
    
    /* Müşteri bilgileri mobilde düzgün sıralanmış */
    .musteri-bilgileri {
        margin-bottom: 1rem !important;
    }
    
    .musteri-bilgileri p {
        margin-bottom: 0.75rem !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .musteri-bilgileri i {
        font-size: 1rem !important;
        margin-right: 0.75rem !important;
        color: #6b7280 !important;
        min-width: 20px !important;
    }
    
    /* Bakiye mobilde tam genişlik ve üstte */
    .musteri-bakiye {
        margin-top: 1.5rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid #e5e7eb !important;
        text-align: center !important;
    }
    
    .musteri-bakiye .fs-4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .musteri-bakiye .fs-3 {
        font-size: 1.5rem !important;
    }
}

/* Mobil butonlar - Yan yana küçük */
@media (max-width: 767px) {
    .musteri-detay-mobil-butonlar {
        margin-top: 1rem !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    /* Genel buton stilleri */
    .musteri-detay-mobil-butonlar .btn {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    
    /* Cari İşlemleri ve Düzenle butonları KESİNLİKLE eşit boyutta */
    .musteri-detay-mobil-butonlar .btn:nth-child(1),
    .musteri-detay-mobil-butonlar .btn:nth-child(2) {
        flex: 0 0 calc(50% - 0.25rem) !important;
        width: calc(50% - 0.25rem) !important;
        max-width: calc(50% - 0.25rem) !important;
        min-width: calc(50% - 0.25rem) !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        padding: 0.5rem 0.3rem !important;
        font-size: 0.7rem !important;
        white-space: normal !important;
        text-align: center !important;
        word-wrap: break-word !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }
    
    /* Yeni Müşteri butonu tam genişlik */
    .musteri-detay-mobil-butonlar .btn:nth-child(3) {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0.5rem !important;
        font-size: 0.8rem !important;
        padding: 0.6rem 0.4rem !important;
    }
    
    .musteri-detay-mobil-butonlar .btn i {
        font-size: 0.7rem !important;
        margin-right: 0.25rem !important;
        flex-shrink: 0 !important;
    }
    
    /* Çok küçük ekranlarda butonlar alt alta */
    @media (max-width: 380px) {
        .musteri-detay-mobil-butonlar .btn:nth-child(1),
        .musteri-detay-mobil-butonlar .btn:nth-child(2),
        .musteri-detay-mobil-butonlar .btn:nth-child(3) {
            flex: 0 0 100% !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 100% !important;
        }
        
        .musteri-detay-mobil-butonlar .btn:nth-child(2),
        .musteri-detay-mobil-butonlar .btn:nth-child(3) {
            margin-top: 0.5rem !important;
        }
    }
}

/* Desktop'ta mobil butonları gizle */
@media (min-width: 768px) {
    .musteri-detay-mobil-butonlar {
        display: none !important;
    }
    
    .musteri-detay-geri-btn {
        display: none !important;
    }
}

/* ========================================
   CARİ DETAY SAYFASI MOBİL DÜZENİ
   ======================================== */

/* Geri Dön butonu - Mobilde üst sol köşede */
@media (max-width: 767px) {
    .cari-detay-geri-btn {
        margin-bottom: 1rem !important;
    }
    
    .cari-detay-geri-btn .btn {
        min-height: 44px !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

/* Desktop'ta Geri Dön butonunu gizle */
@media (min-width: 768px) {
    .cari-detay-geri-btn {
        display: none !important;
    }
}

/* Cari Detay butonları - Eşit boyut */
@media (max-width: 767px) {
    .cari-detay-mobil-butonlar {
        gap: 0.5rem !important;
    }
    
    .cari-detay-mobil-butonlar .btn {
        min-height: 44px !important;
        padding: 0.6rem 0.75rem !important;
        font-size: 0.85rem !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Desktop butonları eşit boyut */
@media (min-width: 768px) {
    .cari-detay-desktop-butonlar {
        display: flex !important;
        gap: 0.5rem !important;
    }
    
    /* Tüm butonlar eşit boyutta */
    .cari-detay-desktop-butonlar .btn {
        flex: 0 0 auto !important;
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
        padding: 0.5rem 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
}

/* Müşteri bilgi kartı mobil düzeni */
@media (max-width: 767px) {
    .musteri-bilgi .row {
        flex-direction: column !important;
    }
    
    .musteri-bilgi .col-md-8,
    .musteri-bilgi .col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-bottom: 1rem !important;
    }
}

/* ========================================
   HAREKET İŞLEM BUTONLARI
   ======================================== */

/* Küçük buton stili (btn-xs) */
.btn-xs {
    padding: 0.25rem 0.4rem !important;
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    border-radius: 0.25rem !important;
    min-width: 32px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-xs i {
    font-size: 0.75rem !important;
    line-height: 1 !important;
}

/* Hareket işlem butonları - Yan yana küçük */
.hareket-islem-butonlar {
    gap: 0.25rem !important;
    align-items: center !important;
    justify-content: center !important;
}

.hareket-islem-butonlar .btn {
    padding: 0.25rem 0.35rem !important;
    font-size: 0.7rem !important;
    min-width: 30px !important;
    width: auto !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.hareket-islem-butonlar .btn i {
    font-size: 0.7rem !important;
    margin: 0 !important;
}

/* Mobilde touch-friendly ama küçük */
@media (max-width: 767px) {
    .hareket-islem-butonlar .btn {
        min-width: 36px !important;
        min-height: 36px !important;
        padding: 0.3rem 0.4rem !important;
    }
    
    .hareket-islem-butonlar .btn i {
        font-size: 0.8rem !important;
    }
}

/* Tablo içindeki işlem butonları için özel düzenleme */
.table .hareket-islem-butonlar {
    white-space: nowrap !important;
}

.table td .hareket-islem-butonlar {
    justify-content: center !important;
}

/* ========================================
   CARİ LİSTESİ FİLTRE SELECT
   ======================================== */

/* Cari filter select - Mobil için optimize */
.cari-filter-select {
    cursor: pointer !important;
}

/* Mobilde select elementini daha büyük ve dokunmatik hale getir */
@media (max-width: 767px) {
    .cari-filter-select {
        min-height: 44px !important;
        height: 44px !important;
        min-width: 120px !important;
        font-size: 16px !important; /* iOS zoom engelleme */
        padding: 0.6rem 0.75rem !important;
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
        line-height: 1.5 !important;
        border-radius: 0.5rem !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
        /* form-select-sm'i override et */
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
        font-size: 16px !important;
        /* Select'in native davranışını koru - açılabilir olmalı */
    }
    
    /* form-select-sm sınıfını mobilde override et */
    .cari-filter-select.form-select-sm {
        min-height: 44px !important;
        height: 44px !important;
        padding: 0.6rem 0.75rem !important;
        font-size: 16px !important;
    }
    
    /* Card header mobilde flex-wrap olunca select için daha fazla alan */
    .card-header {
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
    }
    
    .card-header .d-flex {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .card-header h5 {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Mobilde select ve buton yan yana */
    .card-header .d-flex.gap-2 {
        width: 100% !important;
        justify-content: flex-end !important;
    }
    
    .cari-filter-select {
        flex: 0 0 auto !important;
        margin-right: 0.5rem !important;
    }
}

/* Extra küçük ekranlar için */
@media (max-width: 480px) {
    .cari-filter-select {
        min-width: 100px !important;
        font-size: 15px !important;
        padding: 0.5rem 0.6rem !important;
    }
    
    .card-header .d-flex.gap-2 {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .cari-filter-select {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 0.5rem !important;
    }
}

