/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .sticky {
    position: sticky;
  }
  .left-1 {
    left: calc(var(--spacing) * 1);
  }
  .isolate {
    isolation: isolate;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .container\! {
    width: 100% !important;
    @media (width >= 40rem) {
      max-width: 40rem !important;
    }
    @media (width >= 48rem) {
      max-width: 48rem !important;
    }
    @media (width >= 64rem) {
      max-width: 64rem !important;
    }
    @media (width >= 80rem) {
      max-width: 80rem !important;
    }
    @media (width >= 96rem) {
      max-width: 96rem !important;
    }
  }
  .\!block {
    display: block !important;
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .inline-block {
    display: inline-block;
  }
  .table {
    display: table;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .resize {
    resize: both;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .italic {
    font-style: italic;
  }
  .line-through {
    text-decoration-line: line-through;
  }
  .underline {
    text-decoration-line: underline;
  }
  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .invert {
    --tw-invert: invert(100%);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1e1e1e;
  color: #d4d4d4;
}
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 48px;
  background: #2d2d2d;
  border-bottom: 1px solid #404040;
}
.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #007acc;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
.navbar-center {
  display: flex;
  gap: 4px;
}
.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-item {
  position: relative;
}
.menu-button {
  padding: 6px 12px;
  background: transparent;
  color: #cccccc;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}
.menu-button:hover {
  background: #3c3c3c;
  color: #ffffff;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #3c3c3c;
  border: 1px solid #555;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  margin-top: 4px;
  display: none;
  flex-direction: column;
}
.dropdown-menu.show {
  display: flex;
}
.dropdown-item {
  padding: 8px 16px;
  background: transparent;
  color: #cccccc;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.dropdown-item:hover {
  background: #2d2d2d;
  color: #ffffff;
}
.dropdown-item:first-child {
  border-radius: 4px 4px 0 0;
}
.dropdown-item:last-child {
  border-radius: 0 0 4px 4px;
}
.mode-select {
  padding: 6px 10px;
  background: #3c3c3c;
  border: 1px solid #555;
  border-radius: 4px;
  color: #d4d4d4;
  font-size: 13px;
  cursor: pointer;
}
.mode-select:focus {
  outline: none;
  border-color: #007acc;
}
.toggle-btn {
  width: 32px;
  height: 32px;
  padding: 6px;
  background: transparent;
  border: 1px solid #555;
  border-radius: 4px;
  color: #858585;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.toggle-btn:hover {
  background: #3c3c3c;
  color: #cccccc;
}
.toggle-btn.active {
  background: #0e639c;
  border-color: #0e639c;
  color: #ffffff;
}
.toggle-btn svg {
  width: 16px;
  height: 16px;
}
.editor-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.left-panel {
  width: 250px;
  background: #252526;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.explorer-panel {
  flex: 1;
  background: #252526;
  overflow-y: auto;
  padding: 4px 0;
}
.explorer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #858585;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  user-select: none;
}
.explorer-actions {
  display: flex;
  gap: 2px;
}
.explorer-action-btn {
  width: 20px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 3px;
  color: #858585;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.explorer-action-btn:hover {
  background: #3c3c3c;
  color: #cccccc;
}
.explorer-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 13px;
  color: #cccccc;
  transition: background 0.15s;
  user-select: none;
  position: relative;
}
.explorer-item:hover {
  background: #2a2d2e;
}
.explorer-item.active {
  background: #37373d;
  color: #ffffff;
}
.explorer-item.closed {
  opacity: 0.5;
}
.explorer-item.closed .explorer-name {
  font-style: italic;
  color: #858585;
}
.explorer-chevron {
  width: 16px;
  font-size: 10px;
  color: #858585;
  flex-shrink: 0;
  text-align: center;
  transition: transform 0.15s;
}
.explorer-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.explorer-icon-spacer {
  width: 16px;
  flex-shrink: 0;
}
.explorer-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: system-ui, -apple-system, sans-serif;
}
.explorer-empty {
  padding: 24px 12px;
  font-size: 12px;
  color: #858585;
  text-align: center;
  line-height: 1.6;
}
.outline-panel {
  flex: 1;
  background: #252526;
  overflow-y: auto;
  padding: 10px;
}
.outline-item {
  padding: 4px 0;
  cursor: pointer;
  font-size: 13px;
  color: #cccccc;
  transition: background-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  border-left: 2px solid transparent;
}
.outline-item:hover {
  color: #ffffff;
  background: #2a2d2e;
}
.outline-item.active {
  background: #0e639c;
  color: #ffffff;
  border-left-color: #1177bb;
}
.outline-item.highlighted {
  background: #264f78;
  color: #ffffff;
  border-left-color: #0e639c;
}
.outline-item.depth-0 {
  background: rgba(37, 37, 38, 0.3);
  font-weight: 600;
}
.outline-item.depth-1 {
  background: rgba(37, 37, 38, 0.5);
}
.outline-item.depth-2 {
  background: rgba(37, 37, 38, 0.7);
}
.outline-item.depth-3 {
  background: rgba(37, 37, 38, 0.85);
}
.outline-item.depth-4 {
  background: rgba(37, 37, 38, 1);
}
.outline-icon {
  margin-right: 4px;
  font-size: 10px;
  color: #858585;
  flex-shrink: 0;
  width: 12px;
  display: inline-block;
}
.outline-icon-spacer {
  width: 16px;
  flex-shrink: 0;
  display: inline-block;
}
.center-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  position: relative;
}
.editor-tabs-container {
  display: flex;
  align-items: center;
  background: #252526;
  border-bottom: 1px solid #2d2d2d;
  height: 35px;
  flex-shrink: 0;
}
.file-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  align-items: stretch;
  height: 100%;
}
.file-tabs::-webkit-scrollbar {
  height: 0;
}
.file-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #2d2d2d;
  color: #969696;
  border: none;
  border-right: 1px solid #252526;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  height: 100%;
  min-width: 120px;
}
.file-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: transparent;
  transition: background 0.15s;
}
.file-tab:hover {
  background: #2a2a2a;
  color: #cccccc;
}
.file-tab.active {
  background: #1e1e1e;
  color: #ffffff;
}
.file-tab.active::after {
  background: #007acc;
  height: 2px;
}
.file-tab-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: system-ui, -apple-system, sans-serif;
}
.file-tab-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transition: all 0.15s;
  flex-shrink: 0;
}
.file-tab:hover .file-tab-close {
  opacity: 0.8;
}
.file-tab-close:hover {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1 !important;
}
.new-file-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 100%;
  background: transparent;
  border: none;
  border-left: 1px solid #2d2d2d;
  color: #858585;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.new-file-btn:hover {
  background: #2a2a2a;
  color: #cccccc;
}
.cm-editor-container {
  flex: 1;
  overflow: hidden;
  background: #1e1e1e;
}
.cm-editor-container .cm-editor {
  height: 100%;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
}
.cm-editor-container .cm-scroller {
  font-family: 'Consolas', 'Monaco', monospace;
}
.cm-editor {
  background: #1e1e1e;
  color: #d4d4d4;
}
.cm-editor .cm-content {
  caret-color: white;
}
.cm-editor .cm-cursor {
  border-left-color: white;
}
.cm-editor .cm-selectionBackground {
  background: #264f78 !important;
}
.cm-editor .cm-gutters {
  background: #1e1e1e;
  color: #858585;
  border-right: 1px solid #404040;
}
.cm-editor .cm-activeLineGutter {
  background: #2d2d2d;
}
.cm-editor .cm-activeLine {
  background: #2d2d2d;
}
.cm-editor .cm-string {
  color: #ce9178;
}
.cm-editor .cm-number {
  color: #b5cea8;
}
.cm-editor .cm-bool, .cm-editor .cm-null {
  color: #569cd6;
}
.cm-editor .cm-property {
  color: #9cdcfe;
}
.cm-editor .cm-punctuation {
  color: #d4d4d4;
}
.cm-editor .cm-comment {
  color: #6a9955;
}
.cm-editor .cm-foldGutter {
  cursor: pointer;
  user-select: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.cm-editor .cm-foldGutter:hover {
  opacity: 1;
}
.cm-editor .cm-foldPlaceholder {
  background: #2d2d2d;
  border: 1px solid #404040;
  border-radius: 3px;
  color: #858585;
  cursor: pointer;
  padding: 0 8px;
  margin: 0 4px;
  display: inline-block;
  font-family: monospace;
  font-size: 12px;
  transition: background 0.2s;
}
.cm-editor .cm-foldPlaceholder:hover {
  background: #3c3c3c;
  color: #d4d4d4;
}
.csv-container {
  flex: 1;
  overflow: auto;
  background: #1e1e1e;
}
.csv-table {
  width: 100%;
  border-collapse: collapse;
  color: #d4d4d4;
}
.csv-table th, .csv-table td {
  border: 1px solid #404040;
  padding: 6px;
  text-align: left;
}
.csv-table th {
  background: #2d2d2d;
  font-weight: bold;
  position: sticky;
  top: 0;
}
.csv-table td {
  background: #1e1e1e;
}
.csv-table td:first-child {
  background: #252526;
  color: #858585;
  text-align: right;
  user-select: none;
  font-weight: bold;
}
.csv-table input {
  width: 100%;
  background: transparent;
  border: none;
  color: #d4d4d4;
  padding: 2px;
  outline: none;
}
.csv-table input:focus {
  background: #2d2d2d;
}
.csv-match {
  background: #515c6a !important;
}
.bottom-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;
  background: #007acc;
  color: white;
  font-size: 12px;
}
.status-left, .status-right {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.resizer {
  width: 4px;
  background: #404040;
  cursor: col-resize;
  flex-shrink: 0;
  transition: background 0.2s;
}
.resizer:hover {
  background: #007acc;
}
.resizer:active {
  background: #1177bb;
}
.right-panel {
  width: 350px;
  background: #252526;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.panel-tabs {
  display: flex;
  background: #2d2d2d;
  border-bottom: 1px solid #404040;
  flex-shrink: 0;
}
.tab-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  color: #858585;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.tab-btn:hover {
  color: #cccccc;
  background: #3c3c3c;
}
.tab-btn.active {
  color: #ffffff;
  border-bottom-color: #007acc;
  background: #252526;
}
.tab-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tab-pane {
  display: none;
  flex: 1;
  overflow: hidden;
  flex-direction: column;
}
.tab-pane.active {
  display: flex;
}
.search-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px;
  overflow: hidden;
}
.search-panel input {
  width: 100%;
  padding: 6px;
  background: #3c3c3c;
  border: 1px solid #555;
  border-radius: 4px;
  color: #d4d4d4;
  outline: none;
  flex-shrink: 0;
}
.search-panel input:focus {
  border-color: #007acc;
}
.search-results {
  flex: 1;
  overflow-y: auto;
  margin-top: 10px;
}
.search-item {
  padding: 5px;
  cursor: pointer;
  font-size: 12px;
  border-bottom: 1px solid #404040;
}
.search-item:hover {
  background: #2a2d2e;
}
.search-item.active {
  background: #0e639c;
  color: #ffffff;
}
.error-overlay {
  position: absolute;
  bottom: 40px;
  left: 10px;
  right: 10px;
  background: rgba(220, 38, 38, 0.95);
  border: 2px solid #ef4444;
  border-radius: 6px;
  padding: 12px 16px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.error-content {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.error-close-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.error-close-btn:hover {
  background: #dc2626;
}
.error-message {
  flex: 1;
  color: white;
  font-size: 13px;
  font-family: 'Consolas', 'Monaco', monospace;
  line-height: 1.5;
  word-break: break-word;
}
.transform-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px;
  gap: 10px;
  overflow-y: auto;
}
.transform-help {
  display: flex;
  gap: 8px;
  align-items: center;
}
.help-toggle-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: #3c3c3c;
  color: #cccccc;
  border: 1px solid #555;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}
.help-toggle-btn:hover {
  background: #4e4e4e;
  color: #ffffff;
}
.example-select {
  flex: 1;
  padding: 6px 10px;
  background: #3c3c3c;
  border: 1px solid #555;
  border-radius: 4px;
  color: #d4d4d4;
  font-size: 12px;
  cursor: pointer;
}
.example-select:focus {
  outline: none;
  border-color: #007acc;
}
.help-content {
  padding: 12px;
  background: #2d2d2d;
  border: 1px solid #555;
  border-radius: 4px;
  font-size: 12px;
  color: #cccccc;
}
.help-section h4 {
  margin: 0 0 8px 0;
  color: #007acc;
  font-size: 13px;
  font-weight: 600;
}
.help-section p {
  margin: 0 0 8px 0;
  line-height: 1.5;
}
.help-section ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.help-section li {
  margin-bottom: 4px;
  line-height: 1.5;
}
.help-section code {
  background: #1e1e1e;
  padding: 2px 6px;
  border-radius: 3px;
  color: #ce9178;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 11px;
}
.help-link {
  margin: 12px 0 0 0;
  padding-top: 8px;
  border-top: 1px solid #444;
}
.help-link a {
  color: #4fc3f7;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}
.help-link a:hover {
  color: #81d4fa;
  text-decoration: underline;
}
.transform-mode {
  display: flex;
  gap: 12px;
  padding: 8px;
  background: #2d2d2d;
  border-radius: 4px;
}
.transform-mode label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #cccccc;
  font-size: 12px;
  cursor: pointer;
}
.transform-mode input[type="radio"] {
  cursor: pointer;
}
.transform-input-group, .transform-result-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.transform-label {
  font-size: 12px;
  color: #cccccc;
  font-weight: 600;
}
.transform-input {
  width: 100%;
  min-height: 80px;
  padding: 8px;
  background: #1e1e1e;
  border: 1px solid #555;
  border-radius: 4px;
  color: #d4d4d4;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  resize: vertical;
  outline: none;
}
.transform-input:focus {
  border-color: #007acc;
}
.transform-actions {
  display: flex;
  gap: 8px;
}
.transform-btn {
  flex: 1;
  padding: 8px 16px;
  background: #0e639c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}
.transform-btn:hover {
  background: #1177bb;
}
.transform-btn.secondary {
  background: #3c3c3c;
}
.transform-btn.secondary:hover {
  background: #4e4e4e;
}
.transform-result {
  width: 100%;
  min-height: 200px;
  max-height: 400px;
  padding: 8px;
  background: #1e1e1e;
  border: 1px solid #555;
  border-radius: 4px;
  color: #d4d4d4;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  overflow: auto;
  white-space: pre;
  margin: 0;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #1e1e1e;
}
::-webkit-scrollbar-thumb {
  background: #424242;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4e4e4e;
}
.context-menu {
  position: fixed;
  min-width: 200px;
  background: #3c3c3c;
  border: 1px solid #555;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  padding: 4px 0;
}
.context-menu-item {
  padding: 8px 16px;
  color: #cccccc;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.context-menu-item:hover {
  background: #2d2d2d;
  color: #ffffff;
}
.context-menu-divider {
  height: 1px;
  background: #555;
  margin: 4px 0;
}
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.dialog-container {
  background: #2d2d2d;
  border: 1px solid #555;
  border-radius: 8px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #404040;
}
.dialog-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}
.dialog-close-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #858585;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s;
}
.dialog-close-btn:hover {
  background: #3c3c3c;
  color: #ffffff;
}
.dialog-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
}
.dialog-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dialog-field label {
  font-size: 13px;
  color: #cccccc;
  font-weight: 500;
}
.dialog-input, .dialog-select {
  padding: 8px 12px;
  background: #1e1e1e;
  border: 1px solid #555;
  border-radius: 4px;
  color: #d4d4d4;
  font-size: 14px;
  font-family: 'Consolas', 'Monaco', monospace;
  outline: none;
  transition: border-color 0.2s;
}
.dialog-input:focus, .dialog-select:focus {
  border-color: #007acc;
}
.dialog-input[readonly] {
  background: #252526;
  color: #858585;
  cursor: not-allowed;
}
.file-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #555;
  border-radius: 4px;
  background: #1e1e1e;
}
.file-list-item {
  padding: 10px 12px;
  color: #cccccc;
  font-size: 13px;
  font-family: 'Consolas', 'Monaco', monospace;
  cursor: pointer;
  transition: all 0.15s;
  border-bottom: 1px solid #2d2d2d;
}
.file-list-item:last-child {
  border-bottom: none;
}
.file-list-item:hover {
  background: #2a2d2e;
  color: #ffffff;
}
.file-list-item.selected {
  background: #0e639c;
  color: #ffffff;
}
.empty-message {
  padding: 40px 20px;
  text-align: center;
  color: #858585;
  font-size: 13px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #404040;
}
.dialog-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.dialog-btn-cancel {
  background: #3c3c3c;
  color: #cccccc;
}
.dialog-btn-cancel:hover {
  background: #4e4e4e;
  color: #ffffff;
}
.dialog-btn-primary {
  background: #0e639c;
  color: #ffffff;
}
.dialog-btn-primary:hover {
  background: #1177bb;
}
.dialog-btn-primary:active {
  background: #005a9e;
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}
