html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Noto Sans KR', sans-serif;
}

#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editor-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.editor-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #252526;
  border-bottom: 1px solid #3e3e42;
  gap: 1rem;
}

.header-left .title {
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 300px;
}

.header-center .select {
  width: 100%;
}

.header-center select {
  background: #3c3c3c;
  color: #d4d4d4;
  border: 1px solid #3e3e42;
  font-family: 'Noto Sans KR', sans-serif;
  width: 100%;
}

.header-center select:hover {
  background: #4a4a4a;
  border-color: #569cd6;
}

.header-center select:focus {
  border-color: #569cd6;
  box-shadow: 0 0 0 0.125em rgba(86, 156, 214, 0.25);
}

.header-right {
  display: flex;
  gap: 0.5rem;
  font-family: 'Noto Sans KR', sans-serif;
}

.editor-panels {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}

.editor-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #3e3e42;
  overflow: hidden;
}

.editor-panel:last-child {
  border-right: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #2d2d30;
  border-bottom: 1px solid #3e3e42;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Noto Sans KR', sans-serif;
}

.panel-title {
  color: #cccccc;
  font-family: 'Noto Sans KR', sans-serif;
}

.panel-hint {
  color: #858585;
  font-size: 0.75rem;
  font-family: 'Noto Sans KR', sans-serif;
}

.panel-content {
  flex: 1;
  overflow: hidden;
  background: #1e1e1e;
  position: relative;
}

.panel-content textarea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100% !important;
    border: none;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Noto Sans KR', monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 1rem;
    resize: none;
    outline: none;
    box-sizing: border-box;
}

.output-panel {
  padding: 1rem;
  font-family: 'Noto Sans KR', monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #d4d4d4;
  overflow-y: auto;
}

.editor-footer {
  background: #252526;
  border-top: 1px solid #3e3e42;
  padding: 0.5rem 1rem;
  font-family: 'Noto Sans KR', sans-serif;
}

.example-section {
  color: #cccccc;
  font-family: 'Noto Sans KR', sans-serif;
}

.example-section summary {
  cursor: pointer;
  padding: 0.5rem;
  user-select: none;
  font-weight: 500;
  font-family: 'Noto Sans KR', sans-serif;
}

.example-section summary:hover {
  background: #2d2d30;
}

.doc-content {
  background: #1e1e1e !important;
  border: 1px solid #3e3e42 !important;
  border-radius: 6px !important;
  padding: 2rem !important;
  margin-top: 0.5rem !important;
  max-height: 500px !important;
  overflow-y: auto !important;
  font-family: 'Noto Sans KR', sans-serif !important;
  line-height: 1.8 !important;
}

.doc-content h3 {
  margin-top: 0 !important;
  font-family: 'Noto Sans KR', sans-serif !important;
  color: #4ec9b0 !important;
  text-align: center !important;
  margin-bottom: 2rem !important;
  font-size: 16px !important;
  padding-bottom: 1rem !important;
  border-bottom: 2px solid #3e3e42 !important;
}

.doc-content .doc-section {
  color: #569cd6 !important;
  font-weight: bold !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
  font-family: 'Noto Sans KR', sans-serif !important;
  font-size: 15px !important;
  padding-left: 0.5rem !important;
  border-left: 3px solid #569cd6 !important;
}

.doc-content .doc-item {
  color: #d4d4d4 !important;
  margin-left: 1.5rem !important;
  margin-bottom: 0.8rem !important;
  font-family: 'Noto Sans KR', sans-serif !important;
  line-height: 1.6 !important;
}

.doc-content .doc-item strong {
  color: #ce9178 !important;
  font-weight: 600 !important;
}

.doc-content .doc-example {
  color: #6a9955 !important;
  margin-left: 2.5rem !important;
  margin-bottom: 0.5rem !important;
  font-family: 'Noto Sans KR', monospace !important;
  font-size: 13px !important;
  background: #252526 !important;
  padding: 0.4rem 0.8rem !important;
  border-radius: 3px !important;
  display: inline-block !important;
}

.doc-content .doc-note {
  color: #858585 !important;
  margin-left: 2.5rem !important;
  margin-bottom: 1rem !important;
  font-family: 'Noto Sans KR', sans-serif !important;
  font-size: 12px !important;
  font-style: italic !important;
}

.example-section pre {
  margin: 0.5rem 0 0 0;
  padding: 1.5rem;
  background: #1e1e1e;
  border: 1px solid #3e3e42;
  border-radius: 4px;
  color: #d4d4d4;
  font-family: 'Noto Sans KR', monospace;
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
}

.doc-title {
  color: #4ec9b0;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
}

#notification-area {
  position: fixed;
  top: 4rem;
  right: 1rem;
  z-index: 1000;
  max-width: 400px;
}

.notification {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-family: 'Noto Sans KR', sans-serif;
}

.navbar .button.is-dark.is-outlined {
  border-color: #fff;
  color: #fff;
}

.navbar .button.is-dark.is-outlined:hover {
  background-color: #fff;
  color: #363636;
}

@media (max-width: 768px) {
  .editor-panels {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  
  .editor-panel {
    border-right: none;
    border-bottom: 1px solid #3e3e42;
  }
  
  .editor-panel:last-child {
    border-bottom: none;
  }
}
