.model-dropdown {
      align-self: flex-start;
      top: 52px;
      width: 120px;
      background-color: var(--chat-bg-shade-3);
      border-radius: 20px;
      transition:
            opacity 0.3s ease,
            transform 0.3s ease;
      padding: 9px;
      border: 1px solid var(--border-color);
      margin-left: 3px;
      margin-top: 10px;
}

.model-dropdown.active {
      display: block;
      opacity: 1;
      transform: translateX(6px);
      z-index: 3;
}

.model-option {
      padding: 10px;
      cursor: pointer;
      font-size: 14px;
      transition: background 0.3s ease;
      border-radius: 15px;
      color: var(--text-color);
}

.model-option:hover {
      background-color: var(--bg-hover);
}
.model-name-second-line {
      font-size: 14px;
      /* opacity: 0.5; */
}
/* Add this to your existing CSS */
/* Add to your existing CSS */
.model-option {
      position: relative;
}

#llm-model-tooltip {
      position: fixed; /* Using fixed to position it relative to the viewport */
      background-color: var(--etex-orange-primary);
      border-radius: 14px;
      padding: 12px;
      width: 250px;
      /* box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); */
      font-size: 14px;
      opacity: 0;
      visibility: hidden;
      transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
      z-index: 1000;
      pointer-events: none;
      color: white;
      margin-left: 14px;
}

#llm-model-tooltip::before {
      content: "";
      position: absolute;
      top: 50%;
      left: -8px;
      transform: translateY(-50%);
      border-width: 13px 13px 13px 0;
      border-style: solid;
      border-color: transparent var(--etex-orange-primary) transparent transparent;
}

.model-select {
      display: flex;
      align-items: center;
      background-color: var(--bg-primary);
      border-radius: 14px;
      padding: 6px 7px;
      cursor: pointer;
      transition:
            background 0.3s ease,
            transform 0.2s ease;
      position: absolute;
      margin: 10px 0px 0px 0px;
      align-self: flex-start;
      z-index: 10;
      padding-right: 10px;
      position: fixed;
      top: 8px;
      /* border: 1px solid #ccc; */
      /* box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .1); */
      /* box-shadow: inset 0px 2px 0 var(--chat-bg-shade-1), 0 1px 2px rgb(0 0 0 / 12%); */
      /* border: 1px solid var(--shade-3); */
      box-shadow: var(--glossy-button-box-shadow);
      border: var(--glossy-button-border);
}
.model-select:hover {
      background-color: var(--bg-hover);
      /* transform: scale(1.05); */
}
.model-icon {
      width: 18px;
      opacity: 0.5;
}
.model-name {
      margin-left: 8px;
      font-size: 23px;
      font-weight: 400;
      color: var(--text-color);
      transition: font-size 0.2s ease;
      opacity: 0.8;
      width: 80px;
}
.model-select:hover .model-name {
      font-size: 23px;
}
.dropdown-arrow {
      width: 12px;
      height: 12px;
      margin-left: 5px;
      transition: transform 0.3s ease;
      opacity: 0.5;
      rotate: 180deg;
}
.model-select.active .dropdown-arrow {
      transform: rotate(180deg);
}
.model-select {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      border-radius: 30px;
      cursor: pointer;
      background-color: var(--bg-hover);
      transition: all 0.2s ease;
      width: fit-content;
      user-select: none;
      border: 1px solid transparent;
}

.model-select.active {
      border-color: var(--border-color);
}

.model-select-content {
      display: flex;
      align-items: center;
      gap: 8px;
}

.model-brand-icon {
      width: 18px;
      height: 18px;
      object-fit: contain;
      /* margin-top: 2px; */
}

.model-info-wrapper {
      display: flex;
      flex-direction: column; /* Default stack */
      justify-content: center;
}

.model-label-text {
      font-weight: 600;
      font-size: 14px;
      line-height: 1;
}

.model-name-second-line {
      /* font-size: 13px; */
      color: var(--text-color);
      /* line-height: 1.2; */
}

/* State: Compact (After selection or outside click) */
.model-select.compact .model-info-wrapper {
      flex-direction: row;
      align-items: center;
}

.model-select.compact .model-label-text {
      display: none;
}

.model-dropdown .model-info-wrapper .model-name-second-line {
      opacity: 0.5;
}

.dropdown-arrow {
      width: 18px;
      height: 18px;
      transition: transform 0.2s ease;
}

.model-select.active .dropdown-arrow {
      transform: rotate(180deg);
}

/* Dropdown Menu */
.model-dropdown {
      position: absolute;
      /* box-shadow: 0 10px 25px rgba(0,0,0,0.1); */
      display: none;
      flex-direction: column;
      overflow: hidden;
      z-index: 100;
      min-width: 220px;
}

.model-option {
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      transition: background 0.2s;
}

.model-select .model-label-text {
      display: none;
}
