/* KNSDD - Toplu İşlemler (Bulk Actions) Stilleri */

/* Tablo Footer - Toplu İşlemler + Sayfalama */
.knsdd-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-top: 12px;
    border-top: 1px solid #ddd;
    gap: 20px;
    flex-wrap: wrap;
}

/* Toplu İşlemler Toolbar */
.knsdd-bulk-actions-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

#knsdd-bulk-action-select {
    min-width: 200px;
    height: 32px;
    padding: 2px 28px 2px 8px;
    border: 1px solid #8c8f94;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
    border-radius: 3px;
    font-size: 13px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2350575e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 12px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

#knsdd-bulk-action-select:hover {
    border-color: #2271b1;
    background-color: #f6f7f7;
}

#knsdd-bulk-action-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232271b1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
}

#knsdd-bulk-action-select option:disabled {
    color: #999;
    font-style: italic;
}

#knsdd-bulk-apply {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 30px;
}

#knsdd-bulk-apply:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#knsdd-selected-count-wrapper {
    color: #666;
    font-size: 13px;
    white-space: nowrap;
}

#knsdd-selected-count {
    font-weight: 600;
    color: #2271b1;
}

/* Checkbox Kolonu - Minimal Boşluk */
#knsdd-toggle-table.wp-list-table .check-column {
    width: 30px !important;
    padding: 11px 0 0 8px !important;
    vertical-align: top !important;
}

#knsdd-toggle-table.wp-list-table thead .check-column {
    padding: 11px 0 0 8px !important;
}

#knsdd-toggle-table.wp-list-table tbody .check-column {
    padding: 9px 0 0 8px !important;
}

#knsdd-toggle-table.wp-list-table .check-column input[type="checkbox"] {
    margin: 0 !important;
}

/* Grup Adı kolonu - Sol padding'i azalt */
#knsdd-toggle-table th:nth-child(2),
#knsdd-toggle-table td:nth-child(2) {
    padding-left: 8px !important;
}

.knsdd-group-checkbox {
    cursor: pointer;
}

/* Loading Durumu */
.knsdd-bulk-actions-toolbar.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.knsdd-bulk-actions-toolbar.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #0073aa;
    border-top-color: transparent;
    border-radius: 50%;
    animation: knsdd-spin 0.6s linear infinite;
}

@keyframes knsdd-spin {
    to { transform: rotate(360deg); }
}

/* Bildirim Mesajları */
.knsdd-bulk-notice {
    margin: 15px 0;
    animation: knsdd-slideDown 0.3s ease;
}

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

/* Responsive - Küçük Ekranlar */
@media (max-width: 782px) {
    .knsdd-table-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .knsdd-bulk-actions-toolbar {
        flex-direction: column;
        align-items: stretch;
        min-width: 100%;
    }
    
    #knsdd-bulk-action-select,
    #knsdd-bulk-apply {
        width: 100%;
    }
    
    #knsdd-selected-count-wrapper {
        text-align: center;
    }
}

/* RTL Desteği */
[dir="rtl"] .knsdd-bulk-actions-toolbar {
    flex-direction: row-reverse;
}

[dir="rtl"] #knsdd-bulk-action-select {
    background-position: left 8px center;
    padding: 2px 8px 2px 28px;
}

[dir="rtl"] .knsdd-bulk-actions-toolbar.loading::after {
    margin-left: 0;
    margin-right: 8px;
}
