// ─── MainLayout ───────────────────────────────────────────────────────────────
.mainLayout {
  height: 100vh;
}

// ─── Header ───────────────────────────────────────────────────────────────────
.header {
  height: 56px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9f8f4;

  :global {
    .qwenpaw-space-item {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  .showOnMobile {
    display: none;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 12px;

    .headerDivider {
      display: none;
    }

    .hideOnMobile {
      display: none !important;
    }

    .showOnMobile {
      display: inline-flex !important;
    }
  }
}

.headerTitle {
  font-size: 18px;
  font-weight: 500;
  min-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

// ─── Sidebar ─────────────────────────────────────────────────────────────────
.sider {
  background: #f9f8f4 !important;
  overflow: auto;
  height: calc(100vh - 64px) !important;
  padding: 0 16px;

  // Hide scrollbar in browser
  &::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
  }

  &::-moz-scrollbar {
    display: none;
    /* Firefox */
  }

  &::-ms-scrollbar {
    display: none;
    /* IE/Edge */
  }

  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */

  // Agent-scoped section: selector + Chat + Control + Workspace
  .agentScopedSection {
    flex-shrink: 0;
    background: rgba(43, 18, 0, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 4px;

    :global {
      .qwenpaw-menu {
        background: transparent !important;
      }
    }
  }
  // AgentSelector + Chat container - sticky at top
  .agentSelectorContainer {
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 4px;
    // Opaque background so scrolled content is hidden behind
    background: #f9f7f3;
    border-radius: 12px 12px 0 0;
  }

  // Sticky Chat button — matches menu item appearance
  .stickyChatButton {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 40px;
    padding: 0 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(0, 0, 0, 0.88);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    padding-left: 12px;

    &:hover {
      background: rgba(0, 0, 0, 0.06);
    }
  }

  .stickyChatButtonActive {
    background: rgba(43, 18, 0, 0.08);
  }

  // Menu takes remaining space
  .sideMenu {
    flex: 1;
    overflow-y: auto;

    // Hide scrollbar for menu too
    &::-webkit-scrollbar {
      display: none;
    }

    &::-moz-scrollbar {
      display: none;
    }

    &::-ms-scrollbar {
      display: none;
    }

    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  &.siderSimple {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    // In simple mode the children wrapper must itself be a flex column so that
    // agentScopedSection / sessionList / collapseToggleContainer become flex
    // items and only the sessionList scrolls.
    :global {
      .qwenpaw-layout-sider-children {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
      }
    }
  }

  &.siderCollapsed {
    display: flex;
    flex-direction: column;
    padding: 0 8px;

    .agentSelectorContainer {
      display: flex;
      justify-content: center;
    }

    .collapseToggleContainer {
      justify-content: center;
      width: calc(100% + 16px);
      margin: 0 -8px;
      padding: 8px 0;
    }

    :global {
      /* Center icon in collapsed menu items */
      .qwenpaw-menu-item,
      .qwenpaw-menu-submenu .qwenpaw-menu-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
      }

      /* Ensure icon container allows badge overflow */
      .qwenpaw-menu-item-icon,
      .qwenpaw-menu-item .anticon {
        overflow: visible !important;
      }

      /* Hide label text in collapsed mode */
      .qwenpaw-menu-title-content,
      .qwenpaw-menu-item > span:not([role]):not(.qwenpaw-badge),
      .qwenpaw-menu-item-only-child > span:not(.qwenpaw-badge) {
        display: none !important;
      }

      /* Hide group labels */
      .qwenpaw-menu-submenu-title {
        display: none !important;
      }
    }
  }

  :global {
    .qwenpaw-menu {
      border-inline-end: 0 !important;
    }

    /* Group title (一级菜单分组) */
    .qwenpaw-menu-submenu-title {
      font-family: "PingFang SC", sans-serif !important;
      font-size: 12px !important;
      font-weight: 500 !important;
      line-height: 32px !important;
      letter-spacing: normal !important;
      color: rgba(26, 23, 22, 0.25) !important;
      padding-left: 8px !important;

      /* No hover effect for group titles */
      &:hover {
        background: transparent !important;
        color: rgba(26, 23, 22, 0.25) !important;
      }
    }

    /* Hide submenu arrow */
    .qwenpaw-menu-submenu-arrow {
      display: none !important;
    }

    /* Always expand submenus */
    .qwenpaw-menu-submenu {
      > .qwenpaw-menu {
        display: block !important;
      }
    }

    /* Menu item padding - align all items */
    .qwenpaw-menu-item {
      padding-left: 8px !important;
    }

    /* Remove submenu indent - align with parent */
    .qwenpaw-menu-submenu .qwenpaw-menu-item {
      padding-left: 8px !important;
    }

    /* Selected item */
    .qwenpaw-menu-item-selected {
      background: rgba(43, 18, 0, 0.08) !important;
      color: inherit !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;

      .qwenpaw-menu-title-content {
        display: flex !important;
        align-items: center !important;
      }
    }

    /* Selected submenu item - keep text color unchanged */
    .qwenpaw-menu-submenu .qwenpaw-menu-item-selected {
      color: inherit !important;
    }
  }
}

.siderDark {
  background: #1a1a1a !important;
  border-right-color: rgba(255, 255, 255, 0.08) !important;

  // Agent-scoped section (dark mode)
  .agentScopedSection {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
  }

  // Sticky container background (dark mode)
  .agentSelectorContainer {
    background: #1e1e1e;
  }

  // Sticky bottom bar background (dark mode)
  .collapseToggleContainer {
    background: #1a1a1a;
  }

  // Chat button (dark mode)
  .stickyChatButton {
    color: rgba(255, 255, 255, 0.75);

    &:hover {
      background: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.95);
    }
  }

  .stickyChatButtonActive {
    background: rgba(255, 127, 22, 0.5);
    color: #ff7f16;
  }

  :global {
    .qwenpaw-menu {
      background: #1a1a1a !important;
      border-inline-end: 0 !important;
    }

    /* Group title (sub-menu label) */
    .qwenpaw-menu-submenu-title {
      color: rgba(255, 255, 255, 0.45) !important;

      /* No hover effect for group titles in dark mode */
      &:hover {
        background: transparent !important;
        color: rgba(255, 255, 255, 0.45) !important;
      }
    }

    /* Regular menu item */
    .qwenpaw-menu-item {
      color: rgba(255, 255, 255, 0.75) !important;
    }

    /* Hover state - only for menu items, not group titles */
    .qwenpaw-menu-item:hover {
      background: rgba(255, 255, 255, 0.1) !important;
      color: rgba(255, 255, 255, 0.95) !important;
    }

    /* Selected item */
    .qwenpaw-menu-item-selected {
      background: rgba(255, 127, 22, 0.5) !important;
      color: #ff7f16 !important;
    }
  }
}

.logoWrapper {
  display: flex;
  align-items: center;
}

.logoImg {
  height: 16px;
  width: auto;
}

.logoDivider {
  width: 16px;
  height: 0px;
  transform: rotate(90deg);
  border-top: 1px solid rgba(234, 232, 231, 1);
  margin: 0 8px;
}

.headerDivider {
  width: 16px;
  height: 0px;
  transform: rotate(90deg);
  z-index: 4;
  border-top: 1px solid rgba(234, 232, 231, 1);
}

.versionBadge {
  font-size: 12px;
  color: #1a171673;
  font-weight: 600;
  line-height: 1;
  position: relative;
  top: 3px;
}

.versionBadgeClickable {
  cursor: pointer;
}

.versionBadgeDefault {
  cursor: default;
}

.collapseBtn {
  margin: auto;
  color: #ff7f16;
}

// ─── Auth actions (account + logout) ──────────────────────────────────────────
.authActions {
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
}

.authBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  color: rgba(0, 0, 0, 0.65);

  &:hover {
    color: rgba(0, 0, 0, 0.88) !important;
    background: rgba(0, 0, 0, 0.04) !important;
  }
}

.authBtnCollapsed {
  justify-content: center;
}

.authBtn + .authBtn {
  margin-top: 4px;
}

/* Collapse Toggle Button */
.collapseToggleContainer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
  width: calc(100% + 32px);
  margin: 0 -16px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  background: #f9f8f4; // match sider background so scrolled content is hidden
}

.collapseToggle {
  color: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  transition: all 0.2s;

  &:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #ff7f16 !important;
  }
}

.modeToggleActive {
  color: #ff7f16 !important;
  background: rgba(255, 127, 22, 0.08);
}

// ─── Simple mode: flat nav + session list ─────────────────────────────────────

.simpleNewChat {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  margin: 4px 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 127, 22, 0.08);
  color: #ff7f16;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;

  &:hover {
    background: rgba(255, 127, 22, 0.14);
  }
}

.simpleNavItems {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
}

.simpleNavItem {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(0, 0, 0, 0.75);
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  text-align: left;

  &:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.88);
  }
}

.simpleNavItemActive {
  background: rgba(43, 18, 0, 0.08);
  color: rgba(0, 0, 0, 0.88);
}

// Session list container
.simpleSessionList {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 8px;
}

.simpleSessionHeader {
  font-size: 12px;
  font-weight: 500;
  color: rgba(26, 23, 22, 0.35);
  padding: 4px 12px 6px;
  flex-shrink: 0;
}

.simpleSessionScroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;

  &::-webkit-scrollbar {
    width: 4px;
  }

  &::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 2px;
  }
}

.simpleSessionItem {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;

  &:hover {
    background: rgba(0, 0, 0, 0.06);

    .simpleSessionActions {
      opacity: 1;
      pointer-events: auto;
    }
  }
}

.simpleSessionItemActive {
  background: rgba(43, 18, 0, 0.08);
}

.simpleSessionItemDisabled {
  opacity: 0.5;
  pointer-events: none;
}

.simpleSessionName {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.75);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.simpleSessionTime {
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(26, 23, 22, 0.35);
}

.simpleSessionActions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.simpleSessionActionBtn {
  width: 22px !important;
  height: 22px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.45);

  &:hover {
    color: rgba(0, 0, 0, 0.88);
    background: rgba(0, 0, 0, 0.06);
  }
}

.simpleSessionActionBtnActive {
  color: #ff7f16 !important;
}

.simpleSessionLoading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
}

/* Collapsed nav (icon-only group list) */
.collapsedNav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;

  &::-webkit-scrollbar {
    display: none;
  }
}

.collapsedNavItem {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.55);
  transition: all 0.15s;

  &:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.88);
  }
}

.collapsedNavItemActive {
  background: rgba(43, 18, 0, 0.08) !important;
  color: rgba(0, 0, 0, 0.88) !important;
}

@media (max-width: 768px) {
  .sider {
    height: calc(100vh - 56px) !important;
    padding: 0 8px;
    flex: 0 0 auto !important;
    max-width: 240px !important;

    &.siderCollapsed {
      padding: 0 6px;

      .collapseToggleContainer {
        width: calc(100% + 12px);
        margin: 0 -6px;
      }
    }
  }

  .collapsedNav {
    gap: 2px;
    padding: 2px 0;
  }

  .collapsedNavItem {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .collapseToggleContainer {
    width: calc(100% + 16px);
    margin: 0 -8px;
    padding: 8px 0;
    justify-content: center;
  }
}

// ─── Update Modal ─────────────────────────────────────────────────────────────
.updateModal {
  :global(.qwenpaw-modal-content) {
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: none !important;
  }

  :global(.qwenpaw-modal-body) {
    padding: 0 !important;
  }

  :global(.qwenpaw-modal-footer) {
    padding: 12px 24px;
    margin-top: 0;
  }

  :global(.qwenpaw-modal-header) {
    display: none !important;
  }

  :global(.qwenpaw-modal-close) {
    display: none !important;
  }
}

.updateModalBanner {
  background: url("/public/qwenpawBack.png") no-repeat center top;
  background-size: contain;
  padding: 48px 28px 0px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 100px;
  position: relative;
  transform: translateY(-48px);
}

.updateModalBannerLeft {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.updateModalVersionTag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(43, 18, 0, 0.12);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(26, 23, 22, 0.65);
  width: fit-content;
}

.updateModalBannerTitle {
  font-size: 32px;
  font-weight: 500;
  line-height: 64.78px;
  letter-spacing: normal;
  color: #ff7f16;
}

.updateModalTitle {
  color: #ff7f16;
}

.updateModalBody {
  max-height: 400px;
  overflow-y: auto;
  padding: 16px 24px 8px;
  min-height: 120px;
  margin-top: -40px;
}

.updateModalSpinWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
}

.updateViewReleasesBtn {
  background: #ff7f16 !important;
  border-color: #ff7f16 !important;
  color: #fff !important;

  &:hover {
    background: #d45b0a !important;
    border-color: #d45b0a !important;
  }
}

.updateModalPrimaryBtn {
  background: #ff7f16;
  border-color: #ff7f16;
}

// ─── Code block inside update modal ──────────────────────────────────────────
.codeBlock {
  position: relative;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 12px 40px 12px 16px;
  overflow-x: auto;
  margin: 8px 0;
}

.codeBlockInner {
  font-family: monospace;
  font-size: 13px;
}

.codeInline {
  background: #f5f5f5;
  border-radius: 3px;
  padding: 1px 5px;
  font-family: monospace;
  font-size: 13px;
}

// ─── CopyButton ───────────────────────────────────────────────────────────────
.copyBtn {
  position: absolute;
  top: 8px;
  right: 8px;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  line-height: 1;
  border-radius: 4px;

  &:hover {
    background: rgba(0, 0, 0, 0.06);
  }
}

.copyBtnCopied {
  color: #52c41a;
}

.copyBtnDefault {
  color: #999;
}

/* ─── Dark mode overrides ─────────────────────────────────────────────────── */
:global(.dark-mode) {
  .header {
    background: #1a1a1a !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.85);

    /* Text buttons (Docs / FAQ / GitHub / Changelog) */
    :global(.qwenpaw-btn-text),
    :global(.ant-btn-text) {
      color: rgba(255, 255, 255, 0.75) !important;

      &:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.08) !important;
      }

      .anticon,
      svg {
        color: inherit !important;
      }
    }

    /* Fallback: any icon or text directly inside header */
    :global(.anticon) {
      color: rgba(255, 255, 255, 0.75);
    }
  }

  .headerTitle {
    color: rgba(255, 255, 255, 0.85);
  }

  .sider {
    background: #1a1a1a !important;
    border-right-color: rgba(255, 255, 255, 0.08) !important;
  }

  .siderTop {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .versionBadge {
    color: #ff7f16;
  }

  .collapseBtn {
    color: #ff7f16;
  }

  .authActions {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .authBtn {
    color: rgba(255, 255, 255, 0.75);

    &:hover {
      color: rgba(255, 255, 255, 0.9) !important;
      background: rgba(255, 255, 255, 0.06) !important;
    }
  }

  .collapseToggle {
    color: rgba(255, 255, 255, 0.45);

    &:hover {
      background: rgba(255, 255, 255, 0.08);
      color: #ff7f16;
    }
  }

  .modeToggleActive {
    color: #ff7f16 !important;
    background: rgba(255, 127, 22, 0.12);
  }

  .collapsedNavItem {
    color: rgba(255, 255, 255, 0.5);

    &:hover {
      background: rgba(255, 255, 255, 0.08);
      color: rgba(255, 255, 255, 0.88);
    }
  }

  .collapsedNavItemActive {
    background: rgba(255, 127, 22, 0.5) !important;
    color: rgba(255, 255, 255, 0.88) !important;
  }

  .codeBlock {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .codeInline {
    background: #2a2a2a;
    color: rgba(255, 255, 255, 0.85);
  }

  .copyBtnDefault {
    color: rgba(255, 255, 255, 0.3);
  }
}

// ─── Simple mode: flat nav + session list ─────────────────────────────────────

.simpleNewChat {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  margin: 4px 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 127, 22, 0.08);
  color: #ff7f16;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;

  &:hover {
    background: rgba(255, 127, 22, 0.14);
  }
}

.simpleNavItems {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
}

.simpleNavItem {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(0, 0, 0, 0.75);
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  text-align: left;

  &:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.88);
  }
}

.simpleNavItemActive {
  background: rgba(43, 18, 0, 0.08);
  color: rgba(0, 0, 0, 0.88);
}

// Session list container
.simpleSessionList {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 8px;
}

.simpleSessionHeader {
  font-size: 12px;
  font-weight: 500;
  color: rgba(26, 23, 22, 0.35);
  padding: 4px 12px 6px;
  flex-shrink: 0;
}

.simpleSessionScroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;

  &::-webkit-scrollbar {
    width: 4px;
  }

  &::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 2px;
  }
}

.simpleSessionItem {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;

  &:hover {
    background: rgba(0, 0, 0, 0.06);

    .simpleSessionActions {
      opacity: 1;
      pointer-events: auto;
    }
  }
}

.simpleSessionItemActive {
  background: rgba(43, 18, 0, 0.08);
}

.simpleSessionItemDisabled {
  opacity: 0.5;
  pointer-events: none;
}

.simpleSessionName {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.75);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.simpleSessionTime {
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(26, 23, 22, 0.35);
}

.simpleSessionActions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.simpleSessionActionBtn {
  width: 22px !important;
  height: 22px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.45);

  &:hover {
    color: rgba(0, 0, 0, 0.88);
    background: rgba(0, 0, 0, 0.06);
  }
}

.simpleSessionActionBtnActive {
  color: #ff7f16 !important;
}

.simpleSessionLoading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
}

// ─── Simple mode dark overrides ───────────────────────────────────────────────

.siderSimple {
  :global(.dark-mode) & {
    .simpleNewChat {
      background: rgba(255, 127, 22, 0.12);
      color: #ff7f16;

      &:hover {
        background: rgba(255, 127, 22, 0.2);
      }
    }

    .simpleNavItem {
      color: rgba(255, 255, 255, 0.75);

      &:hover {
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.95);
      }
    }

    .simpleNavItemActive {
      background: rgba(255, 127, 22, 0.5);
      color: #ff7f16;
    }

    .simpleSessionHeader {
      color: rgba(255, 255, 255, 0.35);
    }

    .simpleSessionItem {
      &:hover {
        background: rgba(255, 255, 255, 0.08);
      }
    }

    .simpleSessionItemActive {
      background: rgba(255, 255, 255, 0.08);
    }

    .simpleSessionName {
      color: rgba(255, 255, 255, 0.75);
    }

    .simpleSessionTime {
      color: rgba(255, 255, 255, 0.35);
    }

    .simpleSessionActionBtn {
      color: rgba(255, 255, 255, 0.45);

      &:hover {
        color: rgba(255, 255, 255, 0.88);
        background: rgba(255, 255, 255, 0.08);
      }
    }
  }
}
