.response-tabs-wrapper {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  background: rgba(240, 248, 255, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.response-tabs-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.response-tabs-header {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: #94A3B8;
  font-size: 12px;
}

.response-tabs-header i {
  font-size: 11px;
}

.response-tabs-count {
  font-weight: 600;
}

.response-tabs-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.response-tabs-list::-webkit-scrollbar {
  display: none;
}

.response-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  min-width: auto;
  max-width: 180px;
  user-select: none;
}

.response-tab:hover {
  background: rgba(100, 116, 139, 0.06);
  border-color: rgba(100, 116, 139, 0.25);
}

.response-tab.active {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.response-tab.active:hover {
  background: rgba(59, 130, 246, 0.12);
}

.tab-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(100, 116, 139, 0.1);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.response-tab.active .tab-number {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
}

.tab-title {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  transition: color 0.2s ease;
}

.response-tab.active .tab-title {
  color: #3B82F6;
}

.tab-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #94A3B8;
  transition: all 0.15s ease;
  margin-left: 2px;
}

.tab-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.tab-close-btn i {
  font-size: 12px;
}

.response-tab.active .tab-close-btn:hover {
  opacity: 1;
}

.tab-panels-container {
  position: relative;
}

.tab-panel {
  display: none;
  animation: panelFade 0.25s ease;
}

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

@keyframes panelFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.response-tab.creating {
  animation: tabSlide 0.3s ease;
}

@keyframes tabSlide {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .response-tabs-wrapper {
    padding: 10px 0 12px 0;
  }

  .response-tabs-header {
    display: none;
  }

  .response-tab {
    padding: 5px 10px;
    gap: 6px;
  }

  .tab-number {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .tab-title {
    font-size: 12px;
    max-width: 80px;
  }

  .tab-close-btn {
    opacity: 0.5;
    transform: scale(1);
  }
}

.response-tab:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 1px;
}

.tab-close-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 1px;
  opacity: 1;
  transform: scale(1);
}
