: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: 40px auto;
    padding: 0 20px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.upload-area {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    border: 2px dashed #DEDEDE;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
}

.upload-icon {
    width: 48px;
    height: 48px;
    fill: var(--primary-color);
    margin-bottom: 16px;
}

.upload-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #0056b3;
}

.preview-container {
    display: flex;
    gap: 24px;
    margin-top: 40px;
}

.preview-box {
    flex: 1;
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-container {
    width: 100%;
    height: 300px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F8F8;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.controls {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quality-control {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

input[type="range"] {
    flex: 1;
    height: 4px;
    background: #DEDEDE;
    border-radius: 2px;
    outline: none;
}

.resize-control {
    background: #F8F8F8;
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.dimension-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.dimension-input input {
    width: 100px;
    padding: 8px;
    border: 1px solid #DEDEDE;
    border-radius: 6px;
    font-size: 14px;
}

.dimension-input span {
    color: #666;
    font-size: 14px;
}

.aspect-ratio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.aspect-ratio input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.aspect-ratio label {
    font-size: 14px;
    color: #666;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #0056b3;
} 