html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1a1a1a;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #ffffff 100%);
  background-attachment: fixed;
  scroll-behavior: smooth;
}

.container {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 420px 5px 1fr;
  grid-template-areas: "inspector divider main-area";
  min-width: 1900px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* 메인 영역 (tab bar + theme bar + content) */
.main-area {
  /* grid-area: main-area;
  display: grid;
  grid-template-rows: 70px 100px 1fr;
  grid-template-areas:
    "tab-bar"
    "theme-bar"
    "content"; */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 0 20px;
  padding: 0 24px
}

.theme-selector-container {
  position: absolute;
  top: 10px;
  left: 13%;
  z-index: 2000;
  display: none;
}

/* 테마 셀렉터 스타일 - 탭 버튼과 일관성 있는 디자인 */
#theme-selector {
  background: rgb(21 21 21 / 70%);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(115 115 115);
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #dfdfdf;
  border-radius: 10px;
  position: relative;
  font-family: inherit;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  min-width: 150px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  margin: 0 auto;
}

#theme-selector::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

#theme-selector:hover::before {
  left: 100%;
}

#theme-selector:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #1a202c;
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a202c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

#theme-selector:focus {
  outline: 2px solid #4a5568;
  outline-offset: 2px;
  box-shadow: 
    0 0 0 4px rgba(74, 85, 104, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

#theme-selector option {
  background: #ffffff;
  color: #1a202c;
  padding: 8px 12px;
  font-weight: 500;
}

/* 탭 바 스타일 - 모던 미니멀 디자인 */
.tab-bar {
  grid-area: tab-bar;
  display: flex;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(250,251,252,0.98) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  height: 70px;
  overflow: hidden;
  align-items: center;
  gap: 4px;
}


.tab-btn {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  border-radius: 10px;
  position: relative;
  font-family: inherit;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
  transition: left 0.4s ease;
}

.tab-btn:hover::before {
  left: 100%;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #1a202c;
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  color: white;
  border-color: transparent;
  box-shadow: 
    0 4px 20px rgba(45, 55, 72, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1px;
}

.theme-bar {
  grid-area: theme-bar;
  display: flex;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 251, 252, 0.98) 100%);
  backdrop-filter: blur(20px);
  width: 100%;
  height: 105px;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  gap: 4px;
}

.theme-preview-container {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0 8px;
  min-width: max-content;
}

.theme-preview-item {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  width: 300px;
}

.theme-preview-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.theme-preview-item.active {
  border: 2px solid #0969da;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(9, 105, 218, 0.3);
}

.theme-preview-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-header {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 6px 8px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  color: #495057;
}

.preview-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #e9ecef;
  /* padding: 4px; */
  padding: 2px 4px;
}

.preview-cell {
  /* padding: 4px 8px; */
  padding: 0px 8px;
  font-size: 10px;
  text-align: center;
  border-radius: 2px;
}

.preview-cell.header {
  background: #6c757d;
  color: white;
  font-weight: 600;
}

.preview-cell.data {
  background: white;
  color: #495057;
}

.preview-cell.data.alt {
  background: #f8f9fa;
}

/* 테마별 미리보기 색상 */
.theme-preview-item[data-theme="gray"] .preview-cell.header {
  background: #585858;
}

.theme-preview-item[data-theme="gray"] .preview-cell.data.alt {
  background: #f7f7f7;
}

.theme-preview-item[data-theme="default"] .preview-cell.header {
  background: #3d5575;
}

.theme-preview-item[data-theme="default"] .preview-cell.data.alt {
  background: #fcfcfd;
}

.theme-preview-item[data-theme="grace"] .preview-cell.header {
  background: #a0a3cf;
}

.theme-preview-item[data-theme="grace"] .preview-cell.data.alt {
  background: #fcfcfd;
}

.theme-preview-item[data-theme="material"] .preview-cell.header {
  background: #6082e6;
}

.theme-preview-item[data-theme="material"] .preview-cell.data.alt {
  background: #f3f3ff;
}

.theme-preview-item[data-theme="mint"] .preview-cell.header {
  background: #85c3ca;
}

.theme-preview-item[data-theme="mint"] .preview-cell.data.alt {
  background: #fcfdfd;
}

.theme-preview-item[data-theme="simple"] .preview-cell.header {
  background: #fff;
  color: #3ea9ef;
}

.theme-preview-item[data-theme="simple"] .preview-cell.data.alt {
  background: #fafcfd;
}

/* 탭 컨텐츠 영역 */
.tab-content-area {
  grid-area: content;
  background: #ffffff;
  backdrop-filter: blur(10px);
  flex: 1;
  height: 100%;
  overflow: auto;
  position: relative;
}

/* 탭 컨텐츠 - 모노크롬 글래스모피즘 디자인 */
.tab-content { 
  display: none; 
  padding: 15px;
  padding-bottom: 0;
  height: calc(100vh - 240px);
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: auto;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(248, 248, 248, 0.8) 100%);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05) inset;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  margin: 20px 0px;
}

/* sheet div 요소들이 잘리지 않도록 설정 */
.tab-content div[id^="sheetDiv"] {
  min-width: max-content;
}

.tab-content.active { 
  display: block;
}

/* Tab content 내부 요소들 스타일링 */
.tab-content h2 {
  color: #555; /* 중간 회색 텍스트 */
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid #bbb; /* 테두리 색상 변경 */
  letter-spacing: -0.02em;
}

.tab-content .explain {
  background: linear-gradient(135deg, #e6e6e6, #f9f9f9); /* 부드러운 그라데이션 배경 */
  border-left: 4px solid #888; /* 더 세련된 회색 테두리 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 약간의 그림자 추가 */
  padding: 16px 20px;
  border-radius: 8px;
  margin: 15px 0;
  position: relative;
  /* position: static; */
  /* bottom: 50px; */
}

.tab-content .explain p {
  margin: 0;
  line-height: 1.5;
}

/* 구분선 추가 */
.tab-content br {
  display: block;
  margin: 16px 0;
  content: "";
  border-bottom: 1px solid #e9ecef;
}

.tab-content .infoArea {
  box-shadow: inset 0 0 0 3px #cbcbcb;
  border-radius: 5px;
  box-sizing: border-box;
}

.tab-content .infoAreaClear {
  /* border: none !important; */
  box-shadow: none !important;
}

.tab-content .infoAreaRound {
  border-radius: 12px !important;
}

.tab-content .tabSheetMainDivTag, .tab-content .tabFocusCursorTag {
  display: none;
}

.inspector-guide-content {
  max-width: 500px;
  overflow-y: auto;
  padding: 32px 28px;
  box-sizing: border-box;
  text-align: center;
  position: fixed;
  z-index: 2;
  top: 30%;
}

.inspector-guide-content h3 {
  margin: 0 0 16px 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.4em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.inspector-guide-content p {
  margin: 0 0 24px 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 0.95em;
}

.guide-content {
  max-width: 420px;
  overflow-y: auto;
  padding: 12px;
  box-sizing: border-box;
}

.guide-content h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 14px;
}

.guide-content p {
  margin: 0 0 4px 0;
  color: #666;
  line-height: 1.4;
  font-size: 12px;
  /* text-overflow: ellipsis;
  white-space: pre;
  overflow: hidden; */
}

/* Inspector 패널 - 프리미엄 모노크롬 디자인 */
.inspector-panel {
  grid-area: inspector;
  position: relative;
  min-height: 900px;
  height: 100vh;
  background: 
    linear-gradient(145deg, 
      rgba(15, 15, 15, 0.95) 0%, 
      rgba(25, 25, 25, 0.98) 30%,
      rgba(10, 10, 10, 0.96) 70%,
      rgba(20, 20, 20, 0.95) 100%),
    radial-gradient(ellipse at top right, 
      rgba(255, 255, 255, 0.02) 0%, 
      transparent 50%),
    radial-gradient(ellipse at bottom left, 
      rgba(255, 255, 255, 0.01) 0%, 
      transparent 50%);
  backdrop-filter: blur(40px) saturate(180%);
  color: #c6c6c6;
  z-index: 1000;
  box-shadow: 
    6px 0 40px rgba(0, 0, 0, 0.4),
    inset -1px 0 0 rgba(255, 255, 255, 0.08),
    inset 1px 0 0 rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', 'SF Pro Text', sans-serif;
  contain: none;
  border-radius: 0 24px 0 0;
  overflow-y: auto;
}

/* 프리미엄 스크롤바 디자인 */
.inspector-panel::-webkit-scrollbar {
  width: 8px;
}

.inspector-panel::-webkit-scrollbar-track {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0.05) 100%);
  border-radius: 4px;
  margin: 4px 0;
}

.inspector-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.25) 0%, 
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.25) 100%);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.3);
}

.inspector-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.35) 0%, 
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.35) 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.4);
}

.guide-steps {
  text-align: left;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.03) 0%, 
    rgba(255, 255, 255, 0.01) 100%);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.step {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.step:last-child {
  margin-bottom: 0;
}

.step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.6) 0%, 
    rgba(255, 255, 255, 0.3) 100%);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Inspector 패널이 활성화되면 가이드 숨김 */
.inspector-panel.active .inspector-guide {
  display: none;
}

/* Inspector 콘텐츠 - 프리미엄 간격 및 스타일 */
.inspector-panel > div {
  padding: 0 28px 28px 28px;
  position: relative;
  z-index: 3;
}

/* 섹션 제목 - 고급스러운 디자인 */
.inspector-panel strong {
  display: inline-block;
  font-size: 1.15em;
  /* color: #ffffff; */
  color: #c6c6c6;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 28px;
  padding: 12px 18px 12px 20px;
  position: relative;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    rgba(255, 255, 255, 0.04) 100%);
  border-radius: 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.inspector-panel strong:hover {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.12) 0%, 
    rgba(255, 255, 255, 0.06) 100%);
  border-left-color: rgba(255, 255, 255, 0.8);
  transform: translateX(2px);
}

.inspector-panel strong::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, #c6c6c6 0%, #272727 100%);
  border-radius: 0 2px 2px 0;
}

.inspector-panel strong:first-of-type {
  margin-top: 0;
}

/* 태그 정보 스타일 - Monaco Editor 제외 */
.inspector-panel > #inspector-content > div:not([id*="editor"]):not([class*="monaco"]) {
  margin-bottom: 18px;
  line-height: 1.6;
}

/* CSS 클래스 이름 스타일 - 개선된 디자인 */
.css-class-name {
  font-weight: 600;
  font-size: 1.1em;
  margin: 6px 0 6px 0;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgb(175 181 175 / 15%) 0%, rgb(105 108 105 / 15%) 100%);
  border: 1px solid rgb(143 152 143 / 30%);
  border-radius: 8px;
  border-left: 4px solid #bebebe;
  position: relative;
  letter-spacing: -0.01em;
  backdrop-filter: blur(4px);
}

/* CSS 에디터 */
.css-edit {
  width: 100%;
  height: 120px;
  font-family: 'Fira Code', 'Courier New', monospace;
  background: #1a1a1a;
  color: #f8f8f2;
  border: 1px solid #404040;
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  resize: vertical;
}

.css-edit:focus {
  outline: none;
  border-color: #64b5f6;
  box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
}

/* 코드 섹션 스타일 - Monaco Editor 스타일 */
.code-section {
  background: #1e1e1e;
  border: 1px solid #454545;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
  font-family: 'Fira Code', 'Courier New', 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #d4d4d4;
  overflow-x: auto;
  position: relative;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
}

.code-section .css-selector {
  color: #d7ba7d;
  font-weight: 600;
}

.code-section .css-property {
  color: #92c5f8;
  margin-left: 16px;
}

.code-section .css-value {
  color: #ce9178;
}

.code-section .css-bracket {
  color: #ffd700;
  font-weight: bold;
}

.code-section .css-comment {
  color: #6a9955;
  font-style: italic;
}

/* Tippy 툴팁 내부 코드 섹션을 위한 스타일 */
.tippy-content .code-section {
  background: #1e1e1e;
  border: 1px solid #454545;
  border-radius: 6px;
  padding: 6px 12px;
  margin: 4px 0;
  font-family: 'Fira Code', 'Courier New', 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #d4d4d4;
  /* white-space: pre; */
  overflow-x: auto;
  max-width: 100%;
  position: relative;
}

.tippy-content .code-section pre {
  margin: 0;
  padding: 0;
  white-space: pre;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.tippy-content .code-section .highlight-selector {
  color: #d7ba7d;
  font-weight: 600;
}

.tippy-content .code-section .highlight-property {
  color: #92c5f8;
}

.tippy-content .code-section .highlight-value {
  color: #ce9178;
}

.tippy-content .code-section .highlight-bracket {
  color: #ffd700;
}

/* 버튼 스타일 - 개선된 디자인 */
.css-apply-btn, #custom-css-apply, #custom-css-download {
  padding: 0.5em 1em;
  margin-bottom: 10px;
  border: none;
  border-bottom: 1px solid #ddd;
  color: #222;
  font-size: 0.92rem;
  cursor: pointer;
  border-radius: 4px;
  width: 100%;
}

/* tipShow 버튼 스타일 - 전체 디자인에 어울리는 모던한 스타일 */
.tipShow {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  border-radius: 8px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.2s ease;
  min-height: 32px;
  position: absolute;
  top: 17px;
  right: 50px;
}

.tipShow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
  transition: left 0.4s ease;
}

.tipShow:hover::before {
  left: 100%;
}

.tipShow:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #1a202c;
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tipShow:focus {
  outline: 2px solid #4a5568;
  outline-offset: 2px;
  box-shadow: 
    0 0 0 4px rgba(74, 85, 104, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.tipShow:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.areaToggle {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  border-radius: 8px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.2s ease;
  min-height: 32px;
  position: absolute;
  top: 17px;
  right: 160px;
}

.areaToggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
  transition: left 0.4s ease;
}

.areaToggle:hover::before {
  left: 100%;
}

.areaToggle:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #1a202c;
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.areaToggle:focus {
  outline: 2px solid #4a5568;
  outline-offset: 2px;
  box-shadow: 
    0 0 0 4px rgba(74, 85, 104, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.areaToggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 섹션 구분 */
#custom-css-edit-wrap, #css-define-edit-wrap {
  background: rgba(255, 255, 255, 0.02);
  /* border: 1px solid rgba(255, 255, 255, 0.1); */
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

/* 스크롤바 스타일 */
.inspector-panel::-webkit-scrollbar {
  width: 8px;
}

.inspector-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.inspector-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.inspector-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Monaco Editor 폰트 렌더링 최적화 - 한글 지원 개선 */
.monaco-editor {
  font-smooth: never !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

.monaco-editor .view-line {
  font-variant-ligatures: none !important;
  text-rendering: optimizeSpeed !important;
  font-feature-settings: normal !important;
}

/* Monaco Editor 커서 및 선택 영역 최적화 */
.monaco-editor .cursor {
  width: 1px !important;
}

/* Monaco Editor 내부 div 요소들 보호 - Inspector CSS 덮어쓰기 방지 및 한글 폰트 적용 */
.monaco-editor div,
.monaco-editor .view-lines div,
.monaco-editor .view-line,
.monaco-editor .overflow-guard div,
.monaco-editor .monaco-scrollable-element div {
  margin-bottom: 0 !important;
  line-height: normal !important;
  font-size: 14px !important;
}

.monaco-editor .color-decoration,
.monaco-editor .color-box {
  cursor: pointer !important;
  display: inline-block !important;
  width: 0.8em !important;
  height: 0.8em !important;
  border: 1px solid rgba(128, 128, 128, 0.5) !important;
  margin-right: 0.1em !important;
}

/* Monaco Editor hover widget - 중복 방지 */
.monaco-editor .monaco-hover,
.monaco-hover {
  z-index: 999999 !important;
  position: fixed !important;
}

/* 중복된 monaco-hover 요소들 숨김 */
.monaco-hover:not(:last-of-type) {
  display: none !important;
}

/* Body에 직접 추가된 monaco-hover들 중 중복된 것들 숨김 */
body > .monaco-hover + .monaco-hover {
  display: none !important;
}

.monaco-editor .squiggly-d-error,
.monaco-editor .squiggly-d-warning,
.monaco-editor .squiggly-d-info {
  display: none !important;
}

.monaco-editor .colorpicker-widget .colorpicker-body {
  background-color: black;
}

/* 스크롤바 전역 스타일링 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

/* 포커스 스타일 개선 */
.tab-btn:focus,
.css-apply-btn:focus,
#custom-css-apply:focus {
  outline: 2px solid #4a5568;
  outline-offset: 2px;
  box-shadow: 
    0 0 0 4px rgba(74, 85, 104, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-btn:focus-visible {
  outline: 2px solid #4a5568;
  outline-offset: 2px;
  border-color: #4a5568;
}

/* 키보드 네비게이션 개선 */
.tab-btn:focus:not(:focus-visible) {
  outline: none;
}

/* 활성 탭의 포커스 상태 */
.tab-btn.active:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  box-shadow: 
    0 0 0 4px rgba(255, 255, 255, 0.3),
    0 4px 20px rgba(45, 55, 72, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Monaco Editor 위젯이 inspector-content 영역 밖에서도 보이도록 설정 */
#inspector-content {
  overflow: visible !important;
  position: relative !important;
}

/* Monaco Editor Colorpicker 위젯 최적화 */
.monaco-editor .colorpicker-widget {
  z-index: 2147483647 !important;
  contain: none !important;
  overflow: visible !important;
  background: #1e1e1e !important;
  border: 1px solid #454545 !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.monaco-editor .colorpicker-widget .colorpicker-header {
  background: #2d2d30 !important;
  border-bottom: 1px solid #454545 !important;
  padding: 8px !important;
}

.monaco-editor .colorpicker-widget .colorpicker-body {
  background: #1e1e1e !important;
  padding: 12px !important;
}

/* Monaco Editor 색상 데코레이터 (인라인 색상 표시) */
.monaco-editor .colorpicker-color-decoration {
  width: 12px !important;
  height: 12px !important;
  border-radius: 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  margin-right: 4px !important;
}

/* Monaco Editor hover 위젯도 colorpicker와 같은 레벨로 */
.monaco-editor .monaco-hover {
  z-index: 2147483647 !important;
  position: fixed !important;
  contain: none !important;
  background: #1e1e1e !important;
  border: 1px solid #454545 !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

/* Monaco Editor suggest widget (자동완성) */
.monaco-editor .suggest-widget {
  z-index: 2147483647 !important;
  contain: none !important;
  background: #1e1e1e !important;
  border: 1px solid #454545 !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

/* 모든 Monaco 위젯들이 Inspector 패널을 벗어날 수 있도록 */
body > .monaco-editor .colorpicker-widget,
body > .colorpicker-widget,
body > .monaco-hover,
body > .suggest-widget {
  z-index: 2147483647 !important;
}

.inspected-element-highlight, .inspected-element-highlight * {
  background: 
    repeating-linear-gradient(
      -45deg,
      rgba(128, 128, 128, 0.3) 0px,
      rgba(128, 128, 128, 0.3) 10px,
      rgba(192, 192, 192, 0.2) 10px,
      rgba(192, 192, 192, 0.2) 20px
    ) !important;
  background-attachment: fixed !important;
  z-index: 50 !important;
}

/* CSS 정의 편집 시 해당 클래스명을 가진 요소들에 적용할 파란색 줄무늬 배경 스타일 */
.css-editing-highlight, .css-editing-highlight * {
  background: 
    repeating-linear-gradient(
      45deg,
      rgba(30, 144, 255, 0.3) 0px,
      rgba(30, 144, 255, 0.3) 10px,
      rgba(100, 181, 246, 0.2) 10px,
      rgba(100, 181, 246, 0.2) 20px
    ) !important;
  background-attachment: fixed !important;
  z-index: 50 !important;
}

.monaco-hover-content {
  max-height: max-content !important;
  height: max-content !important;
}

.monaco-hover {
  max-height: max-content !important;
  height: max-content !important;
}

.hover-row.markdown-hover {
  line-height: 14px;
}

.monaco-hover-content .hover-row .hover-contents {
    min-width: 0;
    display: flex;
    flex-direction: column
}

.monaco-hover {
  background-color: var(--vscode-editorHoverWidget-background);
  border: 1px solid var(--vscode-editorHoverWidget-border);
  border-radius: 3px;
  color: var(--vscode-editorHoverWidget-foreground)
}

.colorpicker-widget {
  height: auto !important;
}

/* Monaco Editor 읽기 전용 라인 스타일 */
.monaco-editor .readonly-line {
  background: rgba(128, 128, 128, 0.1) !important;
  border-left: 3px solid rgba(255, 193, 7, 0.6) !important;
  position: relative !important;
}

.monaco-editor .readonly-line::after {
  content: '🔒';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.6;
  pointer-events: none;
}

/* 읽기 전용 라인 호버 효과 */
.monaco-editor .readonly-line:hover {
  background: rgba(255, 193, 7, 0.1) !important;
  border-left-color: rgba(255, 193, 7, 0.8) !important;
}

.monaco-editor .readonly-line:hover::after {
  opacity: 0.9;
}

.ohterCompanySytle {
  width: 100%;
  height: 300px;
  margin-top: 10px;
  border-radius: 15px;
}

.previewStyle {
  width: 100%;
  height: 80px;
  margin: 5px;
}

.customStyleView {
  width: 295px;
  height: 80px;
  cursor: pointer;
  display: inline-block;
}

.customStyleView:not(:first-child) {
  margin-left: 20px;
}

.customStyleView.theme_gray {
  background: url(./imgs/theme_gray.png) no-repeat center center;
  background-size: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.customStyleView.theme_default {
  background: url(./imgs/theme_default.png) no-repeat center center;
  background-size: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.customStyleView.theme_grace {
  background: url(./imgs/theme_grace.png) no-repeat center center;
  background-size: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.customStyleView.theme_material {
  background: url(./imgs/theme_material.png) no-repeat center center;
  background-size: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.customStyleView.theme_mint {
  background: url(./imgs/theme_mint.png) no-repeat center center;
  background-size: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.customStyleView.theme_simple {
  background: url(./imgs/theme_simple.png) no-repeat center center;
  background-size: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

button.iconBtn {
  background-color: #ffffff;
  border: 1px solid #d0d7de;
  color: #24292f;
  padding: 8px 16px;
  margin: 4px 8px 4px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

button.iconBtn:hover {
  background-color: #f6f8fa;
  border-color: #8c959f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

button.iconBtn:active {
  background-color: #e7ecf0;
  border-color: #6e7681;
  transform: translateY(1px);
}

button.iconBtn:focus {
  outline: 2px solid #0969da;
  outline-offset: 2px;
}

.popover-center-screen {
  flex: 0 0 auto;
  align-self: flex-start !important;
  left: 45% !important;
  top: 40% !important;
}

.popover-center-screen > .driver-popover-arrow {
  display: none;
}

/* 커스텀 마우스 커서 스타일 */
#customCursor {
  position: fixed;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, rgba(255,0,0,0.8) 0%, rgba(255,0,0,0.4) 50%, transparent 70%);
  border: 2px solid red;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10005;
  /* transform을 제거하고 JavaScript에서 중앙 정렬 계산 */
  margin-left: -12px; /* width의 절반 */
  margin-top: -12px; /* height의 절반 */
  display: none;
  box-shadow: 0 0 10px rgba(255,0,0,0.5);
}

@media (max-width: 1899px) {
  html, body {
    overflow-x: auto;
    overflow-y: auto;
  }

  .container {
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 1900px; /* 최소 너비 보장으로 스크롤 유발 */
  }
}

@media (max-height: 1079px) {
  html, body {
    overflow-x: auto;
    overflow-y: auto;
  }
}