.header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 15px;
    font-size: 28px;
    color: #fff;
    text-decoration: none;
}

.upload-area {
    margin-bottom: 20px;
}

.upload-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:active {
    transform: scale(0.98);
}

.upload-icon {
    margin-bottom: 10px;
}

.upload-box p {
    font-size: 16px;
    color: #333;
}

.sub-text {
    font-size: 13px !important;
    color: #999 !important;
    margin-top: 8px;
}

.settings {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.settings h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.setting-item span {
    color: #667eea;
    font-weight: 500;
}

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

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
}

select {
    width: 100%;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
}

.compress-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.compress-btn:active {
    opacity: 0.8;
}

.compress-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.result-area {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.result-area h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
}

.preview-box {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

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

.preview-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.preview-item img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 8px;
}

.size-info {
    font-size: 12px !important;
    color: #999 !important;
    margin-top: 8px;
}

.info-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.info-text span {
    color: #667eea;
    font-weight: 500;
}

.download-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 12px;
}

.reset-btn {
    width: 100%;
    padding: 14px;
    border: 1px solid #667eea;
    border-radius: 8px;
    background: #fff;
    color: #667eea;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}