* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.step {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    background: #e9ecef;
    color: #6c757d;
}

.step.active {
    background: #667eea;
    color: white;
}

.step-arrow {
    color: #999;
    font-weight: bold;
}

main {
    min-height: 500px;
}

.step-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.browser-section h2, .confirmation-section h2, .transfer-progress h2, .transfer-results h2 {
    color: #333;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
    padding-left: 15px;
}

.selected-info {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.selected-info .label {
    font-weight: 500;
    color: #0d47a1;
}

.selected-info .path-display {
    background: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.browser-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.current-path {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    font-family: monospace;	
}

.btn-back {
    background: #6c757d;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-back:hover {
    background: #5a6268;
}

.directories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.directory-card {
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.directory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.directory-card.has-images {
    background: #e8f5e9;
    border-color: #4caf50;
}

.directory-card.selected {
    border-color: #667eea;
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);	
}

.directory-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: #333;
}

.directory-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.directory-name {
    font-weight: 500;
    text-align: center;
    word-break: break-word;
}

.directory-badge {
    margin-top: 8px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #4caf50;
    color: white;
}

.btn-select-dir {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #667eea;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.btn-select-dir:hover {
    background: #5a67d8;
}

.no-directories {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
	
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-next, .btn-transfer, .btn-new-transfer, .btn-home {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-next {
    background: #667eea;
    color: white;
}

.btn-next:hover:not(:disabled) {
    background: #5a67d8;
}

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

.btn-transfer {
    background: #17a2b8;
    color: white;
}

.btn-transfer:hover {
    background: #138496;
}

.btn-new-transfer {
    background: #28a745;
    color: white;
}

.btn-new-transfer:hover {
    background: #218838;
}

.btn-home {
    background: #6c757d;
    color: white;
}

.btn-home:hover {
    background: #5a6268;
}

/* Logs */
.logs-container {
    margin-top: 25px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.logs-container h3 {
    color: #333;
    margin-bottom: 15px;
}

.logs-scroll {
    max-height: 200px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.log-entry {
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.log-entry.info {
    color: #0066cc;
    background: #e3f2fd;
}

.log-entry.success {
    color: #155724;
    background: #d4edda;
}

.log-entry.warning {
    color: #856404;
    background: #fff3cd;
}

.log-entry.error {
    color: #721c24;
    background: #f8d7da;
}

/* Confirmation */
.confirm-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.confirm-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.confirm-item:last-child {
    border-bottom: none;
}

.confirm-item .label {
    font-weight: 500;
    color: #555;
    width: 150px;
    flex-shrink: 0;
}

.confirm-item .value {
    color: #333;
    font-weight: 500;
    word-break: break-all;
}


/* Transfert progress */
.transfer-progress h2 {
    color: #333;
    margin-bottom: 20px;
}

.progress-info {
    margin-bottom: 20px;
}

.progress-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.progress-stats span {
    font-size: 14px;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.progress-stats .success {
    color: #28a745;
}

.progress-stats .warning {
    color: #ffc107;
}

.progress-stats .error {
    color: #dc3545;
}

.progress-bar-container {
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.transfer-logs {
    max-height: 400px;
    overflow-y: auto;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.transfer-logs .log-entry {
    margin: 3px 0;
    padding: 3px 8px;
    border-radius: 3px;
}

.transfer-logs .log-entry.info {
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.1);
}

.transfer-logs .log-entry.success {
    color: #81c784;
    background: rgba(129, 199, 132, 0.1);
}

.transfer-logs .log-entry.warning {
    color: #ffb74d;
    background: rgba(255, 183, 77, 0.1);
}

.transfer-logs .log-entry.error {
    color: #e57373;
    background: rgba(229, 115, 115, 0.1);
}

/* Résultats */
.transfer-results h2 {
    color: #333;
    margin-bottom: 20px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.stat-item.success {
    background: #d4edda;
}

.stat-item.warning {
    background: #fff3cd;
}

.stat-item.error {
    background: #f8d7da;
}

.result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Conflits */
.conflict-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.conflict-warning h3 {
    color: #856404;
    margin-bottom: 10px;
}

.conflict-warning p {
    color: #856404;
    margin-bottom: 15px;
}

.conflict-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-overwrite {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-overwrite:hover {
    background: #c82333;
}

.btn-skip {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-skip:hover {
    background: #5a6268;
}

.conflict-list {
    max-height: 200px;
    overflow-y: auto;
}

.conflict-item {
    padding: 5px 10px;
    background: white;
    margin: 3px 0;
    border-radius: 4px;
    font-size: 13px;
}

footer {
    margin-top: 30px;
    text-align: center;
    color: white;
    font-size: 12px;
    opacity: 0.8;
    padding: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .directories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .step-indicator {
        font-size: 12px;
    }
    
    .step {
        padding: 5px 12px;
    }
    
    .progress-stats {
        gap: 10px;
    }
    
    .progress-stats span {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .result-stats {
        grid-template-columns: 1fr 1fr;
    }
	
    .confirm-item {
        flex-direction: column;
    }
    
    .confirm-item .label {
        width: auto;
    }
	
}