/* =====================================================
   Shape Effects, Text Formatting, Selection UI
===================================================== */

/* ═══════════════════════════════════════════════════════════════
   FORM CONTROLS (Global – canvas inputs, modals)
═══════════════════════════════════════════════════════════════ */
select,
input[type="number"],
input[type="text"],
textarea {
    border: 1px solid var(--border-2);
    border-radius: 6px;
    padding: 6px 10px;
    font-family: var(--font);
    font-size: 13px;
    background: white;
    color: var(--text);
}

select:focus,
input:focus,
textarea:focus {
    border-color: var(--blue);
    outline: none;
}

input[type="color"] {
    width: 36px;
    height: 28px;
    border: 1px solid var(--border-2);
    border-radius: 5px;
    padding: 1px;
    cursor: pointer;
}

input[type="range"] {
    accent-color: var(--blue);
}

input[type="checkbox"] {
    accent-color: var(--blue);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL
═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-2);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════════
   SELECTION
═══════════════════════════════════════════════════════════════ */
.selection-rect {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    border: 1.5px dashed;
}

.selection-rect.blue {
    background: rgba(37, 99, 235, .08);
    border-color: var(--blue);
}

.selection-rect.green {
    background: rgba(34, 197, 94, .08);
    border-color: #22c55e;
}
