.tool-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.upload-area.dragover {
    background-color: #f0f8ff;
    border-color: #007bff;
}

.upload-area i {
    font-size: 3rem;
    color: #666;
    margin-bottom: 1rem;
}

.upload-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

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

.controls.hidden {
    display: none;
}

.preview-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-box {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.image-wrapper {
    width: 100%;
    height: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
    margin: 1rem 0;
}

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

.settings {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.settings label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.settings input[type="range"] {
    width: 100%;
    margin-bottom: 1.5rem;
}

.settings input[type="number"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 200px;
}

.primary-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.primary-btn:hover {
    background-color: #218838;
}

@media (max-width: 768px) {
    .preview-container {
        flex-direction: column;
    }
}
