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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1aa7ee;
    order: 1;
}

.step-indicator {
    display: flex;
    gap: 2rem;
    order: 2;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step.active {
    background: #1aa7ee;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 167, 238, 0.3);
}

.step:not(.active) {
    background: #f3f4f6;
    color: #6b7280;
}

.step:not(.active):hover {
    background: #e5e7eb;
    color: #374151;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.step.active .step-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.step:not(.active) .step-number {
    background: #d1d5db;
    color: #6b7280;
}

.step-label {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Step Container */
.step-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.step-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

/* Upload Section */
.upload-section {
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.upload-area:hover {
    border-color: #1aa7ee;
    background: #f0f9ff;
}

.upload-area.drag-over {
    border-color: #1aa7ee;
    background: #f0f9ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.upload-button {
    background: #1aa7ee;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-button:hover {
    background: #0ea5e9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 167, 238, 0.3);
}

/* Preview Section */
.preview-section {
    margin-bottom: 2rem;
}

.preview-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.preview-container {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

/* Confirmation Section */
.confirmation-section {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.data-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1aa7ee;
}

.confirmation-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.confirmation-text {
    color: #374151;
    font-weight: 500;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: #1aa7ee;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0ea5e9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 167, 238, 0.3);
}

.btn-primary:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-outline:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.btn-outline:disabled {
    color: #d1d5db;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Column List */
.column-list {
    max-height: 300px;
    overflow-y: auto;
}

.column-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.column-item label {
    font-weight: 500;
    color: #374151;
    flex: 1;
    margin-right: 1rem;
}

.column-input {
    flex: 2;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.column-input:focus {
    outline: none;
    border-color: #1aa7ee;
    box-shadow: 0 0 0 3px rgba(26, 167, 238, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row !important;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .step-indicator {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .step {
        padding: 0.5rem 0.75rem;
    }
    
    .step-label {
        display: none;
    }
    
    .step-container {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .data-summary {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .confirmation-actions {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .column-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .column-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .step-indicator {
        gap: 0.25rem;
    }
    
    .step {
        padding: 0.375rem 0.5rem;
    }
    
    .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
}