@import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);

#chat-container .form-control {
  border-top: none;
  border-right: none;
  border-left: none;
  border-radius: 0;
}

#chat-container .form-control:focus {
  border-color: transparent;
  box-shadow: inset 0px 0px 0px 1px transparent;
}

#chat-container {
  display: block;
  width: 100%;
  height: 100%;
}

#chat-container .row {
  max-width: 100%;
  height: 100%;
}

#chat-container .z-2 {
  place-self: start;
  background-color: #e7e7e7;
  border-radius: 15px;
  padding: 5px;
  padding-right: 30px;
  position: relative;
}

.badge-dot {
  border-radius: 50%;
  height: 10px;
  width: 10px;
  margin-left: 2.9rem;
  margin-top: -0.75rem;
}

.starrating>input {
  display: none;
}

.starrating>label:before {
  content: "\f005";
  margin: 2px;
  font-size: 1.8em;
  font-family: FontAwesome;
  display: inline-block;
}

.starrating>label {
  color: #222222b9;
}

.starrating>input:checked~label {
  color: #ffca08;
}

.starrating>input:hover~label {
  color: #ffca08;
}

.btn-msg-action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  #mensajes>* {
    max-width: 100%;
  }

  #mensajes .message {
    max-width: 85%;
  }

  .summary-table-container {
    padding: 4px !important;
  }

  .summary-table-container .bg-info-subtle {
    padding: 4px !important;
    margin: 0 !important;
  }
}

@media (min-width: 768px) {
  #mensajes>* {
    max-width: 80%;
  }
}

.mobile-chat-toolbar {
  padding: 8px 4px;
  border-bottom: 1px solid #e7e7e7;
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 8px;
}

.icono {
  width: 20px;
  height: 20px;
}

.mobile-action-menu {
  position: relative;
  display: none;
}

.mobile-action-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-action-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 150px;
  display: none;
  z-index: 1000;
}

.mobile-action-dropdown.show {
  display: block;
}

.mobile-action-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-action-item:hover {
  background-color: #f5f5f5;
}

.mobile-action-item img {
  margin-right: 8px;
}

.action-buttons>button,
.mobile-action-menu>button.enviar {
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  margin: 2px;
}

.action-buttons>button:hover {
  background-color: #32eecc26;
}

/* Responsive behavior */
@media (max-width: 767px) {
  .action-buttons {
    display: none !important;
  }

  .mobile-action-menu {
    display: flex;
  }
}

.no-arrow::after {
  display: none;
}

/* Oculta el triángulo */

.dropdown-menu li {
  position: relative;
}

.dropdown-menu .dropdown-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -7px;
}

.dropdown-menu .dropdown-submenu-left {
  right: 100%;
  left: auto;
}

.dropdown-menu>li:hover>.dropdown-submenu {
  display: block;
}

.buscador {
  @media (max-width: 992px) {
    width: 100%;
  }

  @media (min-width: 992px) {
    width: 25%;
  }
}

#campo_texo {
  max-width: 200px;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #666;
  font-weight: 600;
  font-size: 1rem;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ccc;
}

.separator::before {
  margin-right: 10px;
}

.separator::after {
  margin-left: 10px;
}

.mobile-title-specialities {
  display: none;
  position: relative;
}

.mobile-login {
  display: block;
}


@media (max-width: 768px) {
  .mobile-title-specialities {
    display: block;
    text-align: center;
  }

  .title-specialities {
    display: none !important;
  }

  .mobile-login {
    display: none;
  }
}

.agent-progress-container {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: white;
}

.agent-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.agent-progress-title {
  font-weight: bold;
  color: #2d3748;
}

.agent-progress-percent {
  color: #3182ce;
  font-weight: bold;
}

.agent-progress-bar {
  width: 0%;
  height: 8px;
  background: #3182ce;
  border-radius: 4px;
  transition: width 0.3s;
}

.btn-outline-dark:hover>a {
  color: white !important;
}

.ia-generated {
  font-size: 0.75em;
  color: #BABABA;
  align-self: start;
}

.current-subscription {
  background-color: #32EECC1A;
}

.term-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-floating {
  flex: 1;
}

.conversation-item {
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid #dee2e6;
  text-decoration: none;
  color: #212529;
  display: block;
  transition: background-color 0.2s;
}

.conversation-item:hover {
  background-color: #f8f9fa;
}

.conversation-item:last-child {
  border-bottom: none;
}

#conversationSearchInput:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Deep Search toggle */
.deep-search-toggle {
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
}

.deep-search-toggle input {
  display: none;
}

.deep-search-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.deep-search-pill:hover {
  border-color: #32eecc;
  color: #1ab5a0;
  background: rgba(50, 238, 204, 0.06);
}

.deep-search-toggle input:checked+.deep-search-pill {
  background: linear-gradient(90deg, #32eecc, #1bdcdc);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 1px 4px rgba(50, 238, 204, 0.3);
}

.deep-search-toggle input:checked+.deep-search-pill:hover {
  background: linear-gradient(90deg, #28d4b5, #17c5c5);
  box-shadow: 0 2px 8px rgba(50, 238, 204, 0.4);
}

.deep-search-pill svg {
  flex-shrink: 0;
}

.mobile-deep-search {
  width: 100%;
}

.mobile-deep-search .deep-search-pill {
  font-size: 0.8rem;
  padding: 5px 12px;
}

/* Deep Search result bubble */
.deepsearch-loading-nube {
  background: linear-gradient(135deg, rgba(50, 238, 204, 0.08), rgba(27, 220, 220, 0.08));
  border-left: 3px solid #32eecc;
}

.deepsearch-spinner {
  color: #32eecc;
}

.deepsearch-bubble {
  background: linear-gradient(135deg, rgba(50, 238, 204, 0.06), rgba(27, 220, 220, 0.06));
  border-left: 3px solid #32eecc;
  max-width: 95%;
}

.deepsearch-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1ab5a0;
  font-weight: 700;
  font-size: 0.82rem;
}

.deepsearch-header svg {
  color: #32eecc;
}

.deepsearch-body p {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.deepsearch-body p:last-child {
  margin-bottom: 0;
}

.deepsearch-body strong {
  color: #1a1a1a;
}

.deepsearch-list {
  padding-left: 1.2rem;
  margin: 0.3rem 0;
  list-style: none;
}

.deepsearch-list li {
  position: relative;
  padding-left: 0.6rem;
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.deepsearch-list li::before {
  content: '';
  position: absolute;
  left: -0.4rem;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #32eecc;
}

.deepsearch-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(50, 238, 204, 0.1);
  border: 1px solid rgba(50, 238, 204, 0.3);
  text-decoration: none;
  transition: all 0.15s ease;
  vertical-align: middle;
  margin: 0 2px;
}

.deepsearch-chip:hover {
  background: rgba(50, 238, 204, 0.25);
  border-color: #32eecc;
  transform: scale(1.1);
}

.deepsearch-chip img {
  border-radius: 2px;
}

.deepsearch-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(50,238,204,0.12), rgba(27,220,220,0.10));
  border: 1px solid rgba(50,238,204,0.35);
  color: #1ab5a0;
  font-weight: 600;
}

.deepsearch-footer {
  border-top: 1px solid rgba(50, 238, 204, 0.2);
  font-size: 0.72rem;
  color: #94a3b8;
}

/* DDGS News */
.news-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(91, 155, 213, 0.1);
  border: 1px solid rgba(91, 155, 213, 0.3);
  text-decoration: none;
  transition: all 0.15s ease;
  vertical-align: middle;
  margin: 0 2px;
}

.news-chip:hover {
  background: rgba(91, 155, 213, 0.25);
  border-color: #5b9bd5;
  transform: scale(1.1);
}

.news-chip img {
  border-radius: 2px;
}