/* Watermark Image Specific Styles */
.editor-area {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.options-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.options-panel h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.unit-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.tab-link {
    flex: 1;
    padding: 0.8rem;
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tab-link.active {
    background: var(--primary-color);
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

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

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.file-name-display {
    font-size: 0.8rem;
    color: var(--text-color-light);
    margin-top: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.options-panel hr {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 1.5rem 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 40px;
    background-color: transparent;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch {
    border-radius: 6px;
    border: none;
}

input[type="color"]::-moz-color-swatch {
    border-radius: 6px;
    border: none;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    border-radius: 10px;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.action-buttons {
    margin-top: 2rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color 0.3s ease;
    margin-top: 1rem;
    display: block;
    text-align: center;
}

.btn-link:hover {
    color: var(--primary-color);
}


/* Preview Panel */
.preview-panel {
    width: 100%;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    border: 1px solid var(--card-border);
}

#preview-canvas {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: grab;
}

#preview-canvas:active {
    cursor: grabbing;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media screen and (max-width: 900px) {
    .editor-area {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        grid-row: 1;
    }

    .options-panel {
        position: static;
        margin-top: 2rem;
    }
}