[data-theme='auto'] {
  @media screen and (prefers-color-scheme: dark) {
    --font-color: #c9d1d9;
    --font-active-color: #ffffff;
    --theme-color: #202124;
    --theme-border-color: #3c4043;
    --active-color: #3c4043;
  }
  @media screen and (prefers-color-scheme: light) {
    --font-color: #24292f;
    --font-active-color: #cc3333;
    --theme-color: #ffffff;
    --theme-border-color: #aeafb2;
    --active-color: #d0d4da;
  }
}

[data-theme='dark'] {
  --font-color: #c9d1d9;
  --font-active-color: #ffffff;
  --theme-color: #202124;
  --theme-border-color: #3c4043;
  --active-color: #3c4043;
}

[data-theme='light'] {
  --font-color: #24292f;
  --font-active-color: #cc3333;
  --theme-color: #ffffff;
  --theme-border-color: #aeafb2;
  --active-color: #d0d4da;
}

.IndependentPanel * {
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
}

.IndependentPanel {
  .chat-container {
    display: flex;
    width: 100%;
    height: 100%;
  }

  .chat-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 250px;
    width: 250px;
    background-color: var(--theme-color);
    transition: width 0.3s, min-width 0.3s;
    padding: 10px;

    ::-webkit-scrollbar {
      background-color: var(--theme-color);
      width: 9px;
    }
    ::-webkit-scrollbar-thumb {
      background-color: var(--theme-border-color);
      border-radius: 20px;
      border: transparent;
    }
    ::-webkit-scrollbar-corner {
      background: transparent;
    }
  }

  .chat-sidebar.collapsed {
    min-width: 60px;
    width: 60px;
  }

  .chat-sidebar:hover,
  .chat-sidebar:not(.collapsed) {
    min-width: 250px;
    width: 250px;
  }

  .chat-sidebar-button-group {
    display: flex;
    flex-direction: column;
    padding: 0;
    background-color: var(--theme-color);
    gap: 15px;
  }

  .chat-list {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0 2px 0 0;
    background-color: var(--theme-color);
    overflow-y: auto;
    overflow-x: hidden;
    gap: 15px;
  }

  .chat-content {
    flex-grow: 1;
    border: 1px solid var(--theme-border-color);
    background-color: var(--theme-color);
  }

  .normal-button {
    width: 100%;
    min-height: 40px;
    padding: 1px 6px;
    border: 1px solid;
    border-color: var(--theme-border-color);
    background-color: var(--theme-color);
    color: var(--font-color);
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .gpt-util-group {
    display: flex;
    gap: 15px;
    align-items: center;
  }

  .gpt-util-icon {
    display: flex;
    cursor: pointer;
    align-items: center;
    color: var(--font-color);
  }
  .gpt-util-icon:hover {
    color: var(--font-active-color);
  }

  .normal-button.active,
  .normal-button:hover {
    background-color: var(--active-color);
  }

  hr {
    height: 1px;
    background-color: var(--theme-border-color);
    border: none;
    margin: 15px 0;
  }
}
