:root {
    --primary-color: #007AFF;
    --background-color: #F5F5F7;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--background-color);
    color: #1D1D1F;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

header p {
    color: #86868B;
}

.upload-section {
    margin-bottom: 2rem;
}

.upload-area {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    border: 2px dashed #DEDEDE;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #F5F5F7;
}

.upload-content {
    color: #86868B;
}

.upload-icon {
    fill: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-hint {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.preview-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.preview-box {
    text-align: center;
}

.preview-box h3 {
    margin-bottom: 1rem;
}

.image-container {
    aspect-ratio: 16/9;
    background: #F5F5F7;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.controls {
    border-top: 1px solid #DEDEDE;
    padding-top: 2rem;
}

.quality-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: #DEDEDE;
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.download-btn:hover {
    background: #0056b3;
}

.file-info {
    color: #86868B;
    font-size: 0.9rem;
} 