/* ========================================
   SIMPLE DATATABLES STİLLER - Zero Configuration Benzeri
   ======================================== */

.simple-datatable {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px 0;
}

.datatable-wrapper {
    margin: 20px 0;
    overflow-x: auto;
}

/* ========================================
   SEARCH AREA STİLLER
   ======================================== */

.simple-datatable .dataTables_filter {
    text-align: right;
    margin-bottom: 20px;
}

.simple-datatable .dataTables_filter label {
    font-weight: normal;
    white-space: nowrap;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.simple-datatable .dataTables_filter input {
    margin-left: 0.5em;
    display: inline-block;
    width: auto;
    min-width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
}

.simple-datatable .dataTables_filter input:focus {
    border-color: #00352b;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(0, 53, 43, 0.25);
}

/* ========================================
   TABLE STİLLER
   ======================================== */

.simple-datatable table.dataTable {
    width: 100%;
    margin: 0 auto;
    clear: both;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.simple-datatable table.dataTable thead th {
    font-weight: bold;
    padding: 10px 18px;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    vertical-align: middle;
}

.simple-datatable table.dataTable thead th:first-child {
    border-top-left-radius: 4px;
}

.simple-datatable table.dataTable thead th:last-child {
    border-top-right-radius: 4px;
}

.simple-datatable table.dataTable thead th.sorting:before,
.simple-datatable table.dataTable thead th.sorting:after,
.simple-datatable table.dataTable thead th.sorting_asc:before,
.simple-datatable table.dataTable thead th.sorting_asc:after,
.simple-datatable table.dataTable thead th.sorting_desc:before,
.simple-datatable table.dataTable thead th.sorting_desc:after {
    bottom: 0.5em;
    font-size: 12px;
}

.simple-datatable table.dataTable tbody td {
    padding: 10px 18px;
    vertical-align: top;
    border-top: 1px solid #ddd;
}

.simple-datatable table.dataTable tbody tr {
    background-color: white;
}

.simple-datatable table.dataTable tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.simple-datatable table.dataTable tbody tr:hover {
    background-color: #f5f5f5;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.simple-datatable .dataTables_empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* ========================================
   MOBİL RESPONSİVE - Natural Overflow
   ======================================== */

@media (max-width: 768px) {
    .simple-datatable .dataTables_filter {
        text-align: left;
        margin-bottom: 15px;
    }
    
    .simple-datatable .dataTables_filter label {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .simple-datatable .dataTables_filter input {
        width: 100%;
        min-width: auto;
        margin-left: 0;
    }
    
    .simple-datatable table.dataTable {
        font-size: 14px;
    }
    
    .simple-datatable table.dataTable thead th {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .simple-datatable table.dataTable tbody td {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* Tablo horizontal overflow için */
    .datatable-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .simple-datatable table.dataTable {
        font-size: 12px;
    }
    
    .simple-datatable table.dataTable thead th {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .simple-datatable table.dataTable tbody td {
        padding: 6px 8px;
        font-size: 12px;
    }
}