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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f7;
    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: 600;
    margin-bottom: 0.5rem;
}

.header p {
    color: #86868b;
    font-size: 1.1rem;
}

.upload-area {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upload-box {
    border: 2px dashed #86868b;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #0071e3;
    background-color: rgba(0, 113, 227, 0.05);
}

.upload-box img {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.upload-box .sub-text {
    color: #86868b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.compression-controls {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quality-control {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
}

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

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

.preview-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

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

.image-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.image-container img {
    max-width: 100%;
    height: auto;
}

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

.download-btn {
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.download-btn:hover {
    background: #0077ed;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .preview-container {
        flex-direction: column;
    }
    
    .container {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
} 