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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.upload-box h2 {
    color: #444;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.dropzone {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.dropzone:hover,
.dropzone.drag-over {
    border-color: #667eea;
    background: #f0f4ff;
}

.dropzone-content svg {
    color: #999;
    margin-bottom: 15px;
}

.dropzone-content p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.dropzone-content small {
    color: #999;
    font-size: 0.9em;
}

.file-list {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-item span {
    color: #333;
    font-size: 0.95em;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item button {
    background: #ff4757;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
}

.file-item button:hover {
    background: #ff3838;
}

.button-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e5e5e5;
}

#progress-section {
    margin-top: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #666;
    font-size: 1em;
}

#results-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

#results-section > h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.summary-card.success {
    background: #d4edda;
    border-color: #28a745;
}

.summary-card.warning {
    background: #fff3cd;
    border-color: #ffc107;
}

.summary-card.error {
    background: #f8d7da;
    border-color: #dc3545;
}

.card-number {
    font-size: 3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.card-label {
    font-size: 1em;
    color: #666;
}

.results-box {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: #fafafa;
}

.results-box h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.file-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.result-item-info {
    flex: 1;
}

.result-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.result-item-details {
    font-size: 0.9em;
    color: #666;
}

.download-btn {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background: #5568d3;
}

@media (max-width: 768px) {
    .upload-section {
        grid-template-columns: 1fr;
    }

    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 1.8em;
    }
}
