.sidebar {
    min-height: 100vh;
    background-color: #2c3e50;
    border-right: 1px solid #e0e0e0;
}
.sidebar .nav-link {
    color: rgba(255,255,255,0.85);
    padding: 12px 20px;
    margin: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}
.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255,255,255,0.08);
}
.sidebar .nav-link.active {
    color: white;
    background-color: #3498db;
}
.main-content {
    background-color: #f5f6fa;
    min-height: 100vh;
}
.card {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    background-color: white;
}
.card-header {
    background-color: #ffffff;
    color: #2c3e50;
    border-bottom: 1px solid #e1e8ed;
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
    padding: 16px 20px;
}
.table {
    border-radius: 10px;
    overflow: hidden;
}
.table thead th {
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #495057;
}

/* Tablo stilleri */
#products-table {
    table-layout: fixed;
}

#products-table th,
#products-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#products-table td {
    vertical-align: middle;
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sıralama stilleri */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}
.sortable:hover {
    background-color: #f8f9fa;
}
.sort-icon {
    opacity: 0.5;
    margin-left: 5px;
}
.sortable.sort-asc .sort-icon {
    opacity: 1;
}
.sortable.sort-asc .sort-icon::before {
    content: "\f0de"; /* fa-sort-up */
}
.sortable.sort-desc .sort-icon {
    opacity: 1;
}
.sortable.sort-desc .sort-icon::before {
    content: "\f0dd"; /* fa-sort-down */
}

/* Stok kodu sütunu için özel stil */
#products-table td:nth-child(4) {
    white-space: normal;
    word-break: break-all;
}

/* Aktif filtre butonu stili */
.btn-group .btn.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.btn-group .btn.active:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}
.table tbody tr {
    transition: background-color 0.15s ease;
}
.table tbody tr:hover {
    background-color: #f8f9fa;
}
.badge {
    font-size: 0.8em;
    padding: 6px 12px;
}
.btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}
.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}
.stats-card {
    color: #2c3e50;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid #e1e8ed;
    background-color: white;
}
.stats-card .card-body {
    padding: 1.25rem;
}
.stats-card.clickable {
    cursor: pointer;
}
.stats-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #3498db;
}
.stats-card.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    border: 2px solid #3498db;
    background-color: #f8fbff;
}
.order-status-btn.active {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

/* Her kartın kendi rengi */
.stats-all {
    border-left: 4px solid #3498db;
}
.stats-all .stats-icon {
    color: #3498db;
}
.stats-active {
    border-left: 4px solid #27ae60;
}
.stats-active .stats-icon {
    color: #27ae60;
}
.stats-low {
    border-left: 4px solid #f39c12;
}
.stats-low .stats-icon {
    color: #f39c12;
}
.stats-empty {
    border-left: 4px solid #e74c3c;
}
.stats-empty .stats-icon {
    color: #e74c3c;
}
.stats-locked {
    border-left: 4px solid #95a5a6;
}
.stats-locked .stats-icon {
    color: #95a5a6;
}
.stats-blacklisted {
    border-left: 4px solid #34495e;
}
.stats-blacklisted .stats-icon {
    color: #34495e;
}
.stats-icon {
    opacity: 1;
}
#orders-stats-section .stats-icon i {
    font-size: 1.5rem;
}
.stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}
.loading {
    display: none;
}
.loading.show {
    display: block;
}
.product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}
.search-box {
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    padding: 10px 16px;
    transition: all 0.2s;
}
.search-box:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}
/* Sipariş istatistik kartları için özel renkler */
.stats-warning {
    border-left: 4px solid #f39c12;
}
.stats-warning .stats-icon {
    color: #f39c12;
}
.stats-info {
    border-left: 4px solid #3498db;
}
.stats-info .stats-icon {
    color: #3498db;
}
.stats-secondary {
    border-left: 4px solid #95a5a6;
}
.stats-secondary .stats-icon {
    color: #95a5a6;
}
.stats-success {
    border-left: 4px solid #27ae60;
}
.stats-success .stats-icon {
    color: #27ae60;
}
.stats-danger {
    border-left: 4px solid #e74c3c;
}
.stats-danger .stats-icon {
    color: #e74c3c;
}

.col-md-1-5 {
    flex: 0 0 auto;
    width: 12.5%;
}
@media (max-width: 1200px) {
    .col-md-1-5 {
        width: 25%;
    }
}
@media (max-width: 768px) {
    .col-md-1-5 {
        width: 50%;
    }
}

/* Genel iyileştirmeler */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #2c3e50;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e1e8ed;
    font-weight: 600;
    color: #495057;
    text-transform: none;
    letter-spacing: 0;
}

.table tbody td {
    border-bottom: 1px solid #f0f0f0;
}

h2, h4, h5 {
    color: #2c3e50;
    font-weight: 600;
}

.form-control, .form-select {
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* Marketplace cards */
.marketplace-card {
    transition: all 0.2s ease;
    border: 1px solid #e1e8ed;
    cursor: pointer;
}

.marketplace-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.marketplace-card h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-top: 10px;
}

/* Süresi geçmiş siparişler için turuncu arka plan */
.table-warning {
    background-color: #fff3cd !important;
}

.table-warning:hover {
    background-color: #ffeaa7 !important;
}

