/**
 * Migration Email - Styles CSS
 * Module Superadmin
 */

/* Container principal */
.migration-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.migration-page h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.migration-page h3 {
    margin: 0 0 15px 0;
    color: #444;
    font-size: 18px;
}

.migration-page .description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.migration-page code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

/* Section mot de passe */
.password-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.password-section label {
    font-weight: 600;
    white-space: nowrap;
    color: #333;
}

.migration-password-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 300px;
    max-width: 100%;
}

.migration-password-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Section options */
.options-section {
    margin: 20px 0;
    padding: 15px 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #856404;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Section actions */
.actions-section {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

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

.btn-secondary:hover {
    background: #545b62;
}

/* Section status */
.status-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.status-content {
    min-height: 80px;
}

.status-table,
.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 10px;
}

.status-table th,
.status-table td,
.results-table th,
.results-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.status-table th,
.results-table th {
    background: #e9ecef;
    font-weight: 600;
    color: #333;
}

.status-table tr:nth-child(even),
.results-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Section progression */
.progress-section {
    margin: 30px 0;
    padding: 20px;
    background: #e7f3ff;
    border: 1px solid #b6d4fe;
    border-radius: 8px;
}

.progress-bar-container {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
    border-radius: 12px;
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    color: #0c63e4;
}

.progress-log {
    max-height: 300px;
    overflow-y: auto;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.progress-log div {
    margin: 2px 0;
}

.log-info {
    color: #9cdcfe;
}

.log-success {
    color: #4ec9b0;
}

.log-warning {
    color: #dcdcaa;
}

.log-error {
    color: #f14c4c;
}

/* Section résultats */
.results-section {
    margin: 30px 0;
    padding: 20px;
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
}

/* Messages */
.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.error {
    background: #f8d7da;
    color: #842029;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c2c7;
}

.warning {
    background: #fff3cd;
    color: #664d03;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ffecb5;
    margin-top: 15px;
}

.info {
    background: #cff4fc;
    color: #055160;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #b6effb;
    margin-top: 15px;
}

.success {
    background: #d1e7dd;
    color: #0f5132;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #badbcc;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
}

/* Utilitaires */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
    .password-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .migration-password-input {
        width: 100%;
    }
    
    .actions-section {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
