/* ==========================
   File: css/playground.css
   ========================== */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: #1e1e1e;
  color: white;
}

header {
  background-color: #282c34;
  padding: 12px 20px;
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
  color: #61dafb;
  border-bottom: 2px solid #444;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px;
  background: #2a2a2a;
  border-bottom: 1px solid #444;
}

.button-container button,
.button-container select,
.button-container label {
  padding: 6px 10px;
  font-size: 0.9rem;
  background-color: #3a3a3a;
  color: white;
  border: 1px solid #666;
  border-radius: 4px;
  cursor: pointer;
}

main {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
}

#resize-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

#editorContainer,
#output-container {
  flex: 1;
  overflow: auto;
  position: relative;
}

#editorContainer {
  border-right: 2px solid #333;
}

.CodeMirror {
  height: 100%;
  font-size: 14px;
  background-color: #1e1e1e;
  color: #f8f8f2;
}

#output {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

.resize-bar {
  width: 5px;
  background-color: #444;
  cursor: col-resize;
}

.floating-nav {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.floating-nav button {
  font-size: 12px;
  padding: 5px;
  background: #444;
  border: none;
  color: white;
  border-radius: 3px;
}

#footer {
  background-color: #1e1e1e;
  padding: 8px 16px;
  font-size: 0.85rem;
  text-align: right;
  border-top: 1px solid #333;
}

.mobile-view #output {
  width: 375px;
  margin: 0 auto;
  box-shadow: 0 0 10px #000;
}

/* Layout Toggle Styles */
.horizontal-layout {
  flex-direction: row;
}
.reverse-horizontal-layout {
  flex-direction: row-reverse;
}
.reverse-vertical-layout {
  flex-direction: column-reverse;
}
