/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #dadada 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #ff0000, #ff0000);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.upload-section {
    padding: 40px;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 30px;
}

#excelFile {
    display: none;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 3px dashed #ddd;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.file-input-label:hover {
    border-color: #ff0000;
    background: #f0f8f0;
    transform: translateY(-2px);
}

.file-input-label.file-selected {
    border-color: #ff0000;
    background: #e8f5e8;
}

.upload-icon, .process-icon, .download-icon, .error-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-right: 10px;
}

.file-text {
    font-size: 1.1rem;
    color: #666;
}

.file-selected .file-text {
    color: #ff0000;
    font-weight: 500;
}

.process-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff0000, #ff0000);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.process-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.process-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.progress-section {
    padding: 40px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ff0000);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-text {
    color: #666;
    font-size: 1.1rem;
}

.results-section {
    padding: 40px;
    background: #f8f9fa;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff0000;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-section {
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(33, 150, 243, 0.3);
}

.error-section {
    padding: 40px;
    text-align: center;
}

.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #ffebee;
    border: 2px solid #f44336;
    border-radius: 10px;
    color: #c62828;
}

.error-icon {
    width: 24px;
    height: 24px;
    fill: #f44336;
    margin-right: 10px;
}

.processing {
    pointer-events: none;
    opacity: 0.7;
}

.processing .process-btn {
    background: #ccc;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .upload-section, .progress-section, .results-section, .error-section {
        padding: 20px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}