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

body {
  background: #020617;
  color: white;
  font-family: Arial, sans-serif;
  height: 100vh;
  overflow: hidden;
}

header {
  height: 60px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.buttons {
  display: flex;
  gap: 10px;
}

button {
  background: #2563eb;
  border: none;
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
}

main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100vh - 60px);
}

.editorPanel {
  border-right: 1px solid #1e293b;
}

#editor,
#preview {
  width: 100%;
  height: 100%;
  border: none;
}

#preview {
  background: white;
}

#groqToggle {
  position: fixed;
  top: 18px;
  right: 440px;
  z-index: 100000;
}

#groqSidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  background: #0f172a;
  border-left: 1px solid #1e293b;
  padding: 24px;
  overflow: auto;
  transition: transform 0.3s ease;
}

#groqSidebar.closed {
  transform: translateX(100%);
}

.groqHeader p {
  opacity: 0.7;
  margin-top: 8px;
  margin-bottom: 20px;
}

#groqPrompt {
  width: 100%;
  min-height: 240px;
  background: #111827;
  color: white;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
}

#groqGenerate {
  margin-top: 20px;
  width: 100%;
}

#groqOutput {
  margin-top: 20px;
  background: black;
  color: #4ade80;
  padding: 20px;
  border-radius: 12px;
  min-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
}
