/* ==========================================
   SIGNATURE EXTRACTOR
========================================== */

.signature-extractor-page .tool-page-title {
    font-size: 2.25rem;
    font-weight: 700;
}

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

/* ---------- Result frame ---------- */
.sg-result-frame {
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Checkerboard makes transparency obvious */
.sg-result-frame,
.sg-bg-checker {
    background: #f1f3f5;
    background-image:
        linear-gradient(45deg, #e0e4e8 25%, transparent 25%),
        linear-gradient(-45deg, #e0e4e8 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e0e4e8 75%),
        linear-gradient(-45deg, transparent 75%, #e0e4e8 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.sg-bg-white {
    background: #ffffff;
    background-image: none;
}

.sg-bg-dark {
    background: #263238;
    background-image: none;
}

#sgCanvas {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    display: block;
}

/* ---------- Ink swatches ---------- */
.sg-swatch {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    padding: 0;
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sg-swatch:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light, #60a5fa);
}

.sg-swatch.active {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

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

    #sgCanvas {
        max-height: 300px;
    }
}
