/* Liste des tests SEO */

.seo-tests-list-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px;
    font-family: 'Poppins', sans-serif;
}



/* Header */
.seo-tests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.header-content h2 {
    color: #000;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.header-content p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.btn-create-test {
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-create-test:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

/* Empty state */
.seo-tests-empty {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.empty-icon {
    font-size: 64px;
    color: #7B7DFE;
    margin-bottom: 20px;
}

.seo-tests-empty h3 {
    color: #000;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
}

.seo-tests-empty p {
    color: #666;
    font-size: 16px;
    max-width: 800px;
    margin: auto;
    margin-bottom: 30px;
    max-width: 800px;
}

.btn-create-first {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-create-first:hover {
    color: #fff;
    text-decoration: none;
    background: #333;
}

/* Barre de recherche */
.seo-tests-search-bar {
    margin-bottom: 20px;
    position: relative;
}

.seo-tests-search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px;
    font-size: 12px;
    color: #000;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.seo-tests-search-input:focus {
    outline: none;
    border-color: #667eea;
}

.seo-tests-search-input::placeholder {
    color: #999;
}

/* En-têtes triables */
.seo-tests-table th.seo-tests-sortable {
    cursor: pointer;
    user-select: none;
    padding-right: 28px;
    white-space: nowrap;
}

.seo-tests-table th.seo-tests-sortable:hover {
    color: #667eea !important;
}

.seo-tests-table th .sort-icon {
    font-size: 10px;
    opacity: 0.8;
    margin-left: 4px;
}

/* Table */
.seo-tests-table-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.seo-tests-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
}

.seo-tests-table thead {
    background: #f8f9fa;
}

.seo-tests-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000 !important;
    border-bottom: 2px solid #dee2e6;
}

.seo-tests-table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.2s ease;
}

.seo-tests-table tbody tr:hover {
    background: #f8f9ff;
}

.seo-tests-table td {
    padding: 16px 20px;
    vertical-align: middle;
}

.test-name {
    max-width: 200px;
    min-width: 150px;
}

.test-name strong {
    color: #000;
    font-size: 13px;
    font-weight: 500;
    display: block;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.test-urls-count {
    width: 80px;
    min-width: 80px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.test-urls-count .no-data {
    color: #adb5bd;
    font-weight: normal;
}

.badge-serp {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
}

.test-domain {
    color: #495057;
    font-size: 14px;
}

.test-type, .test-metric {
    color: #6c757d;
    font-size: 13px;
    width: 100px;
    max-width: 100px;
    min-width: 80px;
}

.test-period {
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
}

.period-end {
    color: #6c757d;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-draft {

    color: #000;
}

.status-running {
    background: #e3f2fd;
    color: #1976d2;
    animation: pulse-running 2s infinite;
}

.status-collecting {
    background: #fff3cd;
    color: #856404;
    animation: pulse-running 2s infinite;
}

@keyframes pulse-running {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.status-paused {
    background: #fff3cd;
    color: #856404;
}

.status-done {
    background: #d4edda;
    color: #155724;
}

.status-archived {
    background: #f8d7da;
    color: #721c24;
}

/* Status icons for completed tests */
.test-status-col {
    text-align: center;
    padding: 6px 14px !important;
}

.status-result {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-result i {
    font-size: 14px;
}

.result-percentage {
    font-size: 13px;
}

.status-positive {
    background: #d4edda;
    color: #24C789;
}

.status-negative {
    background: #f8d7da;
    color: #FC554F;
}

.status-neutral {
    background: #e9ecef;
    color: #6c757d;
}

/* Progress bar */
.progress-bar {
    width: 80px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7B7DFE 0%, #B16CFE 100%);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.progress-text i {
    color: #ffc107;
}

/* Actions */
.test-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-action:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.btn-view {
    color: #7B7DFE;
}

.btn-view:hover {
    background: #e8e9fe;
    color: #7B7DFE;
}

.btn-edit {
    color: #28a745;
}

.btn-edit:hover {
    background: #e8f5e9;
    color: #28a745;
}

.btn-finish {
    color: #F6A228;
}

.btn-finish:hover {
    background: #fff3cd;
    color: #F6A228;
}

.btn-duplicate {
    color: #000;
}

.btn-duplicate:hover {
    background: #f5f5f5;
    color: #495057;
}

.btn-delete {
    color: #dc3545;
}

.btn-delete:hover {
    background: #ffebee;
    color: #dc3545;
}

/* Responsive */
@media (max-width: 1200px) {
    .seo-tests-table {
        font-size: 13px;
    }
    
    .seo-tests-table th,
    .seo-tests-table td {
        padding: 12px 16px;
    }
}

@media (max-width: 992px) {
    .seo-tests-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .seo-tests-list-container {
        padding: 15px;
    }
    
    .header-content h2 {
        font-size: 24px;
    }
    
    .btn-create-test {
        width: 100%;
        justify-content: center;
    }
}

