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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

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

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

header p {
    color: #7f8c8d;
}

/* Main Content Styles */
main {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* File Upload Section */
.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.file-upload {
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 300px;
}

.file-label:hover {
    background-color: #2980b9;
}

.upload-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.file-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    word-break: break-all;
}

.process-btn {
    padding: 0.8rem 2rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.process-btn:hover:not(:disabled) {
    background-color: #27ae60;
}

.process-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Processing Spinner */
.spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Section */
.results-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.result-header h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.order-number {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
}

.order-number span:first-child {
    color: #7f8c8d;
    margin-right: 0.5rem;
}

.order-number span:last-child {
    color: #e74c3c;
}

/* Warnings Section */
.warnings-section {
    margin-bottom: 1.5rem;
}

.warnings-section h3 {
    color: #e67e22;
    margin-bottom: 0.8rem;
}

.warnings-list {
    list-style-type: none;
}

.warnings-list li {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #fff9db;
    border-left: 3px solid #f39c12;
    border-radius: 2px;
}

.no-warnings {
    color: #7f8c8d;
}

/* Download Section */
.download-section {
    text-align: center;
    margin-top: 2rem;
}

.download-btn {
    padding: 0.8rem 2rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #2980b9;
}

.download-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Error Section */
.error-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #fdecea;
    border-left: 4px solid #e74c3c;
    border-radius: 2px;
}

.error-section h3 {
    color: #c0392b;
    margin-bottom: 0.5rem;
}

.error-message {
    color: #e74c3c;
}

/* Footer Styles */
footer {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-number {
        margin-top: 0.5rem;
    }
}
