/* Projets Container */
.projets-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.projets-header {
    text-align: center;
    margin-bottom: 40px;
}

.projets-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.projets-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0;
}

/* Empty State */
.projets-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.projets-empty h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.projets-empty p {
    color: #7f8c8d;
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Table Container */
.projets-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e1e8ed;
}

.projets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.projets-table thead {
    background: #000;
    color: white;
}

.projets-table thead th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color:#d7d7d7;
    position: relative;
}

.projets-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.projets-table thead th.sortable:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sort-indicator {
    display: inline-flex;
    flex-direction: column;
    margin-left: 8px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.sort-arrow {
    font-size: 0.7rem;
    line-height: 0.6;
    color: #d7d7d7;
}

.sortable:hover .sort-indicator {
    opacity: 0.8;
}

.sortable[data-order="asc"] .sort-indicator .sort-up,
.sortable[data-order="desc"] .sort-indicator .sort-down {
    opacity: 1;
    color: #fff;
}

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

.projets-table tbody tr:hover {
    background-color: #f8f9ff;
}

.projets-table tbody tr:last-child {
    border-bottom: none;
}

.projets-table td {
    padding: 20px;
    vertical-align: middle;
}

/* Table Cells */
.projet-nom-container {
    position: relative;
    display: flex;
    align-items: center;
}

.projet-nom-text {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 120px;
    display: inline-block;
}

.projet-nom-text:hover {
    background-color: #f8f9ff;
    color: #667eea;
}

.projet-nom-input {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    border: 2px solid #667eea;
    border-radius: 4px;
    padding: 4px 8px;
    background: white;
    outline: none;
    min-width: 120px;
    font-family: inherit;
}

.projet-nom-input:focus {
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.projet-loading {
    margin-left: 8px;
    font-size: 1rem;
}

.badge-requetes {
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    min-width: 30px;
    text-align: center;
}

.projet-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Actions */
.projet-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-audit, .btn-restart-groupe {
    background-color: #000 !important;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    background: transparent;
}

.btn-audit:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.audit-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.btn-audit:hover .audit-icon {
    transform: scale(1.1);
}

.btn-restart-groupe {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-restart-groupe:hover {
    background-color: #f0f9ff;
    transform: translateY(-1px);
}

.btn-restart-groupe:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.restart-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346%) brightness(104%) contrast(97%);
}

.btn-restart-groupe:hover .restart-icon {
    transform: rotate(45deg) scale(1.1);
}

.btn-restart-groupe:disabled .restart-icon {
    filter: brightness(0) saturate(100%) invert(60%) sepia(8%) saturate(1090%) hue-rotate(169%) brightness(96%) contrast(87%);
}

.bin {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bin:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.bin::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M3 6l3 18h12l3-18h-18zm19-4v2h-20v-2h5.711c.9 0 1.631-1.099 1.631-2h5.316c0 .901.73 2 1.631 2h5.711z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Messages */
.projets-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.projets-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.projets-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal Customization */
#confirm-delete-projet .highlight {
    color: #e74c3c;
    font-weight: 600;
}

#confirm-restart-groupe .highlight {
    color: #667eea;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projets-container {
        padding: 15px;
    }
    
    .projets-header h2 {
        font-size: 1.6rem;
    }
    
    .projets-table-container {
        overflow-x: auto;
    }
    
    .projets-table {
        min-width: 600px;
    }
    
    .btn-audit,
    .btn-restart-groupe {
        width: 32px;
        height: 32px;
    }
    
    .audit-icon,
    .restart-icon {
        width: 20px;
        height: 20px;
    }
    
    .projets-table thead th,
    .projets-table td {
        padding: 12px 15px;
    }
    
    .projet-actions {
        gap: 8px;
    }
    
    .btn-audit {
        width: 32px;
        height: 32px;
    }
    
    .audit-icon {
        width: 20px;
        height: 20px;
    }
    
    .bin {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .projets-header h2 {
        font-size: 1.4rem;
    }
    
    .projets-header p {
        font-size: 1rem;
    }
    
    .projets-table thead th,
    .projets-table td {
        padding: 10px 12px;
    }
} 