* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4a4a4a, #3a3a3a);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5a5a5a, #4a4a4a);
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-corner {
  background: transparent;
}
html,
body {
  font-family: Arial, sans-serif;
  background-color: #1a1a1a;
  color: #e0e0e0;
  overflow: hidden;
  min-height: 100%;
}
.root-container {
  display: flex;
  height: 100vh;
  gap: 8px;
  padding: 8px;
  background-color: #1a1a1a;
}
.sidebar {
  width: 11%;
  background-color: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mode-config-panel {
  width: 24%;
  background-color: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar-title {
  font-size: 18px;
  font-weight: bold;
  color: #00bcd4;
  margin-bottom: 16px;
  border-bottom: 2px solid #00bcd4;
  padding-bottom: 8px;
}
.mode-config-title {
  font-size: 16px;
  font-weight: bold;
  color: #00bcd4;
  margin-bottom: 16px;
  border-bottom: 1px solid #404040;
  padding-bottom: 8px;
}
.mode-config-content {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.mode-config-content.active {
  display: flex;
}
.center-container {
  flex: 1;
  background-color: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.center-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid #404040;
  padding-bottom: 8px;
  position: sticky;
  top: -20px;
  z-index: 10;
  background-color: inherit;
  margin-left: -20px;
  margin-right: -20px;
  padding: 20px 20px 8px 20px;
}
.center-tab {
  padding: 8px 16px;
  background-color: #3a3a3a;
  border: 1px solid #404040;
  border-radius: 4px 4px 0 0;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.center-tab:hover {
  background-color: #4a4a4a;
  border-color: #00bcd4;
}
.center-tab.active {
  background-color: #00bcd4;
  color: #1a1a1a;
  border-color: #00bcd4;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.right-sidebar {
  width: 20%;
  background-color: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.right-sidebar-title {
  font-size: 14px;
  font-weight: bold;
  color: #00bcd4;
  margin-bottom: 12px;
}
.menu-section {
  margin-bottom: 20px;
}
.menu-section-title {
  font-size: 14px;
  font-weight: bold;
  color: #90caf9;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.loop-textarea-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.loop-textarea-group textarea {
  flex: 1;
  width: 100%;
  min-height: 100px;
  resize: none !important;
}
textarea {
  resize: none !important;
}
.loop-textarea-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.loop-textarea-label span {
  font-size: 14px;
  color: #b0bec5;
}
.loop-line-count {
  font-size: 12px;
  color: #00bcd4;
}
