/* Tab Navigation */
.tab-navigation-wrapper {
  display: flex;
  align-items: stretch;
  margin-bottom: 1.875rem;
  position: relative;
  min-width: 30rem;
}

.tab-scroll-btn {
  background: rgba(42, 36, 25, 0.8);
  border: none;
  color: var(--gold-accent);
  padding: 0 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  flex-shrink: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-scroll-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #fff;
}

.tab-scroll-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.tab-scroll-left {
  border-radius: 0.75rem 0 0 0;
  border-right: 1px solid rgba(139, 111, 71, 0.4);
}

.tab-scroll-right {
  border-radius: 0 0.75rem 0 0;
  border-left: 1px solid rgba(139, 111, 71, 0.4);
}

.tab-navigation {
  display: flex;
  gap: 0.3125rem;
  border-bottom: 2px solid rgba(139, 111, 71, 0.4);
  background: rgba(42, 36, 25, 0.3);
  padding: 0.3125rem;
  border-radius: 0.75rem 0.75rem 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  flex: 1;
  scroll-behavior: smooth;
}

.tab-navigation::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.tab-navigation-wrapper .tab-navigation {
  border-radius: 0;
}

.tab-navigation-wrapper .tab-scroll-left + .tab-navigation {
  border-radius: 0;
}

.tab-navigation-wrapper:has(.tab-scroll-left[style*="display: none"]) .tab-navigation {
  border-radius: 0.75rem 0 0 0;
}

.tab-navigation-wrapper:has(.tab-scroll-right[style*="display: none"]) .tab-navigation {
  border-radius: 0 0.75rem 0 0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #8b7355;
  position: relative;
  transition: all 0.2s;
  border-radius: 0.5rem 0.5rem 0 0;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 8rem;
}

.tab-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #c4b59d;
}

.tab-btn.active {
  color: var(--gold-accent);
  background: rgba(42, 36, 25, 0.6);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 편집 탭 버튼 스타일 */
.edit-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-tab-btn .edit-tab-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-tab-btn .edit-tab-close {
  font-size: 14px;
  opacity: 0.6;
  transition: all 0.2s;
  margin-left: 4px;
}

.edit-tab-btn .edit-tab-close:hover {
  opacity: 1;
  color: #ff6b6b;
}
