body {
   box-sizing: border-box;
}

.drag-over {
   background-color: #e0f2fe !important;
   border: 2px dashed #0284c7 !important;
}

.dragging {
   opacity: 0.5;
   transform: rotate(5deg);
}

.component-item {
   transition: all 0.2s ease;
   cursor: grab;
}

.component-item:active {
   cursor: grabbing;
}

.component-item:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.canvas-item {
   border: 2px solid transparent;
   transition: all 0.2s ease;
   cursor: pointer;
}

.canvas-item:hover {
   border-color: #3b82f6;
   background-color: rgba(59, 130, 246, 0.05);
}

.canvas-item.selected {
   border-color: #ef4444 !important;
   background-color: rgba(239, 68, 68, 0.05) !important;
}

.code-preview {
   font-family: 'Courier New', monospace;
   font-size: 12px;
   line-height: 1.4;
}

#canvas {
   min-height: 400px;
}

.footer {
   display: flex;
   align-items:center;
   justify-content: center;
   text-align: center;
   line-height: 1.6;
   color: #6b7280;
   padding: 1.25rem 0.75rem;
}
.footer a {
   color: #3b82f6;
   text-decoration: none;
}
.footer a:hover {
   text-decoration: underline;
}

.toolsnav {
   display: grid;
   margin: 0 auto;
   max-width:750px;
   padding: 1.25rem 0.75rem;
   grid-template-columns: 1fr 1fr 1fr 1fr;
   column-gap: 10px;
   place-content: center;
   justify-content: center;
}