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

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

.container {
    max-width: 800px;
    margin: 0 auto;
}

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

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.stats-bar {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
}

.progress-stat {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-stat .stat-label {
    display: block;
    font-size: 0.85em;
    color: #6b7280;
    margin-bottom: 5px;
    font-weight: 500;
}

.progress-stat .stat-value {
    display: block;
    font-size: 1.1em;
    font-weight: 700;
    color: #2563eb;
}

.upload-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.file-drop-area {
    border: 3px dashed #667eea;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-drop-area:hover {
    border-color: #764ba2;
    background: #f8f9ff;
}

.file-drop-area.drag-over {
    border-color: #764ba2;
    background: #f0f2ff;
}

.upload-icon {
    color: #667eea;
    margin-bottom: 15px;
}

.file-drop-text {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 10px;
}

#fileInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    pointer-events: none;
}

.file-name {
    color: #667eea;
    font-weight: bold;
    margin-top: 10px;
    min-height: 20px;
}

.options {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 8px;
}

.options h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.option-group {
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1em;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

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

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

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

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.progress-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e5e7eb;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

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

.progress-text {
    text-align: center;
    color: #666;
    font-size: 1.1em;
}

.result-section,
.error-section {
    margin-top: 20px;
}

.result-card,
.error-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.result-card h3 {
    color: #10b981;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.error-card h3 {
    color: #ef4444;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.result-info {
    margin: 20px 0;
    text-align: left;
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
}

.result-info p {
    margin: 10px 0;
    font-size: 1.05em;
}

#errorMessage {
    color: #ef4444;
    margin: 20px 0;
    font-size: 1.1em;
}

/* Footer - unified styling across pages */
.app-footer {
    background: transparent;
    border-top: 0;
    padding: 20px 0 0;
}

.footer-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.version {
    color: #9ca3af;
    font-size: 12px;
}

.footer-link { line-height: 1.2; display: inline-flex; align-items: center; }
.footer-sep { color: #9ca3af; display: inline-flex; align-items: center; padding: 0 2px; }

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .upload-section {
        padding: 20px;
    }
    
    .file-drop-area {
        padding: 30px 20px;
    }
}

