* {
    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;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 8px;
}

header p {
    color: #666;
    font-size: 14px;
}

.section {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: #999;
    margin-bottom: 16px;
}

.upload-text {
    color: #333;
    font-size: 16px;
    margin-bottom: 8px;
}

.upload-subtext {
    color: #999;
    font-size: 14px;
}

.progress-container {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.file-name {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.uploading {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.pending {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.processing {
    background: #e8f5e9;
    color: #388e3c;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.status-text {
    color: #666;
    font-size: 14px;
    text-align: center;
}

.result-container,
.error-container {
    text-align: center;
    padding: 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    color: #4caf50;
    margin-bottom: 20px;
}

.error-icon {
    width: 80px;
    height: 80px;
    color: #f44336;
    margin-bottom: 20px;
}

.result-container h2 {
    color: #333;
    margin-bottom: 8px;
}

.error-container h2 {
    color: #333;
    margin-bottom: 8px;
}

.result-container p,
.error-container p {
    color: #666;
    margin-bottom: 24px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    margin: 4px;
}

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

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

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

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

footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

footer p {
    color: #999;
    font-size: 12px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.processing .progress-fill {
    animation: pulse 1.5s ease-in-out infinite;
}
