/* Genel Sayfa Stilleri */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding: 0;
    background-color: #f4f4f4;
}

/* Form Stilleri */
form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Buton Stilleri */
.btn-primary, .btn-danger, .btn-warning {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

/* Tablo Stilleri */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table, th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #007bff;
    color: white;
}

.sort-header {
    display: flex;
    align-items: center;
    cursor: pointer; /* El işaretini ekle */
    user-select: none;
}

.sort-icon {
    display: inline-block;
    margin-left: 5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.sort-icon.asc {
    border-bottom: 5px solid #000;
    border-top: none;
}

.sort-icon.desc {
    border-top: 5px solid #000;
    border-bottom: none;
}

/* Navbar Stilleri */
.navbar {
    background-color: #333;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    top: 0;
    width: 100%;
    z-index: 1050;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    display: inline-block;
}

.navbar a:hover {
    background-color: #ffffff;
    color: #333;
}

.navbar .user-info {
    color: white;
    padding: 14px 20px;
}

.navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    transition: background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    background-color: #0056b3; /* Daha koyu bir mavi */
    color: #000000; /* Beyaz metin */
    font-weight: bold; /* Kalın yazı tipi */
    border-radius: 0.25rem;
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
}

/* Dropdown menünün en üstte kalmasını sağlar */
.dropdown-menu {
    color: azure;
    background-color:#007bff !important;
    z-index: 1055 !important;
    position: absolute !important;
}

/* Select2 Stilleri */
.select2-container .select2-selection--single {
    height: 40px !important;
    padding: 6px 12px;
    font-size: 16px;
    border: 1px solid #ced4da;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; /* Kartlar arası boşluk */
}

.customer-card {
    width: calc(33.33% - 1.5rem); /* Her satırda 3 kart */
    margin-bottom: 1.5rem;
    border: none; /* Kart kenarlığını kaldır */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Gölge efekti */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Hover efekti için geçiş */
}

.customer-card:hover {
    transform: translateY(-5px); /* Hover efekti */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Hover efekti */
}

.card-title {
    font-weight: 600;
    color: #333;
}

.card-text {
    font-size: 0.9rem;
    color: #555;
}

.card-info {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.card-info i {
    margin-right: 0.5rem;
    color: #007bff; /* İkon rengi */
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    border-top: 1px solid #eee; /* Alt çizgi */
    padding: 0.75rem 1.5rem;
    background-color: transparent;
}

.btn-primary, .btn-danger {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.truncated {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

/* İstatistik Sayfası Stilleri */
.stats-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* İstatistik kartları için özel stiller */
.stats-card {
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-card .card-body {
    padding: 1.25rem;
    text-align: center;
}

.stats-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card .card-text {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stats-card small {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

.stats-card .fa-2x {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* İstatistik kartları için renk paleti */
.stats-card.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.stats-card.bg-success {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.stats-card.bg-warning {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: #fff !important;
}

.stats-card.bg-info {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
}

.stats-card.bg-secondary {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
}

.stats-card.bg-dark {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
    color: #333 !important;
}

.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

.table-responsive {
    max-height: 400px;
    overflow-y: auto;
}

.badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

/* Filtre alanları için stil */
.form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Kart başlıkları için stil */
.card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
    color: #495057;
}

.card-header h5 i {
    margin-right: 0.5rem;
    color: #007bff;
}

/* Responsive tasarım için */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 10px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .chart-container {
        height: 250px;
    }
    
    /* Mobilde istatistik kartlarını düzenle */
    .stats-card {
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .stats-card .card-title {
        font-size: 1.2rem;
    }
    
    .stats-card .card-text {
        font-size: 0.8rem;
    }
    
    .stats-card .fa-2x {
        font-size: 2rem;
    }
    
    .stats-card small {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .stats-card {
        height: 100px;
    }
    
    .stats-card .card-title {
        font-size: 1rem;
    }
    
    .stats-card .card-text {
        font-size: 0.75rem;
    }
    
    .stats-card .fa-2x {
        font-size: 1.5rem;
    }
}

/* İstatistik kartları için özel stiller */
.card small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.table-success {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

.table-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.table-light {
    background-color: rgba(248, 249, 250, 0.5) !important;
}