@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    user-select: none; /* Prevent text selection while dragging */
}

/* --- The Page (Canvas) --- */
.group\/page {
    /* Wrapper for page shadow and margins */
    margin: 0 auto 2rem auto;
}

/* --- Element Styles --- */
/* Elements are now absolutely positioned by JS */
.absolute {
    position: absolute;
    box-sizing: border-box;
}

/* Default state */
.border-transparent {
    border-color: transparent;
}

/* Hover state */
.hover\:border-blue-300:hover {
    border-color: #93c5fd; /* blue-300 */
    border-style: dashed;
    background-color: rgba(59, 130, 246, 0.05);
    cursor: grab;
}

/* Selected state */
.border-blue-500 {
    border-color: #3b82f6;
    border-style: solid;
    background-color: rgba(59, 130, 246, 0.05);
    cursor: move;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Resize Handle */
.resize-handle {
    width: 12px;
    height: 12px;
    background-color: #3b82f6;
    border: 2px solid white;
    border-radius: 2px;
    position: absolute;
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
    z-index: 51;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Delete Button */
.fa-times {
    pointer-events: none; /* Let click pass to parent div logic */
}

/* --- Scrollbars --- */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: #d1d5db; border-radius: 20px; }

/* --- UI Controls Active State --- */
.style-btn.active, .align-btn.active {
    background-color: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
    font-weight: 600;
}