@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  width: 100vw;
  height: 100vh;
  background-color: #121212;
  color: #e0e0e0;
  overflow-x: hidden;
}

.container {
  background-color: #1f1f1f;
  padding-bottom: 1rem;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #1f1f1f;
  border-bottom: 1px solid #333;
}

.top-bar h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
}

.download-btn {
  background-color: #333;
  color: #e0e0e0;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background-color: #444;
}

/* Layout */
.editor {
  display: flex;
  background: #181818;
  padding: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.left, .right {
  flex: 1 1 45%;
  min-width: 300px;
}

label {
  display: flex;
  align-items: center;
  font-size: 18px;
  margin: 10px 0 5px;
  color: #ffffff;
}

label i {
  margin-right: 6px;
}

/* Textareas */
textarea {
  width: 100%;
  height: 150px;
  background: #202020;
  color: #ffffff;
  border: 1px solid #333;
  outline: none;
  font-size: 16px;
  padding: 10px 15px;
  margin-bottom: 1rem;
  resize: vertical;
}

/* Right Panel Layout */
.right {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.output-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

iframe {
  flex: 1;
  width: 100%;
  background: #2e2e2e; /* lighter output background */
  border: none;
  color: #e6e6e6;
}

/* Divider */
.divider-line {
  height: 2px;
  background-color: #444;
  margin-top: 0.5rem;
}

/* Console Panel */
.console-panel {
  background-color: #2a2a2a; /* lighter console background */
  color: #f0f0f0;
  padding: 0.5rem;
  height: 150px;
  overflow-y: auto;
  font-size: 0.95rem;
  border-top: 2px solid #666;
}

.console-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  color: #c2c2c2;
  margin-bottom: 4px;
}

.console-header i {
  font-size: 1.2rem;
}

#console-output {
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #efefef;
}

/* Responsive */
@media (max-width: 768px) {
  .editor {
    flex-direction: column;
  }

  textarea {
    height: 180px;
  }

  .console-panel {
    height: 120px;
  }

  iframe {
    height: 300px;
  }
}
