/* ==========================================
   BATCH WATERMARK
========================================== */

.batch-watermark-page .tool-page-title {
    font-size: 2.25rem;
    font-weight: 700;
}

.batch-watermark-page .tool-page-description {
    font-size: 1.075rem;
    color: var(--gray-color, #6b7280);
    max-width: 780px;
    margin: 0 auto;
}

/* ---------- Preview ---------- */
.bw-preview-body {
    background: #f1f3f5;
    background-image:
        linear-gradient(45deg, #e4e7eb 25%, transparent 25%),
        linear-gradient(-45deg, #e4e7eb 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e4e7eb 75%),
        linear-gradient(-45deg, transparent 75%, #e4e7eb 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 1.25rem;
}

#bwCanvas {
    max-width: 100%;
    max-height: 520px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

/* ---------- Position grid ---------- */
.bw-position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-width: 160px;
}

.bw-position-grid button {
    aspect-ratio: 1 / 1;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.bw-position-grid button::after {
    content: '';
    position: absolute;
    inset: 30%;
    border-radius: 2px;
    background: #ced4da;
    transition: background 0.15s ease;
}

.bw-position-grid button:hover {
    border-color: var(--primary-light, #60a5fa);
}

.bw-position-grid button.active {
    border-color: var(--primary-color, #2563eb);
    background: rgba(37, 99, 235, 0.08);
}

.bw-position-grid button.active::after {
    background: var(--primary-color, #2563eb);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .batch-watermark-page .tool-page-title {
        font-size: 1.75rem;
    }

    .bw-preview-body {
        min-height: 300px;
    }

    #bwCanvas {
        max-height: 340px;
    }
}
