* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: #f0f0f0;
}

.container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

.editor,
.preview {
  flex: 1;
  height: 100%;
  padding: 10px;
}

.editor {
  background-color: #1e1e1e;
  display: flex;
  flex-direction: column;
}

textarea {
  flex: 1;
  width: 100%;
  background-color: #1e1e1e;
  color: #ffffff;
  border: none;
  resize: none;

  margin-top: 10px;
  padding: 15px;
  font-size: 16px;
  border-radius: 5px;
}

textarea:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(215, 217, 219, 0.5);
}

.preview {
  background-color: #ffffff;
  border-left: 2px solid #ccc;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  background-color: #ffffff;
  border-radius: 5px;
}

.editor-header {
  color: #ffffff;
  padding: 10px;
  font-size: 18px;
  font-weight: bold;
  background-color: #2a2a2a;
  border-radius: 5px 5px 0 0;
}

/* Context menu */
.context-menu {
  position: fixed;
  min-width: 160px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

.context-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;

  list-style-type: none;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.context-menu-item + .context-menu-item{
    border-top: 1px solid #ccc;
}

.context-menu-item:hover {
  background-color: #ccc;
}
