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

body {
    background-color: #f5f5f7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 1000px;
    width: 100%;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.upload-area:hover {
    background-color: rgba(0, 122, 255, 0.05);
}

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

.upload-area p {
    color: #666;
    font-size: 16px;
}

.preview-area {
    margin-top: 30px;
}

.image-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.original, .compressed {
    text-align: center;
}

.original img, .compressed img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

.controls {
    background: #f5f5f7;
    padding: 20px;
    border-radius: 12px;
}

.controls label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

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

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #007AFF;
    border-radius: 50%;
    cursor: pointer;
}

.download-btn {
    background: #007AFF;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.upload-hint {
    color: #999;
    font-size: 14px;
    margin-top: 8px;
}

.control-group {
    margin-bottom: 15px;
}

select, input[type="number"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.download-btn.secondary {
    background: #f5f5f7;
    color: #007AFF;
    border: 1px solid #007AFF;
    margin-left: 10px;
}

.download-btn.secondary:hover {
    background: #e5e5ea;
}

.image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-item {
    background: #f5f5f7;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.image-item img {
    max-width: 100%;
    border-radius: 4px;
} 