/* Reset and base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Light Theme */
body.light-theme {
  background: #f3f3f3;
  color: #000;
}
body.light-theme .top-bar {
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(5, 228, 5, 0.866);
}
body.light-theme .editor, 
body.light-theme .output {
  background: #fff;
  box-shadow: 0 0 10px #08e508;
}
body.light-theme textarea,
body.light-theme .editable-output,
body.light-theme #stdinInput {
  background: #f9f9f9;
  color: #000;
  border: 1px solid #2fe50b;
}

/* Dark Theme */
body.dark-theme {
  background: #1e1e1e;
  color: #eee;
}
body.dark-theme .top-bar {
  background: #111;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.2);
}
body.dark-theme .editor, 
body.dark-theme .output {
  background: #2c2c2c;
  box-shadow: 0 0 10px #00ff88;
}
body.dark-theme textarea,
body.dark-theme .editable-output,
body.dark-theme #stdinInput {
  background: #111;
  color: #eee;
  border: 1px solid #00ff88;
}

/* Header Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

/* Buttons */
.login-btn, 
.theme-btn {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.3s ease;
}
.login-btn:hover, 
.theme-btn:hover {
  background-color: #0056b3;
}

/* Main Layout */
.container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px;
  height: calc(100vh - 80px);
  box-sizing: border-box;
}

/* Editor and Output Panels */
.editor, 
.output {
  width: 48%;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

/* Controls Row */
.editor-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* Code and Output Textareas */
textarea,
.editable-output,
#stdinInput {
  width: 100%;
  height: 100%;
  font-family: monospace;
  font-size: 14pt;
  padding: 15px;
  border-radius: 5px;
  resize: none;
  flex-grow: 1;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow: auto;
}

/* Run Button */
.run-btn {
  padding: 10px 20px;
  background-color: #09f334;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.run-btn:hover {
  background-color: #05b050;
}

/* Font Dropdown */
#fontSizeSelector {
  padding: 8px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #007bff;
}

/* Output Heading */
.output h3 {
  margin-bottom: 10px;
}

/* Input Field for scanf */
#stdinInput {
  margin-top: 10px;
  height: 80px;
}
