@import "tailwindcss";

@theme {
  /* Define all Tailwind default colors explicitly */
  --color-indigo-50: #eef2ff;
  --color-indigo-100: #e0e7ff;
  --color-indigo-200: #c7d2fe;
  --color-indigo-300: #a5b4fc;
  --color-indigo-400: #818cf8;
  --color-indigo-500: #6366f1;
  --color-indigo-600: #4f46e5;
  --color-indigo-700: #4338ca;
  --color-indigo-800: #3730a3;
  --color-indigo-900: #312e81;

  --color-violet-50: #f5f3ff;
  --color-violet-100: #ede9fe;
  --color-violet-200: #ddd6fe;
  --color-violet-300: #c4b5fd;
  --color-violet-400: #a78bfa;
  --color-violet-500: #8b5cf6;
  --color-violet-600: #7c3aed;
  --color-violet-700: #6d28d9;
  --color-violet-800: #5b21b6;
  --color-violet-900: #4c1d95;

  --color-pink-50: #fdf2f8;
  --color-pink-100: #fce7f3;
  --color-pink-200: #fbcfe8;
  --color-pink-300: #f9a8d4;
  --color-pink-400: #f472b6;
  --color-pink-500: #ec4899;
  --color-pink-600: #db2777;
  --color-pink-700: #be185d;
  --color-pink-800: #9f1239;
  --color-pink-900: #831843;

  --color-blue-50: #eff6ff;
  --color-blue-100: #dbeafe;
  --color-blue-200: #bfdbfe;
  --color-blue-300: #93c5fd;
  --color-blue-400: #60a5fa;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-blue-700: #1d4ed8;
  --color-blue-800: #1e40af;
  --color-blue-900: #1e3a8a;

  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
}
/* Website Editor Styles */

/* Hide top navigation for full editor experience */
nav.bg-white.border-b.border-gray-200 {
  display: none !important;
}

body {
  overflow: hidden;
}

/* Ensure sections flow seamlessly */
.editor-container {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
}

/* Remove margins from section containers */
.section-container {
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  transition: border 0.2s ease;
  border: 1px solid transparent;
}

.section-container:hover {
  border: 1px solid transparent;
}

/* Keep content styles but remove vertical margins between sections */
.section-content {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Remove border-radius from section's outer container */
.section-content > div:first-child {
  border-radius: 0 !important;
}

/* Remove margins between sections */
.section-container + .section-container {
  margin-top: 0 !important;
}

/* Ensure add section buttons don't create gaps */
.add-section-between {
  margin: 0 !important;
  height: 1px !important;
  position: relative;
  overflow: visible;
  background: transparent;
  transition: background 0.2s ease;
}

/* Show line on hover */
.add-section-between:hover {
  background: rgba(59, 130, 246, 0.2);
}

/* Add section button styling */
.add-section-btn {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  opacity: 0;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Show add button on hover */
.add-section-between:hover .add-section-btn {
  opacity: 1;
}

/* Drag and drop styles */
.drag-over {
  background-color: rgba(59, 130, 246, 0.05);
  border: 2px dashed #3b82f6;
}

.drop-indicator {
  transition: all 0.2s ease;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Element hover controls */
.element-controls {
  z-index: 10;
}

.edit-element:hover {
  background-color: #1d4ed8;
}

/* Fix editing overlay */
.editing {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  background-color: rgba(59, 130, 246, 0.1) !important;
}

/* Element wrapper controls - Default hidden state */
.element-wrapper > .element-controls,
.element-wrapper > .drag-handle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
}

/* Force better line-height for all headings */
.section-content h1,
.section-content h2,
.section-content h3,
.section-content h4,
.section-content h5,
.section-content h6 {
  line-height: 1.3 !important;
}

/* Override Tailwind's text-5xl line-height */
.section-content .text-5xl,
.section-content .text-4xl {
  line-height: 1.3 !important;
}

/* Fix section controls visibility and interaction */
.section-controls {
  z-index: 9999 !important;
  pointer-events: auto !important;
}

.section-controls button {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Fix inline edit overlay to not block controls */
.section-container .absolute.inset-0.pointer-events-none {
  z-index: 1 !important;
}

/* Ensure editable elements are clickable */
.editable-element {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
}

.editable-element:hover {
  outline: 1px solid rgba(59, 130, 246, 0.8) !important;
}

/* Drag handle styling - removed, using element-wrapper rules instead */

/* Hide controls from nested elements by default */
.column-dropzone .element-wrapper > .drag-handle,
.column-dropzone .element-wrapper > .element-controls {
  opacity: 0 !important;
  pointer-events: none;
}

/* Show controls only on direct element hover */
.column-dropzone .element-wrapper:hover > .drag-handle,
.column-dropzone .element-wrapper:hover > .element-controls {
  opacity: 1 !important;
  pointer-events: auto;
}

/* Remove center image controls */
.image-element .image-placeholder {
  position: relative;
}

/* Ensure icons are visible */
.element-controls button svg {
  display: block;
  width: 12px;
  height: 12px;
}

/* Add section button styling - invisible by default */
.add-section-between .add-section-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: transparent;
  transition: all 0.2s ease;
}

.add-section-between:hover .add-section-line {
  background: #3b82f6;
}

.add-section-between .add-section-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

/* Element wrapper specific hover - show controls only on individual element hover */
.element-wrapper {
  position: relative;
}

/* Show controls only when hovering the specific element */
.element-wrapper:hover > .element-controls,
.element-wrapper:hover > .drag-handle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Section thumbnail styles */
.section-thumbnail {
  transition: all 0.2s ease;
}

.section-thumbnail:hover {
  transform: translateX(2px);
}

.section-thumbnail.active {
  border-left: 4px solid #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
