@charset "UTF-8";
:root {
  /* 주요 색상 */
  --color-primary: #2634a3; /* 헤더, 활성 탭, 다이얼로그 */
  --color-primary-light: #76AFFC; /* 입력창 배경 */
  --color-primary-dark: #5781BA; /* 입력창 테두리 */
  --color-bg: #E4F0FE; /* body 배경 */
  --color-tab-inactive: #D9E3F1; /* 비활성 탭 */
  --color-activity-bar: #C8D8F0; /* 액티비티바 배경 */
  --color-border: #bbbbbb; /* 공통 테두리 */
  --color-text-muted: #999999; /* 비활성 텍스트 */
  --color-placeholder: #95989A; /* placeholder */
  /* 헤더 */
  --header-height: 2rem;
  /* 다이얼로그 */
  --dialog-bg: var(--color-primary);
  /* Python 에디터 (다크) */
  --python-bg: #2F3129;
  --python-file-bg: #515251;
  --python-file-active: #272822;
  /* 버튼 */
  --btn-success: #28a745;
  --btn-light: #f8f9fa;
  /* Blockly 블록 색상 */
  --blockly-motion: #4A6FE3;
  --blockly-sensor: #27AE8F;
  --blockly-sound: #F4A427;
  --blockly-control: #FFAB19;
  --blockly-experimental: #E84F47;
  --blockly-logic: #4C97FF;
  --blockly-loop: #0fBD8C;
  --blockly-math: #9C6FD6;
  --blockly-text: #FFBF00;
  --blockly-list: #9966FF;
  --blockly-variable: #E84393;
  --blockly-procedure: #7B52A0;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0px;
  padding: 0px;
  position: absolute;
  top: 0px;
}

body {
  background: var(--color-bg);
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
}

header {
  background: #efeeee;
  display: flex;
  flex-direction: row;
  padding: 0.5em 1em;
  height: var(--header-height);
  align-items: center;
}
/* ── Hamburger Menu ── */
header .hamburger-menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 0.4em;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  margin-right: 0.3em;
}
header .hamburger-menu:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}
header .hamburger-menu .material-symbols-rounded {
  font-size: 1.4em;
}
header .hamburger-menu .hamburger-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0.5em;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 1000;
  padding: 0.3em 0;
  color: var(--color-text-muted);
}
header .hamburger-menu.open .hamburger-dropdown {
  display: block;
}
header .hamburger-menu .hamburger-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 1em;
  text-decoration: none;
  color: #333;
  font-family: "Nunito", sans-serif;
  font-size: 0.9em;
  transition: background 0.12s, color 0.12s;
}
header .hamburger-menu .hamburger-dropdown a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}
header .hamburger-menu .hamburger-dropdown a .material-symbols-rounded {
  font-size: 1.1em;
  color: inherit;
}

header .appName {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-size: 1.3em;
  font-weight: 700;
  display: flex;
  align-items: center;
}
header .appName span {
  margin-left: 5px;
  font-size: 0.5em;
  color: rgb(65, 65, 65);
  box-sizing: border-box;
  padding: 2px 5px;
  border-radius: 5px;
  font-weight: normal;
  background-color: rgba(126, 126, 126, 0.2);
}
header .gearsIcon {
  height: 1.6em;
  margin-right: 0.5em;
  margin-top: -0.3em;
  margin-bottom: -0.3em;
}
header #projectName, header #robotName {
  margin-left: 1em;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  border-radius: 0.4em;
  padding: 0.3em 0.7em;
  position: relative;
  color: #333;
  font-family: "Nunito", sans-serif;
  font-size: 0.9em;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 12em;
}
header #projectName:focus, header #robotName:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(38, 52, 163, 0.15);
}
header #projectName::placeholder, header #robotName::placeholder {
  color: var(--color-text-muted);
  font-style: italic;
}
header .headerRight {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.2em;
}
header .language {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.3em 0.5em;
  border-radius: 0.4em;
  color: #555;
  font-size: 0.9em;
  transition: background 0.15s, color 0.15s;
}
header .language:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}
header .language .material-symbols-rounded {
  font-size: 24px;
}
header .language .lang-label {
  font-family: "Nunito", sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.02em;
}
header .lang-switcher {
  display: flex;
  gap: 0.2em;
  align-items: center;
  margin-right: 0.25em;
}
header .lang-btn {
  padding: 0.2em 0.5em;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 0.4em;
  background: none;
  font-family: "Nunito", sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  cursor: pointer;
  color: #777;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
header .lang-btn:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}
header .lang-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
}
header .authBtn {
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.3em 0.5em;
  border-radius: 0.4em;
  color: #555;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: "Nunito", sans-serif;
  font-size: 0.9em;
}
header .authBtn:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}
header .authBtn .material-symbols-rounded {
  font-size: 20px;
}
header .authBtn .auth-label {
  font-weight: 600;
  white-space: nowrap;
}
header #userArea {
  display: flex;
  align-items: center;
  gap: 0.3em;
  color: #555;
  font-family: "Nunito", sans-serif;
  font-size: 0.9em;
}
header #userArea .material-symbols-rounded {
  font-size: 20px;
}
header #userArea .auth-label {
  font-weight: 600;
  white-space: nowrap;
  margin-right: 1rem;
}
header nav {
  margin-left: 1.5em;
}
header nav ul.panelTabs {
  display: flex;
  padding: 0;
  margin: 0;
  gap: 0.2em;
  list-style: none;
}
header nav ul.panelTabs li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 0.4em;
  border: none;
  background: none;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
  margin: 0;
  padding: 0;
  font-size: 1em;
  transition: background 0.15s, color 0.15s;
}
header nav ul.panelTabs li:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}
header nav ul.panelTabs li.active {
  background: var(--color-primary);
  color: white;
  margin-top: 0;
  font-size: 1em;
}
header nav ul.panelTabs li .tab-label {
  display: none;
}
header nav ul.panelTabs li::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.85);
  color: white;
  font-size: 0.7em;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
}
header nav ul.panelTabs li:hover::after {
  opacity: 1;
}


.bold {
  font-weight: bold;
}

main {
  width: 100%;
  height: 100%;
  flex-grow: 1;
  display: grid;
  grid-template-columns: 50px calc(100% - 50px);
  gap: 1px;
  overflow: hidden;
  background: #efeeee;
}
main nav {
  width: 50px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FAFAFA;
  border-right: solid 1px var(--color-border);
  overflow: visible;
  border-radius: 0 10px 10px 0;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.2)
}
nav .menuBar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0;
  width: 100%;
}
nav .menuBar .menuItem {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.4em;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}
nav .menuBar .menuItem:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}
nav .menuBar .menuItem .activity-icon {
  font-size: 1.7em;
}
nav .menuBar .menuItem .activity-label {
  display: none;
}
nav .menuBar .menuItem::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 30, 30, 0.85);
  color: white;
  font-size: 0.75em;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
}
nav .menuBar .menuItem:hover::after {
  opacity: 1;
}
nav .menuBar .menuItem:has(.menuDropDown):hover::after {
  opacity: 0;
}
nav .panelControlsArea {
  margin-top: auto;
  padding-bottom: 0.5em;
}
nav .panelControlsArea .panelControls {
  display: none;
}
nav .panelControlsArea .panelControls.active {
  display: block;
}

.panels {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
.panels .panel {
  height: 100%;
  width: 100%;
  z-index: -1;
  position: absolute;
}
.panels .panel.active {
  z-index: 0;
}
/* blockly panel */
.blocklyEditor.panel {
  transition: none;
}
/* ── Block split toggle group: sim + code view buttons ─────────────────── */
.blockSplitToggleGroup {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 6px 0 0 6px;
  box-shadow: -2px 0 6px rgba(0,0,0,0.12);
  overflow: hidden;
}
.simSplitToggle,
.codeViewToggle {
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5em 0.3em;
  color: #555;
  font-size: 1.1em;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  width: 100%;
}
.simSplitToggle + .codeViewToggle {
  border-top: 1px solid #eee;
}
.simSplitToggle:hover,
.codeViewToggle:hover {
  opacity: 1;
}
.simSplitToggle.active,
.codeViewToggle.active {
  opacity: 1;
  color: var(--color-primary);
}

/* ── Code view panel — Ace monokai 일치 ────────────────────────────────── */
.codeViewPanel {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: #272822;
  border-left: 1px solid #3a3a30;
  display: flex;
  flex-direction: column;
  z-index: 5;
  overflow: hidden;
}
.codeViewPanel.hide {
  display: none;
}
.codeViewHeader {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.8em;
  background: #2F3129;
  color: #8F908A;
  font-size: 0.85em;
  font-weight: bold;
  flex-shrink: 0;
  border-bottom: 1px solid #3a3a30;
}
.codeViewHeader .material-symbols-rounded {
  font-size: 1.1em;
  color: #A6E22E;
}
/* pre wrapper */
.codeViewPanel > pre.codeViewContent {
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
  background: #272822 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* code element */
.codeViewPanel > pre.codeViewContent > code {
  display: block;
  padding: 0.8em 1em;
  font-family: 'Menlo', 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
  tab-size: 4;
  color: #F8F8F2;
  background: transparent !important;
  text-shadow: none !important;
}
/* Prism 토큰 색상을 Ace monokai에 맞춤 */
.codeViewPanel .token.keyword        { color: #F92672; }
.codeViewPanel .token.builtin        { color: #66D9EF; }
.codeViewPanel .token.function       { color: #A6E22E; }
.codeViewPanel .token.class-name     { color: #A6E22E; font-style: italic; }
.codeViewPanel .token.string         { color: #E6DB74; }
.codeViewPanel .token.number         { color: #AE81FF; }
.codeViewPanel .token.boolean        { color: #AE81FF; }
.codeViewPanel .token.comment        { color: #75715E; font-style: italic; }
.codeViewPanel .token.operator       { color: #F8F8F2; }
.codeViewPanel .token.punctuation    { color: #F8F8F2; }
.codeViewPanel .token.decorator      { color: #A6E22E; }
.codeViewPanel .token.parameter      { color: #FD971F; font-style: italic; }

/* ── Split handle ─────────────────────────────────────────────────────────── */
.split-handle {
  width: 5px;
  height: 100%;
  cursor: col-resize;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  transition: background 0.15s;
}
.split-handle:hover,
.split-handle.dragging {
  background: var(--color-primary);
}
#simSplitHandle {
  height: 100%;
}

/* Python split layout: code(60%) + AI Tutor(40%) */
.pythonSplitContainer {
  display: flex;
  width: 100%;
  height: 100%;
}
.pythonSplitContainer .python {
  flex: 6;
  min-width: 100px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* ── AI Tutor Panel ──────────────────────────────────────────────────────── */
.aiTutorPanel {
  flex: 4;
  min-width: 100px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f3f7fe;
  border-left: 1px solid var(--color-border);
  color: #2c2c2c;
  font-family: sans-serif;
}
.aiTutorPanel.hide {
  display: none;
}
/* When showing sim in python tab: python panel fills remaining width */
.panels.pythonSplitSim .panel[aria-labelledby="navPython"] .pythonSplitContainer .python {
  flex: 1;
  width: auto;
}
/* 헤더 — 기존 UI header와 동일한 primary 색상 */
.aiTutorHeader {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1em;
  background: var(--color-primary);
  color: white;
  font-weight: bold;
  font-size: 0.9em;
  flex-shrink: 0;
}
/* 메시지 영역 */
.aiTutorMessages {
  flex: 1;
  overflow-y: auto;
  padding: 0.8em 0.9em;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  background: #f3f7fe;
}
/* 입력 영역 */
.aiTutorInput {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  padding: 0.5em 0.7em;
  border-top: 1px solid var(--color-border);
  background: var(--color-tab-inactive);
  flex-shrink: 0;
}
#llm-progress-container {
  margin-bottom: 0.1em;
}
#llm-progress-bar {
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}
#llm-progress-text {
  font-size: 0.72em;
  color: var(--color-text-muted);
  margin-top: 0.25em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 입력 행: 모델선택 + textarea + send */
.aiTutorInputRow {
  display: flex;
  align-items: flex-end;
  gap: 0.4em;
}
#llm-model-select {
  background: white;
  color: #333;
  border: 1px solid var(--color-border);
  border-radius: 0.4em;
  padding: 0.35em 0.4em;
  font-size: 0.75em;
  cursor: pointer;
  flex-shrink: 0;
  max-width: 7.5em;
  height: 2.4em;
}
#llm-model-select:focus {
  outline: none;
  border-color: var(--color-primary);
}
#aiTutorTextarea {
  flex: 1;
  resize: none;
  background: white;
  color: #222;
  border: 1px solid var(--color-border);
  border-radius: 0.4em;
  padding: 0.45em 0.6em;
  font-family: sans-serif;
  font-size: 0.88em;
  min-height: 2.4em;
  max-height: 8em;
  overflow-y: auto;
}
#aiTutorTextarea::placeholder {
  color: var(--color-placeholder);
}
#aiTutorTextarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
#aiTutorTextarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#aiTutorSend {
  background: var(--color-primary);
  border: none;
  border-radius: 0.4em;
  color: white;
  cursor: pointer;
  padding: 0.4em 0.6em;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
#aiTutorSend:hover {
  opacity: 0.85;
}
#aiTutorSend:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* 메시지 버블 */
.user-bubble {
  align-self: flex-end;
  background: var(--color-primary);
  color: white;
  padding: 0.45em 0.8em;
  border-radius: 1em 1em 0.2em 1em;
  max-width: 85%;
  font-size: 0.88em;
  word-break: break-word;
  white-space: pre-wrap;
  line-height: 1.5;
}
.assistant-bubble {
  align-self: flex-start;
  background: white;
  color: #222;
  padding: 0.5em 0.8em;
  border-radius: 0.2em 1em 1em 1em;
  border: 1px solid #dce8fb;
  max-width: 100%;
  font-size: 0.88em;
  word-break: break-word;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.55;
}
.assistant-text {
  margin: 0.2em 0;
  line-height: 1.55;
}
/* 스트리밍 중 raw pre */
pre.streaming-raw {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: monospace;
  font-size: 0.85em;
  color: #555;
  margin: 0;
  padding: 0.3em 0;
}
/* 코드 블록 — Python 에디터 다크 배경 계열 유지 */
.code-block {
  background: #282c34;
  border-radius: 0.4em;
  overflow: hidden;
  margin: 0.4em 0;
  border: 1px solid #3a3f4b;
}
.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3em 0.8em;
  background: #21252b;
  font-size: 0.8em;
}
.code-block-lang {
  color: #9da5b4;
  font-family: monospace;
}
.code-copy-btn {
  background: none;
  border: 1px solid #4a4f5a;
  color: #9da5b4;
  border-radius: 0.3em;
  padding: 0.1em 0.5em;
  cursor: pointer;
  font-size: 0.88em;
}
.code-copy-btn:hover {
  background: #2f333d;
  color: white;
}
.code-block-body {
  margin: 0;
  padding: 0.8em 1em;
  overflow-x: auto;
  font-size: 0.85em;
  color: #abb2bf;
  font-family: monospace;
}
/* 시스템 안내 메시지 */
.system-notice {
  align-self: center;
  color: var(--color-text-muted);
  font-size: 0.75em;
  text-align: center;
  padding: 0.15em 0;
}
/* Python tab toggle button */
.pythonSplitToggle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 200;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 0.5em 0.3em;
  box-shadow: -2px 0 6px rgba(0,0,0,0.12);
  color: #555;
  font-size: 1.1em;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.pythonSplitToggle:hover {
  opacity: 1;
}
.pythonSplitToggle {
  opacity: 1;
}
.pythonSplitToggle .toggleTutorIcon,
.pythonSplitToggle .toggleSimIcon {
  color: #aaa;
  transition: color 0.2s;
}
.pythonSplitToggle .toggleTutorIcon.active,
.pythonSplitToggle .toggleSimIcon.active {
  color: var(--color-primary);
}

/* ── Saving Indicator ── */
.saving-indicator {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.25em 0.75em;
  margin-left: 0.75em;
  border-radius: 2em;
  background: #f0f0f0;
  border: 1px solid #ddd;
  font-size: 0.82em;
  color: #888;
  font-family: "Nunito", sans-serif;
  white-space: nowrap;
  transition: opacity 0.3s;
  opacity: 1;
}
.saving-indicator.hide {
  opacity: 0;
  pointer-events: none;
}
.saving-indicator.saved {
  color: #4caf50;
  border-color: #a5d6a7;
  background: #f1f8f1;
}
.saving-indicator.saved .saving-spinner { display: none; }

.saving-spinner {
  width: 0.85em;
  height: 0.85em;
  border: 2px solid #ccc;
  border-top-color: #888;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.dialogWindow .selectRobot .description {
  display: flex;
  border: solid 1px var(--color-border);
  border-radius: 0.4em;
  margin-top: 0.5em;
  overflow: hidden;
}
.dialogWindow .selectRobot .description .thumbnail {
  width: 200px;
  height: 200px;
}
.dialogWindow .selectRobot .description .text {
  border-left: solid 1px var(--color-border);
  padding: 0 1em;
  flex-shrink: 1;
  color: #444;
}
.dialogWindow .selectRobot .configurations {
  border: solid 1px var(--color-border);
  border-radius: 0.4em;
  margin-top: 0.5em;
  padding: 0 0.5em;
  color: #444;
}

ul.menuDropDown {
  background: #fff;
  border: solid 1px var(--color-border);
  position: absolute;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.3em 0;
  border-radius: 0.5em;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
  min-width: 10em;
  list-style: none;
}
ul.menuDropDown li {
  display: flex;
  align-items: center;
  color: #333;
  padding: 0.5em 1em;
  font-size: 0.9em;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s, color 0.1s;
}
ul.menuDropDown li:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}
ul.menuDropDown li.underline {
  border-bottom: solid 1px #eee;
  margin-bottom: 0.3em;
  padding-bottom: 0.8em;
}
ul.menuDropDown .tick {
  color: var(--color-primary);
  margin-right: 0.4em;
}

/* 언어 드롭다운 전용 */
ul.languageMenuDropDown {
  min-width: 9em;
}
ul.languageMenuDropDown li {
  gap: 0.5em;
}

ul.menuDropDownRightAlign {
  top: calc(100% + 4px);
}

ul.menuDropDownActivityBar {
  top: 0;
  left: 100%;
  width: max-content;
  border-radius: 0.5em;
}

.blocklyEditor .disable {
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background: rgba(100, 100, 100, 0.6);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.blocklyEditor .disable .enable {
  font-size: 200%;
  color: red;
  border: solid 2px red;
  padding: 0.5em;
  border-radius: 0.5em;
  cursor: pointer;
  user-select: none;
}
nav .menuBar .menuItem.blocksOnly {
  display: none;
}
nav .menuBar .menuItem.blocksOnly.visible {
  display: flex;
}

.blocklyEditor.hide {
  display: none;
}

.blockly-minimap {
  position: absolute;
  box-shadow: none;
  width: 200px;
  height: 150px;
  top: 3em;
  right: 1em;
}

/* Blockly 툴박스 테마 (Blockly 12.3.0) */
.blocklyToolbox {
  background-color: #FFFFFF !important;
  border-right: 1px solid #E8E8E8 !important;
  padding: 8px 0 !important;
}

.blocklyToolboxCategory {
  border-radius: 0 20px 20px 0 !important;
  margin-right: 8px !important;
  margin-bottom: 2px !important;
  padding: 6px 10px 6px 8px !important;
  cursor: pointer !important;
  transition: background 0.15s, box-shadow 0.15s !important;
}

.blocklyToolboxCategory:hover:not(.blocklyToolboxSelected) {
  background: rgba(0, 0, 0, 0.04) !important;
}

.blocklyToolboxSelected {
  border-radius: 0 20px 20px 0 !important;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.blocklyToolboxCategoryIcon {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

.blocklyToolboxCategoryLabel {
  font-family: "Nunito", sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #444444 !important;
}

.blocklyToolboxSelected .blocklyToolboxCategoryLabel {
  color: #FFFFFF !important;
}

.blocklyTreeSeparator {
  border-top: 1px solid #EEEEEE !important;
  margin: 4px 12px !important;
  height: 0 !important;
}

.blocklyFlyoutBackground {
  fill: #F5F5F5 !important;
  fill-opacity: 1 !important;
}

.blocklyMainBackground {
  fill: #F8F9FA !important;
}

.blocklyDraggable > .blocklyPath {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

#renderCanvas {
  width: 100%;
  height: 100%;
}

.runSim {
  position: absolute;
  color: white;
  opacity: 0.8;
  top: 2em;
  left: 2em;
  font-size: 200%;
  cursor: pointer;
  user-select: none;
}

.startSim {
  position: absolute;
  color: white;
  opacity: 0.8;
  top: 2em;
  left: 1.5em;
  font-size: 200%;
  cursor: pointer;
  user-select: none;
}

.stopSim {
  position: absolute;
  color: white;
  opacity: 0.8;
  top: 2em;
  left: 2.5em;
  font-size: 200%;
  cursor: pointer;
  user-select: none;
}

.world {
  position: absolute;
  color: white;
  opacity: 0.8;
  top: 2em;
  left: 4em;
  font-size: 200%;
  cursor: pointer;
  user-select: none;
}

.reset {
  position: absolute;
  color: white;
  opacity: 0.8;
  top: 2em;
  left: 6em;
  font-size: 200%;
  cursor: pointer;
  user-select: none;
}

.cameraSelector, .cameraSelectorShort {
  position: absolute;
  overflow: hidden;
  color: #444;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.5em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0.8;
  top: 1em;
  right: 1.5em;
  height: 6.2em;
  font-size: 300%;
  transition: 0.3s height, 0.3s color, 0.3s background-color;
  cursor: pointer;
  user-select: none;
}
.cameraSelector > div, .cameraSelectorShort > div {
  margin: 0.2em;
}
.cameraSelector .hide, .cameraSelectorShort .hide {
  display: none;
}

.cameraSelectorShort {
  height: 3.5em;
}

.cameraSelector.closed, .cameraSelectorShort.closed {
  color: white;
  background: none;
  height: 1.3em !important;
}

.ruler {
  position: absolute;
  color: black;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.5em;
  padding: 0.2em;
  opacity: 0.8;
  top: 4em;
  left: 2em;
  font-size: 200%;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  width: 13em;
  overflow: hidden;
  transition: 0.5s width, 0.5s color, 0.5s background-color;
}
.ruler .icon {
  margin-right: 0.5em;
  font-size: 120%;
}
.ruler .row1, .ruler .row2 {
  font-size: 50%;
  white-space: nowrap;
}
.ruler .measurements {
  font-size: 50%;
  white-space: nowrap;
  flex-grow: 1;
}
.ruler .measurements table {
  width: 100%;
}
.ruler .measurements td {
  width: 33%;
}

.ruler.closed {
  color: white;
  background: none;
  width: 1.3em;
}

.joystick {
  position: absolute;
  color: black;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.5em;
  padding: 0.2em;
  opacity: 0.8;
  top: 6em;
  left: 2em;
  font-size: 200%;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: flex-start;
  width: 7em;
  height: 4.8em;
  overflow: hidden;
  transition: 0.5s width, 0.5s height, 0.5s color, 0.5s background-color;
  outline: none;
}
.joystick .icon {
  margin-right: 0.5em;
  font-size: 120%;
}
.joystick .virtualJoystick {
  position: relative;
  font-size: 150px;
  height: 150px;
}
.joystick .virtualJoystick .icon-virtualJoystickIndicator {
  position: absolute;
  color: #ddd;
  top: 0;
  left: 0;
}
.joystick .virtualJoystick .icon-virtualJoystick {
  position: absolute;
  color: #bbb;
  top: 0;
  left: 0;
}
.joystick .keyboard {
  position: absolute;
  top: 4em;
  left: 0.5em;
}

.joystick.closed {
  color: white;
  background: none;
  width: 1.3em;
  height: 1.3em;
}

.hubButtons {
  position: absolute;
  color: black;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.5em;
  padding: 0.2em;
  opacity: 0.8;
  top: 8em;
  left: 2em;
  font-size: 200%;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: flex-start;
  width: 6.5em;
  height: 4.8em;
  overflow: hidden;
  transition: 0.5s width, 0.5s height, 0.5s color, 0.5s background-color;
  outline: none;
}
.hubButtons .icon {
  margin-right: 0.5em;
  font-size: 120%;
}
.hubButtons .controls {
  font-size: 135%;
  color: #bbb;
}
.hubButtons .controls .icon-buttonsBackspace, .hubButtons .controls .icon-buttonsUp, .hubButtons .controls .icon-buttonsDown, .hubButtons .controls .icon-buttonsLeft, .hubButtons .controls .icon-buttonsRight, .hubButtons .controls .icon-buttonsEnter {
  position: absolute;
}
.hubButtons .controls .pressed {
  color: #888;
}
.hubButtons .controls .icon-buttonsBackspace {
  left: 1.6em;
  top: 0.2em;
}
.hubButtons .controls .icon-buttonsUp {
  left: 2.7em;
  top: 0.28em;
}
.hubButtons .controls .icon-buttonsDown {
  left: 2.7em;
  top: 2.5em;
}
.hubButtons .controls .icon-buttonsLeft {
  top: 1.4em;
  left: 1.6em;
}
.hubButtons .controls .icon-buttonsRight {
  top: 1.4em;
  left: 3.8em;
}
.hubButtons .controls .icon-buttonsEnter {
  top: 1.4em;
  left: 2.7em;
}

.hubButtons.closed {
  color: white;
  background: none;
  width: 1.3em;
  height: 1.3em;
}

.console {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: black;
  opacity: 0.7;
  color: white;
  font-size: 150%;
  height: 2em;
  overflow: hidden;
  transition: height 0.5s;
}
.console .chevron {
  position: absolute;
  right: 0;
  font-size: 200%;
  cursor: pointer;
  user-select: none;
}
.console .chevron::before {
  content: "⌃";
}
.console .clear {
  position: absolute;
  right: 0.15em;
  font-size: 180%;
  cursor: pointer;
  user-select: none;
  top: 1em;
}
.console .content {
  position: absolute;
  top: 0.5em;
  bottom: 0.5em;
  left: 1em;
  right: 2em;
  margin: 0px;
  color: white;
  overflow-x: hidden;
  overflow-y: hidden;
  white-space: pre-wrap;
}
.console .content .error {
  color: red;
}

.console.open {
  height: 10em;
}
.console.open .chevron {
  top: -0.5em;
}
.console.open .chevron::before {
  content: "⌄";
}
.console.open .content {
  overflow-y: scroll;
}

.dialogWindow .selectWorld .description {
  display: flex;
  border: solid 1px var(--color-border);
  border-radius: 0.4em;
  margin-top: 0.5em;
  overflow: hidden;
}
.dialogWindow .selectWorld .description .thumbnail {
  width: 200px;
  height: 200px;
}
.dialogWindow .selectWorld .description .text {
  border-left: solid 1px var(--color-border);
  padding: 0 1em;
  flex-shrink: 1;
  color: #444;
}
.dialogWindow .selectWorld .configurations {
  border: solid 1px var(--color-border);
  border-radius: 0.4em;
  margin-top: 0.5em;
  padding: 0 0.5em;
  overflow-x: hidden;
}
.dialogWindow .selectWorld .configurations .configuration {
  padding: 0.5em 0em;
}
.dialogWindow .selectWorld .configurations .configuration input[type=text], .dialogWindow .selectWorld .configurations .configuration input[type=file] {
  font-size: 100%;
  background: #fff;
  border: solid 1px #ccc;
  border-radius: 0.3em;
  color: #333;
  padding: 0.2em 0.4em;
  outline: none;
}
.dialogWindow .selectWorld .configurations .configuration .configurationTitle {
  color: #777;
  margin-bottom: 0.1em;
}
.dialogWindow .selectWorld .configurations .configuration .slider {
  display: flex;
}
.dialogWindow .selectWorld .configurations .configuration .slider input[type=range] {
  flex-grow: 1;
}
.dialogWindow .selectWorld .configurations .configuration .slider input[type=text] {
  width: 3em;
  text-align: right;
}
.dialogWindow .selectWorld .configurations .configuration .text input[type=text] {
  width: 100%;
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted white;
}

.tooltip .tooltiptext {
  background-color: white;
  color: black;
  border-radius: 6px;
  padding: 0.2em 0.5em;
  position: absolute;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  max-width: 18em;
  width: max-content;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  border-width: 5px;
  border-style: solid;
}

.tooltip.bottom .tooltiptext {
  top: 125%;
  left: 50%;
  transform: translateX(-50%);
}
.tooltip.bottom .tooltiptext::after {
  margin-left: -5px;
  bottom: 100%;
  left: 50%;
  border-color: transparent transparent white transparent;
}

.tooltip.right .tooltiptext {
  top: 50%;
  left: 100%;
  transform: translate(0.5em, -50%);
}
.tooltip.right .tooltiptext::after {
  margin-top: -5px;
  right: 100%;
  top: 50%;
  border-color: transparent white transparent transparent;
}

.tooltip.left .tooltiptext {
  top: 50%;
  right: 100%;
  transform: translate(-0.5em, -50%);
}
.tooltip.left .tooltiptext::after {
  margin-top: -5px;
  left: 100%;
  top: 50%;
  border-color: transparent transparent transparent white;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.sensors {
  position: absolute;
  color: white;
  opacity: 0.8;
  top: 1.2em;
  right: 3.5em;
  font-size: 300%;
  cursor: pointer;
  user-select: none;
}

.sensorReadings {
  position: absolute;
  color: black;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 0.5em;
  padding: 0.5em;
  top: 9em;
  right: 4em;
  font-size: 100%;
  width: 14em;
  max-height: 70%;
  overflow-y: auto;
  opacity: 1;
  transition: 0.5s opacity, 0.5s max-height, 0.5s padding;
}
.sensorReadings .sensorReading {
  margin-bottom: 0.5em;
}
.sensorReadings .sensorReading .sensorType {
  text-align: center;
}
.sensorReadings .sensorReading table.sensorValues {
  width: 100%;
  border-collapse: collapse;
}
.sensorReadings .sensorReading table.sensorValues td {
  border: solid 2px #bbbbbb;
  color: darkblue;
}
.sensorReadings .sensorReading table.sensorValues td.sensorValue {
  text-align: right;
  min-width: 2em;
}

.sensorReadings.hide {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

@keyframes flash {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}
.worldInfo {
  position: absolute;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0.25em;
  padding: 0.5em;
  top: 0.5em;
  left: 50%;
  width: 14em;
  margin-left: -7em;
  font-size: 200%;
  max-height: 20%;
  overflow: hidden;
}
.worldInfo .row {
  display: flex;
  justify-content: space-between;
}
.worldInfo .mono {
  font-family: monospace;
}
.worldInfo .center {
  width: 100%;
  text-align: center;
}
.worldInfo .animate {
  animation-name: flash;
  animation-duration: 0.5s;
}
.worldInfo .red.animate {
  color: #ff0000;
}
.worldInfo .green.animate {
  color: #00ff00;
}
.worldInfo .p0.animate {
  color: #00ffff;
}
.worldInfo .p1.animate {
  color: #00ff00;
}
.worldInfo .p2.animate {
  color: #ffff00;
}
.worldInfo .p3.animate {
  color: #ff0000;
}
.worldInfo .warn {
  color: #ff0000;
}

.worldInfo.hide {
  display: none;
}

.fps {
  position: absolute;
  right: 4em;
  top: 1em;
  color: #eb09ff;
}

#plotter {
  position: absolute;
  width: 300px;
  height: 300px;
  bottom: 3em;
  right: 0;
}
#plotter .close {
  color: white;
  border: solid 1px white;
  width: 1em;
  height: 1em;
  text-align: center;
  box-sizing: border-box;
  position: absolute;
  bottom: 300px;
  left: 0px;
  background: rgba(255, 255, 255, 0.2666666667);
  cursor: pointer;
}
#plotter .position {
  height: 1em;
  position: absolute;
  bottom: 300px;
  left: 1em;
  background: rgba(255, 255, 255, 0.2666666667);
  color: white;
  padding: 0 0.5em;
}

#plotter.hide {
  display: none;
}

#plotterCanvas {
  cursor: crosshair;
}

@font-face {
  font-family: "icomoon";
  src: url("../fonts/icomoon.eot?zcpech");
  src: url("../fonts/icomoon.eot?zcpech#iefix") format("embedded-opentype"), url("../fonts/icomoon.ttf?zcpech") format("truetype"), url("../fonts/icomoon.woff?zcpech") format("woff"), url("../fonts/icomoon.svg?zcpech#icomoon") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
[class^=icon-], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: "icomoon" !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-edit:before {
  content: "\e91b";
}

.icon-kebab:before {
  content: "\e918";
}

.icon-plus:before {
  content: "\e91a";
}

.icon-deleteFile:before {
  content: "\e917";
}

.icon-download:before {
  content: "\e915";
}

.icon-upload:before {
  content: "\e916";
}

.icon-newFile:before {
  content: "\e919";
}

.icon-buttonsDown:before {
  content: "\e90e";
}

.icon-buttonsLeft:before {
  content: "\e90f";
}

.icon-buttonsRight:before {
  content: "\e910";
}

.icon-buttonsUp:before {
  content: "\e911";
}

.icon-buttons:before {
  content: "\e912";
}

.icon-buttonsBackspace:before {
  content: "\e913";
}

.icon-buttonsEnter:before {
  content: "\e914";
}

.icon-sensors:before {
  content: "\e90d";
}

.icon-reset:before {
  content: "\e90c";
}

.icon-keyboard:before {
  content: "\e90b";
}

.icon-cameraArc:before {
  content: "\e900";
}

.icon-cameraTop:before {
  content: "\e901";
}

.icon-cameraFollow:before {
  content: "\e902";
}

.icon-ruler:before {
  content: "\e903";
}

.icon-camera:before {
  content: "\e904";
}

.icon-virtualJoystickIndicator:before {
  content: "\e905";
}

.icon-stop:before {
  content: "\e906";
}

.icon-play:before {
  content: "\e907";
}

.icon-globe:before {
  content: "\e908";
}

.icon-virtualJoystick:before {
  content: "\e909";
}

.icon-joystick:before {
  content: "\e90a";
}

#arenaFrame {
  background-color: white;
  border: solid 40px;
  display: flex;
  flex-direction: column;
  width: auto;
}
#arenaFrame .row {
  padding: 1em;
  display: flex;
  align-items: center;
}
#arenaFrame .row.header {
  background-color: lightgray;
}
#arenaFrame #enable {
  margin-right: 1.5em;
}
#arenaFrame #player {
  font-size: 200%;
  font-weight: bold;
}
#arenaFrame #zip {
  visibility: hidden;
}
#arenaFrame #zipLabel {
  font-size: 16px;
}
#arenaFrame #zipLabel .fileSelector {
  margin-top: 0.5em;
}
#arenaFrame #zipLabel .fileSelector input, #arenaFrame #zipLabel .fileSelector label {
  font-size: 16px;
  border: solid 1px gray;
  box-sizing: border-box;
  height: 2em;
  padding: 0 0.5em;
  outline: none;
  float: left;
}
#arenaFrame #zipLabel .fileSelector input {
  border-right: none;
  width: 14em;
  border-radius: 0.4em 0 0 0.4em;
}
#arenaFrame #zipLabel .fileSelector label {
  border-radius: 0 0.4em 0.4em 0;
  background: #4EB9D5;
  color: white;
  padding-top: 0.35em;
}

#arenaFrame.bot0 {
  border-color: #00FFFF;
}

#arenaFrame.bot1 {
  border-color: #00FF00;
}

#arenaFrame.bot2 {
  border-color: #FFFF00;
}

#arenaFrame.bot3 {
  border-color: #FF0000;
}

#arenaFrame.bot0.disabled {
  border-color: #446666;
}
#arenaFrame.bot0.disabled #player {
  color: gray;
}

#arenaFrame.bot1.disabled {
  border-color: #446644;
}
#arenaFrame.bot1.disabled #player {
  color: gray;
}

#arenaFrame.bot2.disabled {
  border-color: #666644;
}
#arenaFrame.bot2.disabled #player {
  color: gray;
}

#arenaFrame.bot3.disabled {
  border-color: #664444;
}
#arenaFrame.bot3.disabled #player {
  color: gray;
}

.botsPanel {
  background: white;
}
.botsPanel .botsRow {
  display: flex;
  width: 100%;
  height: 50%;
}
.botsPanel .botsRow .bot {
  width: 50%;
}
.botsPanel .botsRow .bot iframe {
  border: none;
  width: 100%;
  height: 100%;
}

.console .player0 {
  color: #00FFFF;
}
.console .player1 {
  color: #00FF00;
}
.console .player2 {
  color: #FFFF00;
}
.console .player3 {
  color: #FF0000;
}

.python {
  display: flex;
  flex-direction: column;
  background: var(--python-bg);
  font-size: 125%;
  font-family: monospace;
  width: 100%;
  height: 100%;
}
.python #pythonCode {
  width: 100%;
  height: 100%;
  font-size: 120%;
}
.python #pythonCode.hide {
  display: none;
}
.python #filesRow {
  display: flex;
  align-items: center;
}
.python #filesRow #filesList {
  display: flex;
  overflow-x: scroll;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.python #filesRow #filesList .file {
  display: flex;
  background: var(--python-file-bg);
  color: #999b99;
  border-left: solid 1px var(--python-file-active);
  border-right: solid 1px var(--python-file-active);
  padding: 0.3em;
  cursor: pointer;
  user-select: none;
}
.python #filesRow #filesList .file .renameFile, .python #filesRow #filesList .file .deleteFile {
  display: none;
  margin-left: 0.5em;
}
.python #filesRow #filesList .file.selected {
  background-color: var(--python-file-active);
  color: rgb(255, 255, 255);
  font-weight: bold;
}
.python #filesRow #filesList .file.selected .renameFile, .python #filesRow #filesList .file.selected .deleteFile {
  display: block;
}
.python #filesRow #filesList::-webkit-scrollbar {
  display: none;
}
.python #filesRow #addNewFile {
  padding: 0.3em 0.5em;
  color: white;
  cursor: pointer;
  user-select: none;
}

.componentsWindow, .objectsWindow {
  position: absolute;
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 0.5em;
  padding: 1em;
  top: 2em;
  left: 1em;
  font-size: 100%;
  width: 15em;
  height: 90%;
  display: flex;
  flex-direction: column;
}
.componentsWindow .buttons, .objectsWindow .buttons {
  display: flex;
  width: 100%;
  justify-content: space-between;
  box-sizing: border-box;
  font-size: 120%;
}
.componentsWindow .buttons div, .objectsWindow .buttons div {
  border: solid 2px var(--color-border);
  padding: 0.3em 0.5em;
  border-radius: 0.5em;
  cursor: pointer;
  user-select: none;
}
.componentsWindow .componentsList, .componentsWindow .objectsList, .objectsWindow .componentsList, .objectsWindow .objectsList {
  font-size: 120%;
  overflow: auto;
  flex-grow: 1;
  white-space: nowrap;
  margin-bottom: 1em;
}
.componentsWindow .componentsList ul, .componentsWindow .objectsList ul, .objectsWindow .componentsList ul, .objectsWindow .objectsList ul {
  list-style-type: none;
  padding-inline-start: 0;
}
.componentsWindow .componentsList ul ul, .componentsWindow .objectsList ul ul, .objectsWindow .componentsList ul ul, .objectsWindow .objectsList ul ul {
  padding-inline-start: 1em;
  list-style-type: "˪ ";
}
.componentsWindow .componentsList li, .componentsWindow .objectsList li, .objectsWindow .componentsList li, .objectsWindow .objectsList li {
  cursor: pointer;
  user-select: none;
}
.componentsWindow .componentsList li.selected, .componentsWindow .objectsList li.selected, .objectsWindow .componentsList li.selected, .objectsWindow .objectsList li.selected {
  background-color: var(--color-border);
}
.componentsWindow .componentsList li.ulHolder, .componentsWindow .objectsList li.ulHolder, .objectsWindow .componentsList li.ulHolder, .objectsWindow .objectsList li.ulHolder {
  list-style-type: none;
}

.objectID {
  position: absolute;
  top: 0.5em;
  right: 2em;
  width: 20em;
  color: white;
}

.settingsWindow {
  position: absolute;
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 0.5em;
  padding: 1em;
  top: 2em;
  right: 1em;
  font-size: 100%;
  width: 20em;
  height: 90%;
  display: flex;
  flex-direction: column;
}
.settingsWindow .settingsArea {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.settingsWindow .buttons {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  box-sizing: border-box;
  font-size: 90%;
}
.settingsWindow .buttons div {
  border: solid 2px var(--color-border);
  padding: 0.3em 0.5em;
  border-radius: 0.5em;
  cursor: pointer;
  user-select: none;
}
.settingsWindow .componentName {
  text-align: center;
  font-size: 120%;
  font-weight: bold;
}
.settingsWindow .configuration {
  padding: 0.5em 0;
}
.settingsWindow .configurationTitle {
  color: lightgray;
  margin-bottom: 0.1em;
}
.settingsWindow .slider {
  display: flex;
}
.settingsWindow .slider input[type=range] {
  flex-grow: 1;
}
.settingsWindow .slider input[type=text] {
  width: 3em;
  text-align: right;
}
.settingsWindow input[type=number] {
  width: 3em;
}
.settingsWindow .tooltip .tooltiptext {
  max-width: 10em;
}

.dialogWindow .selectImage, .dialogWindow .selectModel, .dialogWindow .editAnimationKeys {
  max-height: 60vh;
  display: flex;
  flex-direction: column;
}
.dialogWindow .selectImage .search, .dialogWindow .selectModel .search, .dialogWindow .editAnimationKeys .search {
  display: flex;
  margin-top: 0.5em;
}
.dialogWindow .selectImage .search input, .dialogWindow .selectModel .search input, .dialogWindow .editAnimationKeys .search input {
  font-size: 100%;
  width: 100%;
  background: #fff;
  color: #333;
  border: solid 1px #ccc;
  border-radius: 0.3em;
  padding: 0.2em 0.4em;
  margin-left: 0.5em;
  outline: none;
}
.dialogWindow .selectImage .images, .dialogWindow .selectImage .items, .dialogWindow .selectModel .images, .dialogWindow .selectModel .items, .dialogWindow .editAnimationKeys .images, .dialogWindow .editAnimationKeys .items {
  border: solid 1px var(--color-border);
  border-radius: 0.4em;
  margin-top: 0.5em;
  padding: 0.5em;
  overflow-y: auto;
  max-height: 20em;
}
.dialogWindow .selectImage .images .row, .dialogWindow .selectImage .items .row, .dialogWindow .selectModel .images .row, .dialogWindow .selectModel .items .row, .dialogWindow .editAnimationKeys .images .row, .dialogWindow .editAnimationKeys .items .row {
  display: flex;
}
.dialogWindow .selectImage .images .row .description, .dialogWindow .selectImage .items .row .description, .dialogWindow .selectModel .images .row .description, .dialogWindow .selectModel .items .row .description, .dialogWindow .editAnimationKeys .images .row .description, .dialogWindow .editAnimationKeys .items .row .description {
  border: solid 1px var(--color-border);
  flex-grow: 1;
  padding: 0 0.5em;
  color: #333;
}
.dialogWindow .selectImage .images .row .select, .dialogWindow .selectImage .items .row .select, .dialogWindow .selectModel .images .row .select, .dialogWindow .selectModel .items .row .select, .dialogWindow .editAnimationKeys .images .row .select, .dialogWindow .editAnimationKeys .items .row .select {
  border: solid 1px var(--color-border);
  padding: 0.5em;
  color: #333;
  cursor: pointer;
}
.dialogWindow .selectImage .images .row.hide, .dialogWindow .selectImage .items .row.hide, .dialogWindow .selectModel .images .row.hide, .dialogWindow .selectModel .items .row.hide, .dialogWindow .editAnimationKeys .images .row.hide, .dialogWindow .editAnimationKeys .items .row.hide {
  display: none;
}
.dialogWindow .selectImage table, .dialogWindow .selectModel table, .dialogWindow .editAnimationKeys table {
  border: solid 1px var(--color-border);
}
.dialogWindow .selectImage table th, .dialogWindow .selectModel table th, .dialogWindow .editAnimationKeys table th {
  border: solid 1px var(--color-border);
}
.dialogWindow .selectImage table th, .dialogWindow .selectImage table td, .dialogWindow .selectModel table th, .dialogWindow .selectModel table td, .dialogWindow .editAnimationKeys table th, .dialogWindow .editAnimationKeys table td {
  width: 3em;
  text-align: center;
}
.dialogWindow .selectImage table th input, .dialogWindow .selectImage table td input, .dialogWindow .selectModel table th input, .dialogWindow .selectModel table td input, .dialogWindow .editAnimationKeys table th input, .dialogWindow .editAnimationKeys table td input {
  width: 100%;
  font-size: 100%;
  box-sizing: border-box;
}
.dialogWindow .searchCount {
  margin-right: auto;
}

/* ── 내 로봇 불러오기 모달 ── */
.dbRobotList {
  min-width: 480px;
}
.dbRobotGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75em;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.25em 0.1em;
}
.dbRobotRow {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 10px;
  padding: 0.75em 0.5em 0.6em;
  background: #fafafa;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.dbRobotRow:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(38, 52, 163, 0.10);
}
.dbRobotThumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
  margin-bottom: 0.5em;
}
.dbRobotName {
  font-size: 0.88em;
  font-weight: 600;
  color: #222;
  text-align: center;
  margin-bottom: 0.5em;
  word-break: break-all;
  line-height: 1.3;
}
.dbRobotBtns {
  display: flex;
  gap: 0.4em;
  margin-top: 0.1em;
}
.dbRobotSelectBtn {
  font-size: 0.8em;
  font-weight: 600;
  font-family: "Nunito", sans-serif;
  padding: 0.3em 0.9em;
  border: none;
  border-radius: 0.35em;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.dbRobotSelectBtn:hover {
  background: #1e279a;
}
.dbRobotEmpty {
  padding: 2em 0;
  text-align: center;
  color: #999;
  font-size: 0.95em;
}
.dbRobotDeleteBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3em 0.4em;
  border: none;
  border-radius: 0.35em;
  background: #f0f0f0;
  color: #c0392b;
  cursor: pointer;
  transition: background 0.15s;
}
.dbRobotDeleteBtn:hover {
  background: #fce8e6;
}
.dbRobotDeleteBtn .material-symbols-rounded {
  font-size: 1.1em;
}

/* ── 내 월드 불러오기 모달 ── */
.dbWorldList {
  min-width: 480px;
}
.dbWorldGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75em;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.25em 0.1em;
}
.dbWorldRow {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 10px;
  padding: 0.75em 0.5em 0.6em;
  background: #fafafa;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.dbWorldRow:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(38, 52, 163, 0.10);
}
.dbWorldThumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
  margin-bottom: 0.5em;
}
.dbWorldName {
  font-size: 0.88em;
  font-weight: 600;
  color: #222;
  text-align: center;
  margin-bottom: 0.5em;
  word-break: break-all;
  line-height: 1.3;
}
.dbWorldBtns {
  display: flex;
  gap: 0.4em;
  margin-top: 0.1em;
}
.dbWorldSelectBtn {
  font-size: 0.8em;
  font-weight: 600;
  font-family: "Nunito", sans-serif;
  padding: 0.3em 0.9em;
  border: none;
  border-radius: 0.35em;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.dbWorldSelectBtn:hover {
  background: #1e279a;
}
.dbWorldEmpty {
  padding: 2em 0;
  text-align: center;
  color: #999;
  font-size: 0.95em;
}
.dbWorldDeleteBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3em 0.4em;
  border: none;
  border-radius: 0.35em;
  background: #f0f0f0;
  color: #c0392b;
  cursor: pointer;
  transition: background 0.15s;
}
.dbWorldDeleteBtn:hover {
  background: #fce8e6;
}
.dbWorldDeleteBtn .material-symbols-rounded {
  font-size: 1.1em;
}

/* ==========================================================================
   Project workspace refresh (Bridge Bot style)
   - Applies to the main editor page layout
   ========================================================================== */
body {
  background: #f5f7fb;
}

header {
  height: 58px;
  padding: 0 14px;
  background: #ffffff;
  border-bottom: 1px solid #e7ebf3;
}

header .appName {
  font-size: 1.25em;
  color: #4f46e5;
}

header .appName span {
  display: none;
}

header #projectName {
  min-width: 220px;
  border-radius: 10px;
  border-color: #d9deea;
  background: #f9fbff;
}

header nav ul.panelTabs {
  gap: 0.45em;
  margin-left: 0.5em;
}

header nav ul.panelTabs li {
  width: auto;
  height: 34px;
  padding: 0 0.7em;
  border-radius: 10px;
  gap: 0.28em;
  color: #6f7787;
  font-size: 0.82em;
  font-weight: 700;
  border: 1px solid transparent;
}

header nav ul.panelTabs li .tab-label {
  display: inline;
}

header nav ul.panelTabs li.active {
  background: #eef2ff;
  color: #4338ca;
  border-color: #d9dfff;
}

header nav ul.panelTabs li .material-symbols-rounded {
  font-size: 1.2em;
}

header .authBtn,
header #userArea {
  font-size: 0.82rem;
}

main {
  background: #f5f7fb;
}

main nav {
  width: 58px;
  border-radius: 0;
  border: none;
  border-right: 1px solid #e5eaf3;
  background: #ffffff;
}

nav .menuBar .menuItem {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.panels {
  background: #f5f7fb;
}

.panels .panel {
  border-left: 1px solid #eef1f6;
}

/* Python editor panel (left card style) */
.python {
  background: #ffffff;
}

.python #pythonCode {
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.python #filesRow {
  background: #f8fafc;
  border-top: 1px solid #e9edf5;
  padding: 0 0.35em;
  min-height: 38px;
}

.python #filesRow #filesList .file {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8a91a1;
  padding: 0.48em 0.7em;
}

.python #filesRow #filesList .file.selected {
  background: #ffffff;
  color: #2d3648;
  border-bottom-color: #4f46e5;
}

.python #filesRow #addNewFile {
  color: #4f46e5;
}

/* Blockly / sim split buttons */
.blockSplitToggleGroup,
.pythonSplitToggle {
  background: #ffffff;
  border: 1px solid #e4e8f2;
  box-shadow: -2px 0 8px rgba(26, 34, 56, 0.08);
}

.simSplitToggle.active,
.codeViewToggle.active {
  color: #4f46e5;
}

/* Simulator panel as white card */
#simPanel {
  background: #ffffff;
}

#renderCanvas {
  background: #f2f4f8;
}

.runSim,
.startSim,
.stopSim,
.world,
.reset {
  top: 0.85em;
  color: #4f5565;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dfe5f0;
  border-radius: 10px;
  width: 1.25em;
  height: 1.25em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 175%;
  opacity: 1;
}

.runSim { left: 0.9em; }
.startSim { left: 0.9em; }
.stopSim { left: 2.35em; }
.world { left: 3.8em; }
.reset { left: 5.25em; }

.cameraSelector,
.cameraSelectorShort {
  top: 0.8em;
  right: 0.9em;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dfe5f0;
  border-radius: 10px;
  color: #4f5565;
}

/* Bottom information cards */
.console {
  left: 0.9em;
  right: 18.5em;
  bottom: 0.9em;
  height: 9.2em;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e4e8f2;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.08);
  color: #3f4758;
  opacity: 1;
}

.console .content {
  top: 1.4em;
  left: 0.85em;
  right: 0.85em;
  bottom: 0.7em;
  color: #3f4758;
  font-size: 0.75em;
  overflow-y: auto;
}

.console .chevron {
  right: 0.4em;
  top: -0.2em;
  color: #7a8090;
}

.console .clear {
  color: #7a8090;
}

.sensorReadings {
  top: auto;
  bottom: 0.9em;
  right: 0.9em;
  width: 17em;
  max-height: 9.2em;
  border: 1px solid #e4e8f2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.08);
  color: #3f4758;
  padding: 0.7em 0.85em;
}

.sensorReadings .sensorReading table.sensorValues td {
  border: 1px solid #e7ecf4;
  color: #445066;
  font-size: 0.84em;
}

/* Keep hide behavior, but preserve smooth collapse */
.sensorReadings.hide {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* 블록 인덱스 레이블 */
.blockLabel {
  font-size: 9px !important;
  font-weight: bold !important;
  fill: rgba(255, 255, 255, 0.65) !important;
  font-family: monospace !important;
}
