/* styles.css */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    width: 100%;
    max-width: 600px;
}

h1 {
    color: #2563eb;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.upload-box {
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    background: #f8fafc;
}

.upload-box:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

#file {
    display: none;
}

.file-label {
    cursor: pointer;
    color: #2563eb;
    font-weight: 500;
}

.preview {
    margin-top: 1rem;
    font-size: 0.9em;
    color: #64748b;
}

.compression-options {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    margin: 2rem 0;
}

.option-card {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.option-card.active {
    background: #dbeafe;
    border-color: #2563eb;
}

button {
    width: 100%;
    padding: 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #1d4ed8;
}

.loading-container {
    display: none;
    margin-top: 2rem;
    text-align: center;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    width: 45%;
    height: 100%;
    background: #2563eb;
    transition: width 0.3s;
    animation: progress-pulse 1.5s infinite;
}

@keyframes progress-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}