/* Webflow / Figma Style Dark Mode Visual Website Editor, Three.js WebGL & Interactive Electrical Modules CSS */

#ve-trigger-btn {
  position: fixed;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 100px;
  z-index: 999990;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

#ve-trigger-btn:hover {
  background: rgba(99, 102, 241, 0.9);
  color: #FFFFFF;
  border-color: #6366F1;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* Hover & Selection Highlights */
.ve-hovered {
  outline: 2px dashed #00F2FE !important;
  outline-offset: 2px !important;
  cursor: pointer !important;
}

.ve-selected {
  outline: 2px solid #8B5CF6 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3) !important;
}

.ve-editable-text {
  cursor: text !important;
}

/* Top Control Bar */
#ve-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 999995;
  color: #F8FAFC;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.ve-topbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ve-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #CBD5E1;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ve-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
}

.ve-btn-primary {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.ve-btn-ai {
  background: linear-gradient(135deg, #8B5CF6, #6366F1) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.ve-btn-danger {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #EF4444 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

/* 50% Larger Right Sidebar (570px Width) */
#ve-sidebar {
  position: fixed;
  top: 52px;
  right: 0;
  bottom: 0;
  width: 570px;
  background: rgba(15, 23, 42, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  z-index: 999994;
  padding: 24px;
  overflow-y: auto;
  color: #F8FAFC;
  font-family: 'Outfit', sans-serif;
  box-shadow: -15px 0 40px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Dedicated Tool View Tab Panels */
.ve-tool-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: ve-tab-fade 0.2s ease-out forwards;
}

@keyframes ve-tab-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Top Easy Navigation Bar */
.ve-nav-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #0B132B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 4px;
  overflow-x: auto;
}

.ve-nav-tab {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  color: #94A3B8;
  cursor: pointer;
  background: transparent;
  border: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.ve-nav-tab:hover {
  color: #FFFFFF;
  background: rgba(255,255,255,0.06);
}

.ve-nav-tab.active {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.ve-arrow-btn {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.ve-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Three.js WebGL & Interactive Electrical Styles */
.ve-3d-webgl-canvas {
  width: 100%;
  height: 380px;
  border-radius: 20px;
  background: #070C1E;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 10px 40px rgba(0, 242, 254, 0.2);
}

.ve-breaker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #070C1E;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px;
}

.ve-breaker-switch {
  background: #1C2541;
  border: 2px solid #334155;
  border-radius: 10px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.ve-breaker-switch.on {
  border-color: #10B981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.ve-breaker-switch.tripped {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.15);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.ve-flir-container {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}

.ve-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ve-sidebar-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #818CF8;
}

.ve-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ve-field-label {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
}

.ve-input {
  background: #0B132B;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: #FFFFFF;
  width: 140px;
  text-align: right;
}

/* Full-Screen 20 Templates Visual Gallery Modal */
#ve-templates-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(24px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  padding: 30px 40px;
  color: #F8FAFC;
  font-family: 'Outfit', sans-serif;
  overflow-y: auto;
}

.ve-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.ve-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ve-filter-btn {
  padding: 6px 16px;
  border-radius: 100px;
  background: #0B132B;
  border: 1px solid rgba(255,255,255,0.12);
  color: #94A3B8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.ve-filter-btn:hover, .ve-filter-btn.active {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #FFFFFF;
  border-color: #818CF8;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.ve-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.ve-gallery-card {
  background: #0B132B;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.ve-gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #00F2FE;
  box-shadow: 0 20px 50px rgba(0, 242, 254, 0.25);
}

.ve-gallery-preview-box {
  height: 160px;
  background: linear-gradient(135deg, #1C2541, #0B132B);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ve-gallery-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.ve-gallery-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.ve-gallery-desc {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.4;
}

.ve-gallery-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* Flex / Grid Group Buttons */
.ve-button-group {
  display: flex;
  gap: 6px;
}

.ve-group-btn {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  background: #0B132B;
  border: 1px solid rgba(255,255,255,0.1);
  color: #94A3B8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.ve-group-btn:hover, .ve-group-btn.active {
  background: #6366F1;
  color: #FFFFFF;
  border-color: #818CF8;
}

/* 3D Visual Effects Physics Classes */
.ve-3d-tilt {
  transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.ve-parallax {
  will-change: transform;
}

/* Gemini Imagen Studio Modal */
#ve-imagen-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(20px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: #F8FAFC;
  font-family: 'Outfit', sans-serif;
}

.ve-imagen-box {
  background: #1C2541;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 24px;
  width: 540px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Media Manager Grid */
.ve-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-height: 240px;
  overflow-y: auto;
}

.ve-media-card {
  background: #0B132B;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ve-media-card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}


/* STRAIGHT SECTION BOUNDARIES - ALL ANGULAR CUTS REMOVED */
section, main > section, .hero-section, .folding-light-section, .ve-section {
  clip-path: none !important;
  transform: none !important;
}
