@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1b1828, #0c0b12 70%);
  font-family: 'Varela Round', sans-serif;
  color: white;
  overflow-x: hidden;
}
#mini-toolbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(18,16,28,0.75);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  z-index: 1000;
  transition: all 0.3s ease;
}
#mini-toolbar span {
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  padding: 8px;
  border-radius: 10px;
  transition: all 0.2s ease;
}
#mini-toolbar span:hover {
  transform: scale(1.12);
}
#mini-toolbar span:active {
  transform: scale(0.92);
}
.other-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
}
.other-toolbar h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(90deg,#c084ff,#7c3aed,#60a5fa,#a78bfa,#93c5fd,#c084ff);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: zGlow 6s ease-in-out infinite;
  text-shadow:
    0 0 6px rgba(192,132,255,0.6),
    0 0 12px rgba(124,58,237,0.5),
    0 0 18px rgba(96,165,250,0.4);
}
@keyframes zGlow {
  0% { background-position: 0% }
  100% { background-position: 300% }
}
#text-toolbar {
  position: fixed;
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(20,18,30,0.95);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  z-index: 2000;
  transform: translate(-50%, -120%);
  transition: opacity 0.2s ease;
}
#text-toolbar.hidden {
  opacity: 0;
  pointer-events: none;
}
#text-toolbar .tool {
  font-size: 18px;
  padding: 6px;
  border-radius: 8px;
  transition: 0.15s;
}
#text-toolbar .tool:hover {
  background: rgba(255,255,255,0.1);
}
.main-content {
  padding: 110px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
}
.editor {
  width: 100%;
  min-height: 500px;
  font-size: 20px;
  line-height: 2;
  outline: none;
  border: none;
  background: transparent;
  color: #ffffff;
  caret-color: #c084ff;
}
.editor h2 {
  font-size: 32px;
  margin: 20px 0 10px;
}
.editor p {
  margin: 10px 0;
}
.editor::-webkit-scrollbar {
  width: 6px;
}
.editor::-webkit-scrollbar-thumb {
  background: rgba(122,92,255,0.5);
  border-radius: 6px;
}
.editor h2:empty::before {
  content: "Title";
  opacity: 0.3;
}
.editor p:empty::before {
  content: "Start writing...";
  opacity: 0.3;
}
@media screen and (max-width: 768px) {
  #mini-toolbar {
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    width: auto;
    max-width: 90%;
    justify-content: center;
  }
  #text-toolbar {
    top: 70px;
  }
  .main-content {
    padding: 130px 16px 40px;
  }
  .editor {
    font-size: 18px;
    line-height: 1.8;
  }
  .other-toolbar h2 {
    font-size: 20px;
  }
}
