/**
 * Pozitif Ekip Hub - Web Siteleri (Sites) Sayfa Stilleri
 * Strapi Uyumlu Zarif Veri Tablosu ve Araç Çubuğu
 */
.table-container {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.table-toolbar {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: #ffffff;
}

.search-input-wrap {
    position: relative;
    width: 280px;
    max-width: 100%;
}
.search-input-wrap .search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 16px;
}
.search-input {
    width: 100%;
    height: 32px;
    padding: 0 0.65rem 0 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: inherit;
    color: var(--text);
    background: #ffffff;
    outline: none;
    transition: all 0.15s ease;
}
.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.select-clean {
    height: 32px;
    padding: 0 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: inherit;
    color: var(--text);
    background: #ffffff;
    outline: none;
    cursor: pointer;
}

/* Veri Tablosu */
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 12.5px;
}

.data-table th {
    background: #f8fafc;
    padding: 0.65rem 1rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.data-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
    line-height: 1.4;
}

.data-table tbody tr:hover td {
    background: var(--bg-subtle);
}

.site-table-url {
    color: #0284c7 !important;
    font-family: var(--font-mono);
    font-size: 11.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: color 0.15s ease;
}
.site-table-url:hover {
    color: #0369a1 !important;
    text-decoration: underline !important;
}

/* API Durum Butonu */
.btn-api-check {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    color: var(--text);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-api-check:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Tablo İşlem Butonları */
.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.action-btn-clean {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.action-btn-clean:hover {
    background: var(--bg-subtle);
    color: var(--text);
    border-color: #cbd5e1;
}
.action-btn-delete:hover {
    background: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger-border);
}

/* Sayfalama */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: #ffffff;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--text-muted);
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-page {
    height: 26px;
    padding: 0 8px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-page:hover:not(.disabled) {
    background: var(--bg-subtle);
}
.btn-page.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.page-pill {
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 11px;
}

/* Çekmece İçi Beyaz Tasarım */
.drawer-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.85rem;
}
.drawer-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 12px;
}
.drawer-row:last-child {
    border-bottom: none;
}
.drawer-row .label {
    color: var(--text-muted);
}
.drawer-row .val {
    color: var(--text);
    font-weight: 600;
}

.test-result-box {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 11.5px;
}
.test-success {
    background: var(--success-light);
    border: 1px solid var(--success-border);
    color: var(--success);
}
.test-error {
    background: var(--danger-light);
    border: 1px solid var(--danger-border);
    color: var(--danger);
}
