.tool-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }
}

.controls-panel {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
}

.controls-panel h3 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.upload-area {
    margin-bottom: 1rem;
}

.upload-area label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.file-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-main);
}

.preview-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
}

/* Slider Specifics */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-height: 300px;
}

.slider-container img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

#imgBase {
    width: 100%;
    height: auto;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

#imgOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: 100%;
    margin-left: -20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    z-index: 10;
}

.handle-line {
    position: absolute;
    width: 4px;
    height: 100%;
    background: white;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.handle-button {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 11;
}

.label-before, .label-after {
    position: absolute;
    bottom: 15px;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    z-index: 5;
}

.label-before {
    left: 15px;
}

.label-after {
    right: 15px;
}

.mt-4 {
    margin-top: 2rem;
}

.seo-content ul, .seo-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.seo-content li {
    margin-bottom: 0.5rem;
}

.seo-content h2, .seo-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

body, html { overflow-x: hidden; margin: 0; padding: 0; }
