/* Reset et styles de base */
* {
    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;
    display: flex;
    flex-direction: column;
    color: #333;
}

/* Page de login */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
}

.login-box h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #333;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover:not(:disabled) {
    background: #5568d3;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 8px 16px;
    background: white;
    color: #667eea;
    border: 1px solid #667eea;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid #fcc;
}

/* Dashboard */
.dashboard-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.status-indicator {
    font-size: 18px;
}

.dashboard-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

/* ============================================
   UPLOAD SECTION - Phase 2
   ============================================ */

/* Upload Section */
.upload-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.upload-section h1 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #333;
}

.section-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Upload Area */
.upload-area {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.upload-hint {
    margin-top: 12px;
    color: #888;
    font-size: 13px;
}

/* File List */
.file-list-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}

.file-list-container h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #333;
}

.file-list {
    list-style: none;
    margin-bottom: 20px;
}

.file-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item:hover {
    border-color: #667eea;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    font-size: 20px;
}

.file-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.file-size {
    color: #888;
    font-size: 13px;
}

.btn-remove {
    background: transparent;
    color: #c33;
    border: 1px solid #c33;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: #c33;
    color: white;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

/* Processing Console */
.processing-console {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
}

.processing-console h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #333;
}

.console-output {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.status-item {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 4px solid transparent;
}

.status-item.validating {
    background: #fff8e1;
    border-left-color: #ffa726;
}

.status-item.processing {
    background: #e3f2fd;
    border-left-color: #42a5f5;
}

.status-item.success {
    background: #e8f5e9;
    border-left-color: #66bb6a;
}

.status-item.error {
    background: #ffebee;
    border-left-color: #ef5350;
}

.status-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.status-content {
    flex: 1;
}

.status-filename {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.status-message {
    color: #666;
    font-size: 13px;
    white-space: pre-line;
}

/* Responsive */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn-primary,
    .action-buttons .btn-secondary {
        width: 100%;
    }
}
