body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #131213;
}

.tabs-wrapper {
  display: flex;
  flex-direction: column;
}

#status-bar {
  height: 24px;
  background: #1E1E1E;
  color: #D4D4D4;
  font-size: 12px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-top: 1px solid #252526;
  font-family: 'Segoe UI', sans-serif;
  justify-content: space-between;
}

#tabs-container {
  display: flex;
  background: #1E1E1E;
  user-select: none;
  height: 35px;
  border-bottom: 1px solid #252526;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 2px;
}

#tabs-container::-webkit-scrollbar {
  display: none;
}

.tab {
  display: flex;
  align-items: center;
  padding: 0 50px 0 12px;
  background: #2D2D2D;
  color: #969696;
  cursor: pointer;
  position: relative;
  border-right: 1px solid #252526;
  min-width: 140px;
  height: 100%;
  font-size: 13px;
  font-family: 'Segoe UI', -apple-system, sans-serif;
  transition: all 0.15s ease;
  animation: slideIn 0.2s ease;
  width: auto;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
  filter: grayscale(0.3);
  transition: filter 0.3s ease;
}

.tab.active .tab-icon {
  filter: grayscale(0);
}

.tab.active {
  background: #1E1E1E;
  color: #FFFFFF;
  border-top: 2px solid #007ACC;
  margin-top: -2px;
  box-shadow: 0 0 10px rgba(0, 122, 204, 0.2);
}

.tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #007ACC;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.tab:hover::before {
  transform: scaleX(1);
}

.tab-close {
  position: absolute;
  right: 8px;
  opacity: 0;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  width: 16px;
  line-height: 1;
  color: #E8E8E8;
  transition: all 0.15s ease;
  transform: scale(0.9);
}

.tab:hover .tab-close {
  opacity: 0.8;
  transform: scale(1);
}

.tab-close:hover {
  background: rgba(255,255,255,0.1);
  opacity: 1 !important;
  transform: scale(1.05);
}

.tab-rename {
  position: absolute;
  right: 30px;
  opacity: 0;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  width: 16px;
  line-height: 1;
  color: #E8E8E8;
  transition: all 0.15s ease;
  transform: scale(0.9);
}

.tab:hover .tab-rename {
  opacity: 0.8;
  transform: scale(1);
}

.tab-rename:hover {
  background: rgba(255,255,255,0.1);
  opacity: 1 !important;
  transform: scale(1.05);
}

.new-tab-button {
  padding: 0 12px;
  color: #808080;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 16px;
  transition: all 0.15s ease;
  position: sticky;
  right: 0;
  background: #1E1E1E;
  flex-shrink: 0;
  z-index: 10;
}

.new-tab-button:hover {
  background: #2D2D2D;
  color: #E8E8E8;
}

#tabs-scrollbar-container {
  height: 10px;
  background: #1E1E1E;
  display: flex;
  align-items: center;
}

#tabs-scrollbar-track {
  width: 100%;
  height: 6px;
  background: #2D2D2D;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

#tabs-scrollbar-thumb {
  position: absolute;
  height: 100%;
  background: #007ACC;
  border-radius: 3px;
  top: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

#tabs-scrollbar-thumb:hover {
  opacity: 1;
}

#editor-container {
  flex: 1;
  position: relative;
}

#editor {
  width: 100%;
  height: 100%;
}

.monaco-editor .scrollbar {
  opacity: 0.5;
}

.monaco-editor .view-lines * {
  transition: text-shadow 0.3s ease;
}

.tab-title-input {
  background: #3C3C3C;
  border: 1px solid #007ACC;
  color: #E8E8E8;
  padding: 2px 4px;
  outline: none;
  width: 80%;
  font-size: 13px;
  font-family: 'Segoe UI', -apple-system, sans-serif;
  box-shadow: 0 0 10px rgba(0, 122, 204, 0.3);
}

.tab:hover {
  background: #2D2D2D;
  transform: translateY(-0.5px);
}

.tab.active:hover {
  background: #1E1E1E;
  transform: translateY(-0.5px);
}

.tab-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  display: inline-block;
}

.tab-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #007ACC;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.tab.active .tab-title::after {
  transform: scaleX(1);
}

@keyframes slideIn {
  from {
    transform: translateX(-10px);
    opacity: 0.5;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}