* {
  box-sizing: border-box;
}

.shadow-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bento-card {
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.bento-card.col-span-2 {
  min-height: 400px;
}

.bento-card.row-span-2 {
  min-height: 400px;
}

.canvas-area {
  position: relative;
  background-image: 
    radial-gradient(circle, #E5E7EB 1px, transparent 1px);
  background-size: 24px 24px;
}

.grid-markers::before,
.grid-markers::after {
  content: '+';
  position: absolute;
  color: #D1D5DB;
  font-size: 12px;
  font-weight: 300;
}

.grid-markers::before {
  top: 20px;
  right: 20px;
}

.grid-markers::after {
  bottom: 20px;
  left: 20px;
}

.highlight-text {
  background: linear-gradient(120deg, #4F6BED 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse-highlight 2s ease-in-out infinite;
}

@keyframes pulse-highlight {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.floating-icon {
  animation: float 3s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
  animation-delay: 0.5s;
}

.floating-icon:nth-child(3) {
  animation-delay: 1s;
}

.floating-icon:nth-child(4) {
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.card-illustration {
  transition: transform 0.3s ease;
}

.bento-card:hover .card-illustration {
  transform: scale(1.1);
}

/* Connection lines effect */
.bento-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -12px;
  width: 8px;
  height: 8px;
  background: #4F6BED;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover::after {
  opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bento-card.col-span-2,
  .bento-card.row-span-2 {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 200px;
  }
  
  .canvas-area {
    padding: 1rem;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* Drag and drop styles */
.bento-card[draggable="true"] {
  cursor: grab;
}

.bento-card[draggable="true"]:active {
  cursor: grabbing;
}

/* Input focus styles */
input:focus, textarea:focus {
  outline: none;
}

/* Animation for new cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bento-card {
  animation: fadeInUp 0.4s ease-out;
}