/* ChatCito 2026 - pestañas compactas y coloridas */

#cc-top-tabs-wrap {
  position: relative;
  z-index: 40;
  margin-top: -11px;
  margin-bottom: 0;
  padding: 0 8px;
  background: transparent;
}

#cc-top-tabs {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 0 0 2px;
  -webkit-overflow-scrolling: touch;
}

#cc-top-tabs::-webkit-scrollbar {
  display: none;
}

.cc-top-tab {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  max-width: 190px;
  min-height: 32px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #ef9aca 0%, #e687bd 100%);
  border: 1px solid rgba(26,20,28,.16);
  box-shadow: 0 2px 5px rgba(0,0,0,.18);
  color: #171717;
  transition: background .15s ease, transform .12s ease;
}

.cc-top-tab:hover {
  transform: translateY(-1px);
}

.cc-top-tab.cc-active {
  background: linear-gradient(180deg, #98e54f 0%, #74c92e 100%);
}

.cc-tab-open,
.cc-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #171717;
  cursor: pointer;
  font: inherit;
}

.cc-tab-open {
  gap: 6px;
  min-width: 0;
  padding: 0 6px 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.cc-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  font-size: 17px;
  line-height: 1;
  filter: saturate(1.2);
}

.cc-room .cc-tab-icon {
  text-shadow: 0 0 0 rgba(0,0,0,0);
}

.cc-query .cc-tab-icon {
  text-shadow: 0 0 0 rgba(0,0,0,0);
}

.cc-tab-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 130px;
  color: #111;
}

.cc-tab-close {
  flex: 0 0 24px;
  width: 24px;
  font-size: 18px;
  font-weight: 700;
  opacity: .78;
}

.cc-tab-open:hover,
.cc-tab-close:hover {
  background: rgba(255,255,255,.16);
}

.cc-tab-open:focus-visible,
.cc-tab-close:focus-visible {
  outline: 2px solid #1b3328;
  outline-offset: -2px;
}

@media (max-width: 700px) {
  #cc-top-tabs-wrap {
    padding: 0 5px;
    margin-top: -8px;
  }

  #cc-top-tabs {
    gap: 4px;
  }

  .cc-top-tab {
    min-height: 30px;
    max-width: 145px;
  }

  .cc-tab-open {
    font-size: 11px;
    padding-left: 7px;
    gap: 5px;
  }

  .cc-tab-name {
    max-width: 82px;
  }

  .cc-tab-icon {
    width: 16px;
    height: 16px;
    font-size: 15px;
  }
}
