* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 2rem;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #764ba2;
    background: #f0f2ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-area p {
    color: #555;
    margin-bottom: 5px;
}

.or {
    color: #999;
    font-size: 0.9rem;
    margin: 10px 0;
}

.browse-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 5px;
}

#fileCount {
    color: #667eea;
    font-weight: 600;
}

.clear-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.clear-btn:hover {
    background: #ee5a5a;
}

.file-list-container {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
}

.file-list-container h3 {
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.file-list {
    list-style: none;
}

.file-list li {
    padding: 8px 12px;
    background: #f8f9ff;
    margin-bottom: 5px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-list li::before {
    content: '📄';
}

.download-btn {
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Scrollbar styling */
.file-list-container::-webkit-scrollbar {
    width: 6px;
}

.file-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.file-list-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 25px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
}
