.table-container {
    background: white;
    border-radius: 8px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    overflow: hidden;
    width: 100%;
}

.table-controls {
    padding: 1rem;
    background: #f8f9fa;
}

.table-controls .input-group {
    max-width: 300px;
}
/*
.table-controls .form-control {
    border: 1px solid var(--gray-300);
    border-radius: 8px 0 0 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}
*/


.table {
    margin-bottom: 0;
    width: 100%;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
    padding: 0.75rem;
    white-space: nowrap;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.status-active {
    background: rgba(13, 148, 136, 0.1);
    color: var(--success);
}
.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}
.status-completed {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}
.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}





.table-hover tbody tr:hover td {
    background-color: #f3f6f9 !important;
}

/* Empty State & Error State */
.empty-state {
    text-align: center;
    padding: 2rem;
}

.empty-state-content {
    color: #6c757d;
}

.empty-state-content i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-state-content h4 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state-content p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .table-container {
        border-radius: 8px;
    }
    .action-buttons {
        flex-direction: column;
    }
}
@media (max-width: 767.98px) {
    .table th, .table td {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    .route-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    .avatar {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    .progress-bar {
        width: 60px;
    }
}
@media (max-width: 480px) {
    .table th, .table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    .route-icon {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    .avatar {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
    .progress-bar {
        width: 40px;
    }
}

.table-pagination {
    padding: 1rem;
    background: #f8f9fa;
}
.pagination {
    margin-bottom: 0;
}
.pagination .page-link {
    border: none;
    color: #495057;
    padding: 0.5rem 0.75rem;
}
.pagination .page-link:hover {
    background-color: #e9ecef;
    color: #495057;
}
.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}
.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: transparent;
}
.table-info {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    font-size: 0.875rem;
    color: #6c757d;
}
.table tbody tr.loading {
    background: var(--gray-50);
}
.table tbody tr.loading td {
    text-align: center;
    padding: 2rem;
}
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Rota hücresi */
.rota-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.rota-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.rota-title {
    font-weight: 700;
    color: #23272F;
    font-size: 1rem;
}
.rota-desc {
    color: #7B809A;
    font-size: 0.875rem;
}

.calisan-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.calisan-name {
    color: #23272F;
    font-weight: 500;
    font-size: 0.95rem;
}

.progress-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.progress-bar-outer {
    width: 90px;
    height: 8px;
    background: #F1F2F6;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.progress-bar-inner {
    height: 100%;
    background: #7266F0;
    border-radius: 6px;
    transition: width 0.3s;
}
.progress-label {
    color: #7266F0;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 32px;
    text-align: right;
}

@media (max-width: 768px) {
    .table-container {
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    .table-controls {
        padding: 1rem;
    }
    .table thead th,
    .table tbody td {
        padding: 0.75rem 1rem;
    }
    .table thead th {
        font-size: 0.7rem;
    }
    .table tbody td {
        font-size: 0.8rem;
    }
    .action-buttons {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .table-pagination {
        padding: 0.75rem 1rem;
    }
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }
    .rota-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .avatar {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    .progress-bar-outer {
        width: 60px;
    }
}
@media (max-width: 480px) {
    .table-container {
        border-radius: 6px;
    }
    .table-controls {
        padding: 0.75rem;
    }
    .table thead th,
    .table tbody td {
        padding: 0.5rem 0.75rem;
    }
    .table thead th {
        font-size: 0.65rem;
    }
    .table tbody td {
        font-size: 0.75rem;
    }
    .action-buttons {
        gap: 0.125rem;
    }
    .table-pagination {
        padding: 0.5rem 0.75rem;
    }
    .pagination .page-link {
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
    }
    .rota-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    .avatar {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
    .progress-bar-outer {
        width: 40px;
    }
}


/* Form Styles */
/* 
.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(45, 26, 127, 0.25);
}

.form-control:invalid {
    border-color: var(--error-color);
} */

/* Button Styles */
/* .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--gray-600);
    border-color: var(--gray-600);
}

.btn-secondary:hover {
    background-color: var(--gray-700);
    border-color: var(--gray-700);
} */

/* Page Numbers */
.page-numbers {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.page-numbers .btn {
    min-width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Contact Info */
.contact-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.contact-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.contact-value {
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Sıralama stilleri */
.sortable {
    position: relative;
    user-select: none;
}

.sortable:hover {
    background-color: #e9ecef;
}

.sortable.sorted {
    /* background-color: rgb(99 91 255 / 11%); */
    color: #635bff;
}

.non-sortable {
    cursor: default !important;
    user-select: none;
}

.sort-icon {
    display: inline-block;
    margin-left: 0.5rem;
    color: #6c757d;
}

.sortable:hover .sort-icon {
    color: #495057;
}

.sortable.sorted .sort-icon {
    color: #635bff;
}

/* Error state */
.error-state {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .table-controls .row {
        flex-direction: column;
    }
    
    .table-controls .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .d-flex.gap-2 {
        flex-wrap: wrap;
    }
}

@media (max-width: 1200px) {
    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .sort-icon {
        margin-left: 0.25rem;
    }
}

@media (max-width: 992px) {
    .table-container {
        overflow-x: auto;
    }
    
    .table {
        min-width: 800px;
    }
    
    .table-controls .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .table-controls .col-md-6 {
        width: 100%;
    }
    
    .d-flex.gap-2 {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .form-select-sm,
    .form-control-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .table-controls {
        padding: 0.75rem;
    }
    
    .table-pagination {
        padding: 0.75rem;
    }
    
    .table-info {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .pagination {
        font-size: 0.875rem;
    }
    
    .page-link {
        padding: 0.375rem 0.5rem;
    }
    
    .empty-state {
        padding: 1.5rem;
    }
    
    .empty-state-content i {
        font-size: 1.5rem;
    }
    
    .empty-state-content h4 {
        font-size: 1rem;
    }
    
    .empty-state-content p {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .table-container {
        border-radius: 4px;
    }
    
    .table-controls {
        padding: 0.5rem;
    }
    
    .table-pagination {
        padding: 0.5rem;
    }
    
    .table-info {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .pagination {
        font-size: 0.75rem;
    }
    
    .page-link {
        padding: 0.25rem 0.375rem;
    }
    
    .btn-sm {
        padding: 0.125rem 0.25rem;
        font-size: 0.625rem;
    }
    
    .form-select-sm,
    .form-control-sm {
        font-size: 0.625rem;
        padding: 0.125rem 0.25rem;
    }
    
    .d-flex.gap-2 {
        gap: 0.25rem !important;
    }
}

/* Horizontal scroll için özel stiller */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Mobilde tablo başlıklarını sabitleme */
@media (max-width: 768px) {
    .table-responsive {
        position: relative;
    }
    
    .table thead {
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .table th {
        background-color: #f8f9fa !important;
        border-bottom: 2px solid #dee2e6;
    }
}

/* Touch cihazlar için daha büyük dokunma alanları */
@media (hover: none) and (pointer: coarse) {
    .sortable {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .btn-sm {
        min-height: 44px;
        min-width: 44px;
    }
    
    .page-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
} 