/* Shape Library Styles */

/* Hide on mobile - use dropdown instead */
@media (max-width: 768px) {
    .shape-targets,
    .shape-palette,
    .shape-category,
    .shape-grid,
    .shape-item,
    .control-panel .section-content .shape-targets,
    .control-panel .section-content .shape-palette {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

.shape-targets {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.shape-target {
    flex: 1;
    background: var(--input-bg);
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    transition: all 0.2s;
}

.shape-target.drag-over {
    border-color: var(--primary-color);
    background: rgba(0, 255, 255, 0.1);
}

.target-label {
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.8;
}

.target-preview {
    width: 48px;
    height: 48px;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.target-hint {
    font-size: 9px;
    opacity: 0.6;
}

.shape-palette {
    max-height: 200px;
    overflow-y: auto;
}

.shape-category {
    margin-bottom: 10px;
}

.shape-category h3 {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    opacity: 0.7;
}

.shape-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.shape-item {
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 6px;
    cursor: grab;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shape-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.shape-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.shape-item canvas {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
}

.shape-item-name {
    font-size: 10px;
    font-weight: 500;
}

/* Custom scrollbar for shape palette */
.shape-palette::-webkit-scrollbar {
    width: 8px;
}

.shape-palette::-webkit-scrollbar-track {
    background: var(--panel-bg);
}

.shape-palette::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.shape-palette::-webkit-scrollbar-thumb:hover {
    background: #444;
}
