.image-tool-section {
    padding: 2rem 0;
    /* background: #f8f9fa; */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.image-tool-wrapper {
    /* background: #fff; */
    border-radius: 12px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    padding: 2rem;
}

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

.upload-area:hover,
.upload-area.drag-over {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    stroke: #6c757d;
    transition: stroke 0.3s ease;
}

.upload-area:hover .upload-icon {
    stroke: #007bff;
}

.upload-button {
    background: #007bff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.editor-area {
    margin-top: 2rem;
}

.preview-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.preview-container {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.image-preview {
    width: 100%;
    height: 300px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.controls-section {
    display: grid;
    gap: 2rem;
}

.dimension-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
}

.input-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: #007bff;
    outline: none;
}

.lock-aspect {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.lock-aspect:hover {
    background: #e9ecef;
}

.lock-aspect.active svg {
    stroke: #007bff;
}

.ratio-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.ratio-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ratio-btn:hover,
.ratio-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.primary-btn,
.secondary-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.primary-btn {
    background: #007bff;
    color: #fff;
}

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

.secondary-btn {
    background: #6c757d;
    color: #fff;
}

.secondary-btn:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
    .image-tool-wrapper {
        padding: 1rem;
    }
    
    .preview-section {
        grid-template-columns: 1fr;
    }
    
    .dimension-inputs {
        flex-direction: column;
    }
    
    .ratio-buttons {
        flex-wrap: wrap;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}