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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Upload Container */
.upload-container {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-container:hover {
    border-color: #333;
    background: #f0f0f0;
}

.upload-container.dragover {
    border-color: #333;
    background: #f0f0f0;
    transform: scale(1.01);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.upload-container h2 {
    color: #444;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

input[type="file"] {
    display: none;
}

/* Buttons */
.upload-btn {
    background: #333;
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    margin-top: 10px;
}

.upload-btn:hover {
    background: #555;
}

.upload-btn:active {
    transform: scale(0.98);
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.upload-btn.primary {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: 18px;
    font-size: 1.2rem;
}

.btn-loader {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.file-name {
    margin-top: 20px;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

/* Status Messages */
.status-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

.status {
    padding: 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #4caf50;
}

.error {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #f44336;
}

.processing {
    background: #e3f2fd;
    color: #1565c0;
    border: 2px solid #2196f3;
}

/* Footer */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .upload-container {
        padding: 40px 20px;
    }
    
    .upload-container h2 {
        font-size: 1.2rem;
    }
}
