/* Styles pour la page d'indexation révisée */

/* Import des styles principaux */
@import url('main.css');

/*Masquage de fonction*/
.status-filters,
.translation-stats-summary,
.column-status,
.column-percentage,
.column-strings {
    display: none !important;
}


.tricot-indexation-options{

   background-image: url("../images/vagues-bg.svg");
    background-position: center right;
    background-size: contain;
    background-repeat: no-repeat;
}

.tricot-indexation-options .card-content {
    display: flex;
    gap: 50px;
}

.tricot-indexation-options .card-content .col{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 300px;
}


.indexation-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.progress-container {
    margin-top: 30px;
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-stats {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.progress-details {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.progress-details p {
    margin: 5px 0;
    font-size: 14px;
}

.crawl-log-container {
    margin-top: 20px;
}

#crawl-log {
    max-height: 300px;
    overflow-y: auto;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
}

.log-entry {
    margin-bottom: 5px;
    padding: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry.success {
    color: var(--success-color);
}

.log-entry.error {
    color: var(--error-color);
}

.log-entry.info {
    color: var(--text-light);
}

.languages-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    background-color: var(--bg-light);
    padding: 10px;
    border-radius: 5px;
}

.languages-group label {
    display: flex;
    align-items: center;
    min-width: 120px;
}

.languages-group input[type="checkbox"] {
    margin-right: 8px;
}

/* Styles pour les lignes du tableau */
.complete-row {
    background-color: rgba(102, 187, 106, 0.1);
}

.incomplete-row {
    background-color: rgba(255, 167, 38, 0.1);
}

.error-row {
    background-color: rgba(239, 83, 80, 0.1);
}

/* Styles pour les badges de statut */
.status-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-complete {
    background-color: rgba(102, 187, 106, 0.2);
    color: #2e7d32;
}

.status-incomplete {
    background-color: rgba(255, 167, 38, 0.2);
    color: #e65100;
}

.status-error {
    background-color: rgba(239, 83, 80, 0.2);
    color: #c62828;
}

/* Style pour la barre de pourcentage */
.percentage-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.percentage-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(to right, #ff9800, #4caf50);
    transition: width 0.3s ease;
}

/* Personnalisation de la barre selon le taux */
tr.complete-row .percentage-bar {
    background: linear-gradient(to right, #2e7d32, #4caf50);
}

tr.incomplete-row .percentage-bar {
    background: linear-gradient(to right, #ff9800, #ffc107);
}

tr.error-row .percentage-bar {
    background: linear-gradient(to right, #d32f2f, #f44336);
}

.percentage-text {
    font-size: 13px;
    font-weight: 500;
}

/* Style pour les indicateurs de chaînes validées */
.strings-count {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style pour la colonne d'URL */
.url-cell {
    word-break: break-word;
    white-space: normal;
}

/* Style pour les icônes d'action */
.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    margin: 0 2px;
    padding: 0;
    transition: all 0.2s ease;
}

.action-icon:hover {
    background-color: rgba(33, 77, 65, 0.1);
    color: var(--primary-color);
}

.action-icon i {
    font-size: 18px;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .status-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .column-date, .column-strings {
        display: none;
    }
    
    .indexation-actions {
        flex-direction: column;
    }
    
    .indexation-actions button {
        width: 100%;
    }
}

/* Tableau d'état des traductions - AJUSTÉ POUR PRENDRE TOUTE LA LARGEUR */
.translation-status-card {
    width: 100%;
    margin-top: 30px;
}

.tricot-table-container {
    width: 100%;
    overflow-x: auto;
}

#translation-status-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

/* En-têtes du tableau - AJUSTÉS */
#translation-status-table th {
    padding: 12px 8px;
    text-align: left;
    background-color: var(--bg-light);
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

/* Cellules du tableau - AJUSTÉES */
#translation-status-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

/* État vide - AJUSTÉ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    width: 100%;
}

.empty-state i {
    font-size: 48px;
    color: #cfd8dc;
    margin-bottom: 20px;
}

/* Définition des largeurs de colonnes spécifiques pour le tableau d'indexation */
#translation-status-table th.column-url, 
#translation-status-table td.column-url {
    width: 35%;
}

#translation-status-table th.column-language, 
#translation-status-table td.column-language {
    width: 15%;
}

#translation-status-table th.column-type, 
#translation-status-table td.column-type {
    width: 15%;
}

#translation-status-table th.column-date, 
#translation-status-table td.column-date {
    width: 20%;
    white-space: nowrap;
}

#translation-status-table th.column-actions, 
#translation-status-table td.column-actions {
    width: 15%;
    text-align: center;
}

/* Boîte d'information */
.info-box {
    background-color: #e8f4fd;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.info-box h4 {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 10px;
    color: #0d47a1;
    font-size: 16px;
}

.info-box h4 i {
    margin-right: 8px;
    color: #2196F3;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 5px;
    font-size: 14px;
}

.info-box strong {
    color: #0d47a1;
}

/* Ajout des styles pour le message d'état vide */
.no-results {
    padding: 40px 0;
    text-align: center;
    width: 100%;
}