/* VRIXA Sites - Visual Website Builder Stylesheet */
.builder-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: #090d16;
}

.builder-sidebar {
  width: 320px;
  background: #111827;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.block-item {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.block-item:hover {
  border-color: #38bdf8;
  background: #334155;
}
.block-icon {
  font-size: 1.25rem;
  color: #38bdf8;
}

.builder-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0b0f19;
  position: relative;
}

.builder-topbar {
  height: 60px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 10;
}

.device-switcher {
  display: flex;
  background: #1e293b;
  border-radius: 6px;
  padding: 2px;
}
.device-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
}
.device-btn.active {
  background: #0284c7;
  color: #fff;
}

.canvas-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: auto;
}

.canvas-frame-wrapper {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  transition: width 0.3s ease;
  height: 100%;
  overflow: hidden;
  display: flex;
}

.canvas-frame-wrapper.desktop { width: 100%; }
.canvas-frame-wrapper.tablet { width: 768px; }
.canvas-frame-wrapper.mobile { width: 375px; }

#preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.inspector-drawer {
  width: 320px;
  background: #111827;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  overflow-y: auto;
}
