:root {
  --left-width: 45%;
  --left-min: 150px;
  --drag-width: 10px;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  overflow: hidden;
}

/* HEADER */
.app-header {
  height: 56px;
  background: #0b5ed7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.app-header .title {
  font-weight: 600;
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* BODY */
.app-body {
  height: calc(100vh - 56px);
  display: flex;
  overflow: hidden;
}

/* LEFT PANEL */
#leftPanel {
  width: var(--left-width);
  min-width: var(--left-min);
  background: #0f1724;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: width .2s ease;
  overflow: hidden;
}

.editor-toolbar {
  padding: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

#htmlCode {
  flex: 1;
  width: 100%;
  background: transparent;
  border: 0;
  color: #e6eef8;
  padding: 12px;
  resize: none;
  outline: none;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  scrollbar-width: none;
}
#htmlCode::-webkit-scrollbar {
  display: none;
}

/* DRAG BAR */
#dragBar {
  width: var(--drag-width);
  background: linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.12));
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
#dragIcon {
  color: #6c757d;
}

/* PREVIEW */
.preview {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.preview .meta {
  padding: .4rem .6rem;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

#output {
  flex: 1;
  border: 0;
  width: 100%;
}
