/* Peak Form Editor CDN Styles */

/* Tailwind CSS Base Styles */
@import 'https://cdn.tailwindcss.com';

/* Custom Tailwind Configuration */
@layer base {
  html {
    font-family: 'Inter', system-ui, sans-serif;
  }
  
  * {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
  }
}

/* Medical Grade Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9; /* slate-100 */
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1; /* slate-300 */
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8; /* slate-400 */
}

.scrollbar-custom::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.scrollbar-custom::-webkit-scrollbar-track {
  background: #f1f5f9; 
}
.scrollbar-custom::-webkit-scrollbar-thumb {
  background: #cbd5e1; 
  border-radius: 4px;
}
.scrollbar-custom::-webkit-scrollbar-thumb:hover {
  background: #94a3b8; 
}

/* Form Editor Specific Styles */
.form-editor-canvas {
  min-height: 400px;
  background: linear-gradient(to right, #f8fafc 1px, transparent 1px),
              linear-gradient(to bottom, #f8fafc 1px, transparent 1px);
  background-size: 20px 20px;
}

.field-item {
  transition: all 0.2s ease;
}

.field-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.property-panel {
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
}

.sidebar-item {
  cursor: grab;
  transition: all 0.2s ease;
}

.sidebar-item:active {
  cursor: grabbing;
}

/* Animation Classes */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.2s ease-out;
}

/* Toast Notifications */
.toast-notification {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
