:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #111113;
  --surface-soft: #18181b;
  --surface-hover: #242427;
  --text: #f5f5f5;
  --text-secondary: #c2c2c7;
  --text-muted: #8b8b93;
  --border: #2c2c31;
  --accent: #ffffff;
  --accent-hover: #e5e7eb;
  --accent-soft: #292929;
  --success: #199b68;
  --danger: #d94452;
  --sidebar-width: 284px;
  --radius: 15px;
  --shadow: 0 12px 40px rgba(20, 24, 40, 0.07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #111113;
  --surface-soft: #18181b;
  --surface-hover: #242427;
  --text: #f5f5f5;
  --text-secondary: #c2c2c7;
  --text-muted: #8b8b93;
  --border: #2c2c31;
  --accent: #ffffff;
  --accent-hover: #e5e7eb;
  --accent-soft: #292929;
  --success: #58d6a0;
  --danger: #ff727e;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  transition: background 0.2s ease, color 0.2s ease;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

.app {
  min-height: 100dvh;
}

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 20px 15px 14px;
  overflow: hidden;
  background: var(--surface);
  border-right: 1px solid var(--border);
  transition: transform 0.25s ease, background 0.2s ease;
}

.sidebar-header,
.brand,
.topbar,
.topbar-left,
.topbar-right,
.breadcrumb,
.sidebar-footer,
.server-card-top,
.section-heading,
.composer-top,
.composer-bottom,
.composer-actions,
.composer-tools,
.dialog-actions {
  display: flex;
  align-items: center;
}

.sidebar-header {
  justify-content: space-between;
  min-height: 45px;
  margin-bottom: 24px;
}

.brand {
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-icon,
.welcome-logo,
.about-logo,
.model-card-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #333333, #111111);
  font-weight: 800;
}

.brand-icon {
  width: 35px;
  height: 35px;
  border-radius: 12px;
  box-shadow: none;
  font-size: 19px;
}

.brand-name {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--accent);
}

.icon-button,
.mini-icon-button {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-button {
  width: 37px;
  height: 37px;
  font-size: 18px;
}

.mini-icon-button {
  width: 29px;
  height: 29px;
  font-size: 18px;
}

.icon-button:hover,
.mini-icon-button:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.new-chat-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.new-chat-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.new-chat-icon {
  color: var(--accent);
  font-size: 23px;
  line-height: 1;
}

.shortcut {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 11px;
}

.sidebar-navigation {
  display: grid;
  gap: 5px;
  margin: 21px 0 25px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

.nav-icon {
  display: inline-grid;
  width: 22px;
  place-items: center;
  font-size: 17px;
}

.sidebar-section {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.section-heading {
  justify-content: space-between;
  padding: 0 5px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.history-search {
  width: 100%;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
}

.history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 11px 0 9px;
}

.filter-chip {
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
}

.filter-chip:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.filter-chip.active {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--text);
}

.history-list {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 3px 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.history-empty {
  padding: 18px 8px;
  color: var(--text-muted);
  text-align: center;
  font-size: 12px;
}

.history-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
}

.history-item:hover,
.history-item.active {
  background: var(--surface-soft);
}

.history-item.active {
  border-color: var(--border);
}

.history-title {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  font-size: 12px;
}

.history-date {
  color: var(--text-muted);
  font-size: 10px;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.history-action {
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 10px;
  cursor: pointer;
}

.history-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.delete-history:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.sidebar-spacer {
  display: none;
}

.server-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.server-card-top {
  gap: 8px;
}

.server-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #c2c5cc;
}

.server-dot.online {
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 12%, transparent);
}

.server-dot.offline {
  background: var(--danger);
}

.server-label {
  color: var(--text-secondary);
  font-size: 11px;
}

#refreshStatus {
  margin-left: auto;
}

.server-status-text {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

.server-status-detail {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.sidebar-footer {
  gap: 10px;
  margin-top: 14px;
  padding: 12px 4px 2px;
  border-top: 1px solid var(--border);
}

.profile-avatar {
  display: grid;
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 17px;
  font-weight: 800;
}

.profile-info {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.profile-info strong {
  font-size: 12px;
}

.profile-info span {
  color: var(--text-muted);
  font-size: 10px;
}

.footer-settings {
  margin-left: auto;
}

.main-area {
  display: flex;
  min-width: 0;
  min-height: 100dvh;
  flex-direction: column;
  margin-left: var(--sidebar-width);
  background: var(--bg);
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  justify-content: space-between;
  min-height: 65px;
  padding: 0 27px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-right {
  gap: 12px;
}

.open-sidebar {
  display: none;
}

.breadcrumb {
  gap: 10px;
  color: var(--text-secondary);
  font-size: 12px;
}

.breadcrumb-brand {
  color: var(--text);
  font-weight: 700;
}

.breadcrumb-separator {
  color: var(--text-muted);
}

#pageTitle {
  color: var(--text-secondary);
}

.top-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 11px;
}

.view {
  flex: 1;
  min-width: 0;
}

.chat-layout {
  display: flex;
  width: 100%;
  max-width: 1000px;
  height: calc(100dvh - 106px);
  min-height: 460px;
  flex-direction: column;
  margin: 0 auto;
  padding: 0 28px;
}

.chat-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 0 20px;
  scroll-behavior: smooth;
}

.welcome-screen {
  display: flex;
  max-width: 760px;
  flex-direction: column;
  align-items: center;
  margin: clamp(30px, 7vh, 76px) auto 40px;
  text-align: center;
  animation: rise-in 0.4s ease both;
}

.welcome-logo {
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: none;
  font-size: 29px;
}

.welcome-eyebrow,
.page-eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.welcome-screen h1,
.secondary-content h1 {
  margin: 13px 0 10px;
  font-size: clamp(30px, 4.2vw, 47px);
  font-weight: 750;
  letter-spacing: -2px;
  line-height: 1.15;
}

.welcome-screen h1 span,
.secondary-content h1 span {
  color: var(--accent);
}

.welcome-description {
  max-width: 440px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
}

.suggestion-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 33px;
}

.suggestion-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease,
    background 0.18s ease, box-shadow 0.18s ease;
}

.suggestion-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.suggestion-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 12px;
  font-size: 18px;
}

.suggestion-purple {
  background: #f0edff;
  color: #7357df;
}

.suggestion-blue {
  background: #eaf3ff;
  color: #3e80df;
}

.suggestion-orange {
  background: #fff1e6;
  color: #e08b42;
}

.suggestion-green {
  background: #e7f8ef;
  color: #259d70;
}

.suggestion-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.suggestion-copy strong {
  font-size: 12px;
  font-weight: 700;
}

.suggestion-copy > span {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.suggestion-arrow {
  align-self: flex-start;
  color: var(--text-muted);
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.message {
  display: flex;
  width: 100%;
  max-width: 790px;
  flex-direction: column;
  gap: 9px;
  margin: 0 auto;
  animation: rise-in 0.22s ease both;
}

.message-role {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 750;
}

.message-content {
  color: var(--text);
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.user-message .message-content {
  align-self: flex-end;
  max-width: min(88%, 650px);
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 16px 16px 4px 16px;
  background: var(--surface-soft);
}

.user-message .message-role {
  align-self: flex-end;
}

.assistant-message {
  padding-bottom: 7px;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.message-action-button,
.copy-message {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
}

.message-action-button:hover,
.copy-message:hover {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--text);
}

.message-content pre {
  max-width: 100%;
  margin: 12px 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
  white-space: pre;
}

.message-content code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.message-content p {
  margin: 0 0 12px;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

.composer-area {
  position: absolute !important;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 12px 28px 78px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.chat-form {
  width: 100%;
  max-width: 790px;
  margin: 0 auto;
  padding: 12px 14px 11px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 5px 24px rgba(20, 24, 40, 0.045);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-form:focus-within {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 6px 28px color-mix(in srgb, var(--accent) 7%, transparent);
}

.composer-top {
  justify-content: space-between;
  margin-bottom: 8px;
}

.composer-context {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 650;
}

.context-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.char-count {
  color: var(--text-muted);
  font-size: 10px;
}

.chat-form textarea {
  display: block;
  width: 100%;
  min-height: 43px;
  max-height: 200px;
  padding: 7px 0;
  resize: none;
  overflow-y: auto;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}

.chat-form textarea::placeholder {
  color: var(--text-muted);
}

.chat-form textarea:focus-visible {
  outline: none;
}

.composer-bottom {
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.composer-tools,
.composer-actions {
  gap: 8px;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
}

.tool-button:hover {
  background: var(--surface-hover);
}

.send-button,
.stop-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.send-button,
.primary-button {
  background: var(--accent);
  color: #fff;
}

.send-button:hover:not(:disabled),
.primary-button:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
}

.send-button:disabled {
  background: var(--surface-hover);
  color: var(--text-muted);
  opacity: 1;
}

.send-arrow {
  font-size: 17px;
  line-height: 1;
}

.stop-button {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
}

.stop-button:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.composer-disclaimer {
  margin: 10px 0 0;
  color: var(--text-muted);
  text-align: center;
  font-size: 10px;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 28px 13px;
  color: var(--text-muted);
  font-size: 10px;
}

.secondary-view {
  padding: 55px 30px 40px;
}

.secondary-content {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  animation: rise-in 0.3s ease both;
}

.secondary-content h1 {
  margin-top: 15px;
  font-size: clamp(35px, 5vw, 49px);
}

.secondary-content > p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
}

.coding-panel,
.model-card,
.settings-card,
.about-card {
  margin-top: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.coding-panel {
  padding: 26px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-kicker,
.model-badge {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.panel-heading h2 {
  margin: 7px 0 0;
  font-size: 21px;
  letter-spacing: -0.6px;
}

.code-symbol {
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.coding-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 25px 0;
}

.coding-option {
  display: flex;
  min-height: 140px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.coding-option:hover {
  border-color: var(--accent);
  background: var(--surface-soft);
}

.coding-option-icon {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
}

.coding-option strong {
  font-size: 12px;
}

.coding-option > span:last-child {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.6;
}

.primary-button {
  min-height: 42px;
  padding: 0 18px;
}

.model-card {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 24px;
}

.model-card-icon {
  width: 57px;
  height: 57px;
  border-radius: 17px;
  font-size: 27px;
}

.model-card-info {
  flex: 1;
  min-width: 0;
}

.model-card-info h2 {
  margin: 6px 0 3px;
  font-size: 20px;
}

.model-card-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.7;
}

.model-connection {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 10px;
}

.model-connection.online {
  border-color: color-mix(in srgb, var(--success) 30%, var(--border));
  background: color-mix(in srgb, var(--success) 8%, var(--surface));
  color: var(--success);
}

.model-connection.offline {
  color: var(--danger);
}

.model-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 15px;
}

.model-info-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.model-info-card span {
  color: var(--text-muted);
  font-size: 11px;
}

.model-info-card strong {
  font-size: 13px;
}

.models-note {
  margin-top: 20px !important;
  font-size: 11px !important;
}

.settings-card {
  padding: 0 22px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 0;
  border-bottom: 1px solid var(--border);
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row strong {
  font-size: 13px;
}

.settings-row p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.7;
}

.theme-switcher {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
}

.theme-choice {
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 10px;
  cursor: pointer;
}

.theme-choice.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.07);
}

.secondary-button,
.danger-button {
  min-height: 34px;
  flex-shrink: 0;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 10px;
  cursor: pointer;
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.danger-button {
  border-color: color-mix(in srgb, var(--danger) 30%, var(--border));
  color: var(--danger);
}

.danger-button:hover {
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
}

.about-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  box-shadow: none;
}

.about-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 22px;
}

.about-card strong {
  font-size: 12px;
}

.about-card p {
  margin: 4px 0;
  color: var(--text-secondary);
  font-size: 10px;
}

.about-card span {
  color: var(--text-muted);
  font-size: 10px;
}

.toast-container {
  position: fixed;
  z-index: 150;
  right: 20px;
  bottom: 20px;
  display: flex;
  width: min(360px, calc(100vw - 40px));
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}

.toast {
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 12px;
  animation: rise-in 0.2s ease both;
  pointer-events: auto;
}

.toast.error {
  border-color: color-mix(in srgb, var(--danger) 40%, var(--border));
}

.confirm-dialog {
  width: min(420px, calc(100vw - 30px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.confirm-dialog::backdrop {
  background: rgba(10, 12, 20, 0.42);
  backdrop-filter: blur(4px);
}

.dialog-content {
  padding: 25px;
}

.dialog-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  color: var(--danger);
  font-size: 20px;
  font-weight: 800;
}

.dialog-content h2 {
  margin: 17px 0 7px;
  font-size: 19px;
}

.dialog-content p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.8;
}

.dialog-actions {
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
}

.sidebar-overlay {
  display: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (min-width: 1450px) {
  :root {
    --sidebar-width: 300px;
  }

  .chat-layout {
    max-width: 1080px;
  }

  .welcome-screen {
    margin-top: 9vh;
  }

  .suggestion-card {
    padding: 19px;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 270px;
  }

  .topbar {
    padding: 0 18px;
  }

  .chat-layout {
    padding: 0 20px;
  }

  .welcome-screen {
    margin-top: 5vh;
  }

  .suggestion-card {
    padding: 13px;
  }

  .secondary-view {
    padding: 40px 22px;
  }
}

@media (max-width: 700px) {
  .sidebar {
    width: min(310px, 86vw);
    transform: translateX(-105%);
    box-shadow: none;
  }

  .sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.12);
  }

  .sidebar-overlay {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: block;
    visibility: hidden;
    background: rgba(10, 12, 20, 0.35);
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .sidebar-overlay.visible {
    visibility: visible;
    opacity: 1;
  }

  .main-area {
    margin-left: 0;
  }

  .open-sidebar {
    display: inline-grid;
  }

  .topbar {
    min-height: 59px;
    padding: 0 13px;
  }

  .topbar-left,
  .topbar-right {
    gap: 7px;
  }

  .top-status {
    gap: 6px;
    font-size: 10px;
  }

  .breadcrumb {
    gap: 7px;
    font-size: 11px;
  }

  .chat-layout {
    height: calc(100dvh - 99px);
    min-height: 400px;
    padding: 0 14px;
  }

  .chat-scroll-area {
    padding-top: 20px;
  }

  .welcome-screen {
    margin-top: clamp(25px, 6vh, 50px);
  }

  .welcome-logo {
    width: 51px;
    height: 51px;
    border-radius: 17px;
    font-size: 25px;
  }

  .welcome-screen h1 {
    max-width: 340px;
    font-size: clamp(29px, 7vw, 39px);
    letter-spacing: -1.5px;
  }

  .welcome-description {
    max-width: 330px;
    font-size: 12px;
  }

  .suggestion-grid {
    gap: 8px;
    margin-top: 25px;
  }

  .suggestion-card {
    gap: 9px;
    min-height: 83px;
    padding: 10px;
  }

  .suggestion-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 15px;
  }

  .suggestion-copy strong {
    font-size: 11px;
  }

  .suggestion-copy > span {
    font-size: 9px;
  }

  .suggestion-arrow {
    display: none;
  }

  .chat-form {
    padding: 10px 11px;
    border-radius: 15px;
  }

  .composer-disclaimer {
    padding: 0 8px;
    font-size: 9px;
  }

  .tool-button {
    padding: 7px;
  }

  .app-footer {
    padding: 9px 14px 11px;
    font-size: 9px;
  }

  .coding-options {
    grid-template-columns: 1fr;
  }

  .coding-option {
    min-height: auto;
  }

  .model-card {
    flex-wrap: wrap;
    padding: 18px;
  }

  .model-connection {
    margin-left: 74px;
  }

  .settings-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .settings-card {
    padding: 0 16px;
  }
}

@media (max-width: 420px) {
  .top-status {
    display: none;
  }

  .suggestion-grid {
    grid-template-columns: 1fr;
  }

  .suggestion-card {
    min-height: 66px;
    padding: 12px;
  }

  .suggestion-arrow {
    display: block;
  }

  .welcome-screen {
    margin-top: 20px;
  }

  .welcome-screen h1 {
    font-size: 30px;
  }

  .welcome-description {
    max-width: 290px;
  }

  .chat-layout {
    padding: 0 10px;
  }

  .secondary-view {
    padding: 30px 15px;
  }

  .model-info-grid {
    grid-template-columns: 1fr;
  }

  .app-footer span:last-child {
    max-width: 155px;
    text-align: right;
  }

  .composer-tools .tool-button span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 17px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.login-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

@media (max-width: 420px) {
  .login-button {
    min-height: 33px;
    padding: 0 12px;
  }
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 17px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.login-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.login-button[hidden] {
  display: none !important;
}

@media (max-width: 420px) {
  .login-button {
    min-height: 33px;
    padding: 0 12px;
  }
}

/* PROFIL SIDEBAR - TETAP DI PALING BAWAH */

.sidebar-footer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 14px;
  min-height: 68px;
  flex-shrink: 0;
}

/* AVATAR PROFIL */

.sidebar-footer .profile-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}

/* NAMA DAN STATUS AKUN */

.sidebar-footer .profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.sidebar-footer .profile-info strong {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer .profile-info span {
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* TOMBOL SETTINGS */

.sidebar-footer .footer-settings {
  flex-shrink: 0;
  margin-left: auto;
}

/* PAKSA SIDEBAR MEMENUHI TINGGI LAYAR */

.app {
  min-height: 100vh;
  height: 100vh;
}

.sidebar {
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* AREA RIWAYAT MENGISI RUANG KOSONG */

.sidebar-section {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* PROFIL SELALU DI BAWAH */

.sidebar > .sidebar-footer {
  position: relative;
  flex: 0 0 auto;
  margin-top: auto;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
  background: var(--sidebar-bg, var(--bg));
  border-top: 1px solid var(--border);
  z-index: 5;
}

/* RIWAYAT BISA DI-SCROLL */

.sidebar-section .history-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* PROFIL DI BAWAH SIDEBAR */

.sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.sidebar-section {
  flex: 1 1 auto;
  min-height: 0;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: auto;
  padding: 12px 14px;
  flex-shrink: 0;
  box-sizing: border-box;
  border-top: 1px solid var(--border);
}

/* AVATAR */

.sidebar-footer .profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

/* NAMA DAN PAKET */

.sidebar-footer .profile-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sidebar-footer .profile-info strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer .profile-info span {
  font-size: 11px;
  color: var(--muted);
}

/* UPGRADE */

.sidebar-footer .upgrade-button {
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
}

/* PROFIL SIDEBAR — RAPAT KE UJUNG BAWAH */

.sidebar {
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.sidebar-footer {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;

  margin: 0;
  padding: 12px 14px;

  width: 100%;
  min-height: 64px;
  box-sizing: border-box;

  /* Samakan dengan warna sidebar */
  background: var(--sidebar-bg, var(--bg));

  /* Hilangkan garis di atas profil */
  border-top: none !important;
  box-shadow: none !important;

  /* Tetap menempel di bawah */
  margin-top: auto;
}

/* AREA RIWAYAT MENGISI RUANG DI ATAS PROFIL */

.sidebar-section {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.history-list {
  min-height: 0;
  overflow-y: auto;
}

/* AVATAR */

.sidebar-footer .profile-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* NAMA DAN STATUS */

.sidebar-footer .profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

/* TOMBOL UPGRADE */

.sidebar-footer .upgrade-button {
  flex-shrink: 0;
}

/* FIX: PROFIL MENEMPEL KE UJUNG BAWAH SIDEBAR */

.sidebar {
  height: 100vh !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding-bottom: 0 !important;
  gap: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Riwayat mengisi ruang kosong */
.sidebar > .sidebar-section {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
}

/* Footer memenuhi lebar sidebar */
.sidebar > .sidebar-footer {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 64px !important;
  margin: 0 !important;
  margin-top: auto !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;

  /* Samakan dengan latar sidebar */
  background: #17181d !important;

  /* Hilangkan garis pemisah */
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Hilangkan kemungkinan jarak dari container utama */
.app,
#sidebar {
  padding-bottom: 0 !important;
}

/* Warna profil tetap menyatu */
.sidebar > .sidebar-footer .profile-info {
  min-width: 0;
  flex: 1;
}

/* Tombol Upgrade tetap di kanan */
.sidebar > .sidebar-footer .upgrade-button {
  flex-shrink: 0;
}


/* ========================================
   NEXA PREMIUM MODAL
======================================== */

.premium-overlay[hidden] {
  display: none !important;
}

.premium-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.premium-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #17181d;
  color: #f5f5f5;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  animation: premium-card-enter 0.25s ease-out;
}

.premium-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #292a30;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

.premium-badge {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #dedee5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.premium-icon {
  margin-top: 20px;
  color: #ffffff;
  font-size: 38px;
}

.premium-card h2 {
  margin: 12px 0;
  color: #ffffff;
  font-size: 27px;
  line-height: 1.25;
}

.premium-description {
  margin: 0;
  color: #a8a9b3;
  font-size: 14px;
  line-height: 1.6;
}

.premium-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 24px;
}

.premium-currency {
  font-size: 22px;
  font-weight: 600;
}

.premium-amount {
  color: #ffffff;
  font-size: 46px;
  font-weight: 750;
  letter-spacing: -2px;
}

.premium-period {
  color: #a8a9b3;
  font-size: 14px;
}

.premium-price-note {
  margin: 6px 0 20px;
  color: #a8a9b3;
  font-size: 12px;
}

.premium-divider {
  height: 1px;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.12);
}

.premium-features-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 15px;
}

.premium-features {
  display: grid;
  gap: 13px;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
}

.premium-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #dedee5;
  font-size: 13px;
  line-height: 1.5;
}

.premium-check {
  color: #ffffff;
  font-weight: 700;
}

.premium-order-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: #ffffff;
  color: #151515;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.premium-order-button:hover {
  transform: translateY(-2px);
  background: #e9e9e9;
}

.premium-footer {
  margin: 16px 0 0;
  color: #92939d;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

@keyframes premium-card-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .premium-overlay {
    padding: 14px;
  }

  .premium-card {
    padding: 28px 22px 22px;
    border-radius: 20px;
  }

  .premium-card h2 {
    font-size: 24px;
  }

  .premium-amount {
    font-size: 40px;
  }
}

/* PREMIUM CARD - NO INNER SCROLL */
.premium-card {
  max-height: none !important;
  overflow: visible !important;
}

/* OVERLAY SCROLL, NOT THE CARD */
.premium-overlay {
  overflow-y: auto !important;
  align-items: center !important;
  justify-content: center !important;
}

/* MOBILE */
@media (max-width: 480px) {
  .premium-card {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* PREMIUM CARD - SMALLER & MORE SPACED */
.premium-overlay {
  padding: 30px !important;
}

.premium-card {
  width: calc(100% - 20px) !important;
  max-width: 380px !important;
  padding: 24px 22px 20px !important;
  border-radius: 20px !important;
}

/* KECILKAN JUDUL */
.premium-card h2 {
  font-size: 23px !important;
}

/* KECILKAN HARGA */
.premium-amount {
  font-size: 38px !important;
}

/* RAPATKAN JARAK FITUR */
.premium-features {
  gap: 10px !important;
  margin-bottom: 20px !important;
}

.premium-features li {
  font-size: 12px !important;
}

/* TOMBOL ORDER */
.premium-order-button {
  min-height: 44px !important;
  font-size: 13px !important;
}

/* HP */
@media (max-width: 480px) {
  .premium-overlay {
    padding: 20px !important;
  }

  .premium-card {
    width: 100% !important;
    max-width: 340px !important;
    padding: 22px 18px !important;
  }
}

/* FLOATING CHAT INPUT - TRANSPARENT BACKGROUND */

.chat-input-container,
.chat-input-wrapper,
.message-input-container {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* KOLOM KETIK */
#messageInput,
#chatInput,
#userInput,
textarea[name="message"] {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  color: var(--text) !important;
}

/* PLACEHOLDER */
#messageInput::placeholder,
#chatInput::placeholder,
#userInput::placeholder,
textarea[name="message"]::placeholder {
  color: var(--muted) !important;
  opacity: 1;
}

/* HILANGKAN BACKGROUND SAAT FOKUS */
#messageInput:focus,
#chatInput:focus,
#userInput:focus,
textarea[name="message"]:focus {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ========================================
   NEXA AI — FLOATING CHAT INPUT
======================================== */

/* Hilangkan latar belakang kotak composer */
.composer-area {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Jadikan form transparan */
.chat-form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Hilangkan latar belakang area pengetikan */
#messageInput {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  resize: none;
  color: var(--text) !important;
}

/* Saat kolom diklik */
#messageInput:focus {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Warna placeholder */
#messageInput::placeholder {
  color: var(--muted) !important;
  opacity: 1;
}

/* Hilangkan background tambahan pada bagian atas dan bawah */
.composer-top,
.composer-bottom {
  background: transparent !important;
  box-shadow: none !important;
}

/* Pastikan disclaimer tetap transparan */
.composer-disclaimer {
  background: transparent !important;
  box-shadow: none !important;
}

/* ========================================
   NEXA AI — FLOATING PILL COMPOSER
======================================== */

/* Hilangkan background pembungkus luar */
.composer-area {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 12px 20px !important;
}

/* Disclaimer tetap transparan */
.composer-disclaimer {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Kolom chat melayang */
.chat-form {
  position: relative !important;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;

  background: transparent !important;
  border: 1px solid rgba(145, 105, 255, 0.55) !important;
  border-radius: 28px !important;

  box-shadow:
    0 0 8px rgba(145, 105, 255, 0.16),
    0 0 22px rgba(145, 105, 255, 0.09) !important;

  overflow: visible !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Neon menyala ketika kolom aktif */
.chat-form:focus-within {
  border-color: rgba(145, 105, 255, 0.9) !important;

  box-shadow:
    0 0 8px rgba(145, 105, 255, 0.3),
    0 0 22px rgba(145, 105, 255, 0.18),
    0 0 38px rgba(145, 105, 255, 0.08) !important;
}

/* Hilangkan kotak bagian dalam */
.composer-top,
.composer-bottom {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Input tanpa background */
#messageInput {
  display: block;
  width: 100%;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  resize: none;
}

/* Tidak ada kotak tambahan saat mengetik */
#messageInput:focus {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Layout HP */
@media (max-width: 600px) {
  .composer-area {
    padding: 10px 12px !important;
  }

  .chat-form {
    border-radius: 24px !important;
  }
}

/* ========================================
   NEXA AI — RGB BORDER ONLY
======================================== */

.chat-form {
  border: 1px solid transparent !important;
  border-radius: 28px !important;

  /* Pertahankan background asli kolom */
  background:
    linear-gradient(
      var(--bg, transparent),
      var(--bg, transparent)
    ) padding-box,
    linear-gradient(
      120deg,
      #ff3b3b,
      #ffad33,
      #eaff42,
      #39ff88,
      #35eaff,
      #4775ff,
      #c13cff,
      #ff3b9d,
      #ff3b3b
    ) border-box !important;

  background-size: 100% 100%, 300% 300% !important;
  animation: nexa-rgb-border 14s linear infinite !important;

  box-shadow: none !important;
}

/* RGB bergerak pelan pada garis pembungkus */
@keyframes nexa-rgb-border {
  0% {
    background-position: 0 0, 0% 50%;
  }

  50% {
    background-position: 0 0, 100% 50%;
  }

  100% {
    background-position: 0 0, 0% 50%;
  }
}

/* Input tetap transparan */
#messageInput,
#messageInput:focus {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Bagian dalam tidak ikut berubah warna */
.composer-top,
.composer-bottom {
  background: transparent !important;
  box-shadow: none !important;
}

/* Glow RGB lembut di garis luar */
.chat-form:focus-within {
  box-shadow:
    0 0 8px rgba(145, 105, 255, 0.16) !important;
}

/* ========================================
   NEXA AI — ROTATING RGB NEON BORDER
======================================== */

.chat-form {
  position: relative !important;
  isolation: isolate;
  border: 1px solid transparent !important;
  border-radius: 28px !important;

  /* Background asli tetap dipertahankan */
  background-clip: padding-box !important;
}

/* RGB berputar mengelilingi pembungkus */
.chat-form::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;

  background: conic-gradient(
    from var(--rgb-angle, 0deg),
    #ff004c,
    #ff8a00,
    #eeff00,
    #00ff85,
    #00e5ff,
    #345cff,
    #bd00ff,
    #ff00c8,
    #ff004c
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
  animation: nexa-rgb-rotate 6s linear infinite;
}

/* Gerakkan sudut gradien agar RGB berputar */
@property --rgb-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes nexa-rgb-rotate {
  from {
    --rgb-angle: 0deg;
  }

  to {
    --rgb-angle: 360deg;
  }
}

/* Glow neon lembut */
.chat-form:focus-within {
  box-shadow:
    0 0 10px rgba(145, 105, 255, 0.15),
    0 0 22px rgba(145, 105, 255, 0.08) !important;
}

/* Input tetap transparan */
#messageInput,
#messageInput:focus {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ========================================
   NEXA AI — FLOATING COMPOSER ONLY
======================================== */

/* Hilangkan seluruh background area luar */
.chat-layout,
.chat-scroll-area,
.composer-area {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Hilangkan lapisan background form */
.chat-form {
  position: relative !important;
  isolation: isolate;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 28px !important;
  box-shadow: none !important;
}

/* RGB hanya pada garis pembungkus */
.chat-form::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 2px;
  border-radius: inherit;

  background: conic-gradient(
    from var(--rgb-angle, 0deg),
    #ff004c,
    #ff8a00,
    #eeff00,
    #00ff85,
    #00e5ff,
    #345cff,
    #bd00ff,
    #ff00c8,
    #ff004c
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
  animation: nexa-rgb-rotate 6s linear infinite;
}

/* Background kolom input transparan */
#messageInput,
#messageInput:focus,
.composer-top,
.composer-bottom {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Hilangkan background disclaimer */
.composer-disclaimer {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Jangan tampilkan lapisan tambahan saat mengetik */
.chat-form:focus-within {
  background: transparent !important;
  box-shadow: none !important;
}

/* RGB berputar perlahan */
@property --rgb-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes nexa-rgb-rotate {
  from {
    --rgb-angle: 0deg;
  }

  to {
    --rgb-angle: 360deg;
  }
}

/* HILANGKAN LAPISAN DI BELAKANG KAPSUL CHAT */

.chat-layout {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.composer-area {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* HILANGKAN DEKORASI PEMBUNGKUS LUAR */

.composer-area::before,
.composer-area::after {
  content: none !important;
  display: none !important;
}

/* KAPSUL CHAT TETAP ADA */

.chat-form {
  position: relative !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* TEKS PERINGATAN TETAP TRANSPARAN */

.composer-disclaimer {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* TURUNKAN KAPSUL CHAT */
.composer-area {
  padding-top: 30px !important;
  transform: translateY(20px);
}

/* JAGA POSISI DISCLAIMER */
.composer-disclaimer {
  margin-top: 10px !important;
}

/* HILANGKAN LAPISAN HITAM DI BELAKANG KAPSUL */

.chat-layout,
.chat-scroll-area,
.composer-area,
.composer-area::before,
.composer-area::after {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* KAPSUL TETAP TRANSPARAN */
.chat-form {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* INPUT TETAP TRANSPARAN */
#messageInput,
.composer-top,
.composer-bottom {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* DISCLAIMER TANPA KOTAK */
.composer-disclaimer {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* FORCE REMOVE OUTER COMPOSER BACKGROUND */

main.main-area .view#chatView .chat-layout > .composer-area,
main.main-area .view#chatView .chat-layout > .composer-area::before,
main.main-area .view#chatView .chat-layout > .composer-area::after {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* REMOVE BACKGROUND FROM OUTER FORM LAYERS */

main.main-area .view#chatView .chat-form {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* KEEP RGB BORDER ANIMATION */
main.main-area .view#chatView .chat-form::before {
  filter: none !important;
}

/* KEEP INPUT TRANSPARENT */
main.main-area .view#chatView #messageInput,
main.main-area .view#chatView .composer-top,
main.main-area .view#chatView .composer-bottom {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* FIX: HILANGKAN PANEL BESAR DI BELAKANG KAPSUL CHAT */
main.main-area .view#chatView .chat-layout {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* HILANGKAN BACKGROUND AREA SCROLL */
main.main-area .view#chatView .chat-scroll-area {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* HILANGKAN BACKGROUND PEMBUNGKUS KAPSUL */
main.main-area .view#chatView .composer-area {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* KAPSUL RGB TETAP DIPERTAHANKAN */
main.main-area .view#chatView .chat-form {
  background-color: transparent !important;
  box-shadow: none !important;
  isolation: isolate !important;
}

/* INPUT DAN TOMBOL TIDAK DIUBAH */
main.main-area .view#chatView #messageInput {
  background: transparent !important;
  background-color: transparent !important;
}

/* PERKECIL AREA CHAT */
.chat-layout {
  max-width: 850px !important;
  height: calc(100dvh - 155px) !important;
  min-height: 360px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* PERKECIL AREA SCROLL */
.chat-scroll-area {
  padding-bottom: 10px !important;
}

/* PERKECIL JARAK DI SEKITAR KAPSUL */
.composer-area {
  padding: 6px 0 4px !important;
  transform: translateY(0) !important;
}

/* PERKECIL KAPSUL SEDIKIT */
.chat-form {
  max-width: 680px !important;
  padding: 8px 12px !important;
  border-radius: 25px !important;
}

/* PERKECIL TINGGI INPUT */
.chat-form textarea {
  min-height: 32px !important;
  max-height: 120px !important;
}

/* RAPATKAN BAGIAN ATAS DAN BAWAH */
.composer-top {
  margin-bottom: 4px !important;
}

.composer-bottom {
  margin-top: 4px !important;
}

/* RAPATKAN TEKS DI BAWAH KAPSUL */
.composer-disclaimer {
  margin-top: 6px !important;
}

/* SEMBUNYIKAN AREA PEMBUNGKUS YANG MENGGANGGU */
main.main-area .view#chatView > .chat-layout > .chat-scroll-area {
  min-height: 0 !important;
}

/* GEPENGKAN AREA COMPOSER LUAR */
main.main-area .view#chatView > .chat-layout > .composer-area {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* HILANGKAN ELEMEN DEKORASI LUAR */
main.main-area .view#chatView > .chat-layout > .composer-area::before,
main.main-area .view#chatView > .chat-layout > .composer-area::after {
  display: none !important;
  content: none !important;
}

/* KAPSUL RGB TETAP TERLIHAT */
main.main-area .view#chatView .chat-form {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 auto !important;
}

/* RAPATKAN TEKS DI BAWAH KAPSUL */
main.main-area .view#chatView .composer-disclaimer {
  margin: 4px 0 0 !important;
  padding: 0 !important;
}

/* SAMAKAN WARNA BAGIAN AKUN DENGAN SIDEBAR PUTIH */
.sidebar .user-profile,
.sidebar .account-area,
.sidebar .user-area,
.sidebar .profile-area {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #e5e7eb !important;
}

/* TEKS DAN IKON AKUN */
.sidebar .user-profile *,
.sidebar .account-area *,
.sidebar .user-area *,
.sidebar .profile-area * {
  color: #111111 !important;
}

/* JIKA BAGIAN AKUN MENGGUNAKAN FOOTER SIDEBAR */
.sidebar footer,
.sidebar .sidebar-footer {
  background: #ffffff !important;
  color: #111111 !important;
  border-top: 1px solid #e5e7eb !important;
}

/* WARNA AKUN MENGIKUTI TEMA AKTIF */
.sidebar .user-profile,
.sidebar .account-area,
.sidebar .user-area,
.sidebar .profile-area,
.sidebar footer,
.sidebar .sidebar-footer {
  background: var(--bg, inherit) !important;
  color: var(--text, inherit) !important;
  border-color: var(--border, #e5e7eb) !important;
}

/* PERLEBAR AREA AKUN DI SIDEBAR */
.sidebar .user-profile,
.sidebar .account-area,
.sidebar .user-area,
.sidebar .profile-area,
.sidebar footer,
.sidebar .sidebar-footer {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* HILANGKAN JARAK SAMPING YANG MEMPERSEMPIT AKUN */
.sidebar footer,
.sidebar .sidebar-footer {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

/* WARNA AKUN MENGIKUTI TEMA SIDEBAR */
.sidebar .user-profile,
.sidebar .account-area,
.sidebar .user-area,
.sidebar .profile-area,
.sidebar footer,
.sidebar .sidebar-footer {
  background: var(--sidebar-bg, var(--sidebar-background, var(--bg))) !important;
  color: var(--text, inherit) !important;
  border-color: var(--border, #e5e7eb) !important;
}

/* WARNA TEKS AKUN */
.sidebar .user-profile *,
.sidebar .account-area *,
.sidebar .user-area *,
.sidebar .profile-area *,
.sidebar footer *,
.sidebar .sidebar-footer * {
  color: inherit;
}

/* AREA AKUN — PENUHI LEBAR SIDEBAR */
.sidebar footer,
.sidebar .sidebar-footer,
.sidebar .user-profile,
.sidebar .account-area,
.sidebar .user-area,
.sidebar .profile-area {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* HILANGKAN BATAS SAMPING PEMBUNGKUS AKUN */
.sidebar footer,
.sidebar .sidebar-footer {
  left: 0 !important;
  right: 0 !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

/* WARNA AKUN IKUT TEMA SIDEBAR */
.sidebar footer,
.sidebar .sidebar-footer {
  background: var(--sidebar-bg, var(--sidebar-background, var(--bg))) !important;
  border-color: var(--border, #e5e7eb) !important;
}

/* WARNA AKUN SELALU MENGIKUTI SIDEBAR */
.sidebar .sidebar-footer {
  background: var(--sidebar-bg, var(--sidebar-background, var(--bg))) !important;
  color: var(--text, inherit) !important;
  border-top-color: var(--border, #303030) !important;
}

/* WARNA TEKS NAMA DAN STATUS */
.sidebar .sidebar-footer .profile-info strong,
.sidebar .sidebar-footer .profile-info span {
  color: inherit !important;
}

/* WARNA TOMBOL UPGRADE */
.sidebar .sidebar-footer .upgrade-button {
  color: inherit;
}

/* AREA AKUN MEMENUHI LEBAR SIDEBAR */
.sidebar .sidebar-footer {
  position: relative;
  flex-shrink: 0;
  width: calc(100% + 30px) !important;
  margin: auto -15px 0 !important;
  padding: 14px 15px !important;
  box-sizing: border-box;

  background: var(--surface) !important;
  color: var(--text) !important;
  border-top: 1px solid var(--border) !important;
  border-radius: 0 !important;
}

/* TEMA TERANG DAN GELAP */
:root:not([data-theme="dark"]) .sidebar .sidebar-footer {
  background: #ffffff !important;
  color: #191b20 !important;
}

:root[data-theme="dark"] .sidebar .sidebar-footer {
  background: #17191f !important;
  color: #f2f3f7 !important;
}

/* TEKS AKUN */
.sidebar .sidebar-footer .profile-info strong {
  color: var(--text) !important;
}

.sidebar .sidebar-footer .profile-info span {
  color: var(--text-secondary) !important;
}

/* HILANGKAN KOTAK BESAR DI BELAKANG KAPSUL */
.composer-area {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* KAPSUL INPUT MELAYANG */
.chat-form {
  position: relative;
  z-index: 5;
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* PASTIKAN AREA CHAT TIDAK TERTUTUP KOTAK */
.chat-layout {
  position: relative;
}

/* FOOTER TIDAK MEMBUAT LATAR BESAR */
.composer-disclaimer {
  background: transparent !important;
}

/* FIX FINAL — KAPSUL MELAYANG TANPA PANEL BELAKANG */
main.main-area .view#chatView .chat-layout {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

main.main-area .view#chatView .composer-area {
  position: relative !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Hapus lapisan dekorasi luar */
main.main-area .view#chatView .composer-area::before,
main.main-area .view#chatView .composer-area::after {
  content: none !important;
  display: none !important;
}

/* Kapsul tetap punya garis RGB, tanpa kotak latar */
main.main-area .view#chatView .chat-form {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Input dan kontrol tetap transparan */
main.main-area .view#chatView .composer-top,
main.main-area .view#chatView .composer-bottom,
main.main-area .view#chatView #messageInput,
main.main-area .view#chatView .composer-disclaimer {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* NEXAOFFICIALAI — HANYA KAPSUL YANG MEMILIKI LATAR */
#chatView .composer-area,
#chatView .composer-area *,
#chatView .chat-layout {
  background-color: transparent;
}

/* Hilangkan panel besar di area input */
#chatView .composer-area {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Kapsul input tetap melayang */
#chatView .composer-area .chat-form {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 28px !important;
  isolation: isolate;
}

/* Hilangkan lapisan dekorasi luar */
#chatView .composer-area::before,
#chatView .composer-area::after {
  display: none !important;
  content: none !important;
}

/* Jangan tutupi chat dengan panel */
#chatView .chat-scroll-area {
  background: transparent !important;
}

/* HAPUS PANEL BESAR, PERTAHANKAN KAPSUL RGB */
#chatView .composer-area {
  display: block !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* KAPSUL INPUT TETAP MUNCUL */
#chatView .composer-area .chat-form {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 28px !important;
  isolation: isolate !important;
  position: relative !important;
}

/* HILANGKAN DEKORASI PEMBUNGKUS */
#chatView .composer-area::before,
#chatView .composer-area::after {
  content: none !important;
  display: none !important;
}

/* INPUT TETAP BISA DIPAKAI */
#chatView #messageInput {
  background: transparent !important;
  pointer-events: auto !important;
}

/* ==========================================
   NEXAOFFICIALAI — CLEAN FLOATING RGB COMPOSER
   Panel luar transparan, kapsul RGB tetap ada
========================================== */

/* Area chat tidak memiliki panel tambahan */
#chatView .chat-layout {
  position: relative !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Pembungkus kapsul sepenuhnya transparan */
#chatView .composer-area {
  position: absolute !important;
  z-index: 20 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  padding: 12px 20px 10px !important;
  margin: 0 !important;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;

  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  transform: none !important;
}

/* Hilangkan dekorasi milik pembungkus luar */
#chatView .composer-area::before,
#chatView .composer-area::after {
  content: none !important;
  display: none !important;
}

/* Kapsul input */
#chatView .composer-area .chat-form {
  position: relative !important;
  isolation: isolate !important;

  display: block !important;
  width: 100% !important;
  max-width: 680px !important;
  height: auto !important;
  min-height: 0 !important;

  margin: 0 auto !important;
  padding: 8px 12px !important;

  border: 1px solid transparent !important;
  border-radius: 25px !important;

  /* Tidak ada bidang warna di dalam kapsul */
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  box-shadow: none !important;
  outline: none !important;
  overflow: visible !important;

  visibility: visible !important;
  opacity: 1 !important;
}

/* Garis RGB bergerak di sekeliling kapsul */
#chatView .composer-area .chat-form::before {
  content: "" !important;
  position: absolute !important;
  inset: -1px !important;
  z-index: -1 !important;

  padding: 2px !important;
  border-radius: inherit !important;

  background: conic-gradient(
    from var(--rgb-angle, 0deg),
    #ff004c,
    #ff8a00,
    #eeff00,
    #00ff85,
    #00e5ff,
    #345cff,
    #bd00ff,
    #ff00c8,
    #ff004c
  ) !important;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask-composite: exclude !important;

  pointer-events: none !important;
  animation: nexa-rgb-rotate 6s linear infinite !important;
}

/* Jangan tampilkan dekorasi kedua */
#chatView .composer-area .chat-form::after {
  content: none !important;
  display: none !important;
}

/* Input dan bagian dalam kapsul transparan */
#chatView .composer-area .composer-top,
#chatView .composer-area .composer-bottom,
#chatView .composer-area #messageInput {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Input tetap dapat digunakan */
#chatView .composer-area #messageInput {
  display: block !important;
  width: 100% !important;
  border: none !important;
  outline: none !important;
  resize: none !important;
  color: var(--text) !important;
}

/* Fokus tidak menambahkan kotak baru */
#chatView .composer-area .chat-form:focus-within {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Disclaimer tidak memiliki panel */
#chatView .composer-area .composer-disclaimer {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
}

/* Animasi RGB */
@property --rgb-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes nexa-rgb-rotate {
  from {
    --rgb-angle: 0deg;
  }

  to {
    --rgb-angle: 360deg;
  }
}

/* Tampilan HP */
@media (max-width: 600px) {
  #chatView .composer-area {
    padding: 10px 12px 8px !important;
  }

  #chatView .composer-area .chat-form {
    border-radius: 24px !important;
  }
}

/* ======================================
   NEXAOFFICIALAI — FLOATING RGB COMPOSER
====================================== */

#chatView .composer-area-new {
  display: block !important;
  position: absolute !important;
  z-index: 30 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Kapsul input */
#chatView .composer-area-new .chat-form {
  position: relative !important;
  isolation: isolate !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;

  width: 100% !important;
  max-width: 760px !important;
  min-height: 118px !important;

  margin: 0 auto !important;
  padding: 17px 18px 12px !important;

  border: 1px solid transparent !important;
  border-radius: 26px !important;

  background:
    linear-gradient(
      var(--composer-bg, #ffffff),
      var(--composer-bg, #ffffff)
    ) padding-box,
    conic-gradient(
      from var(--new-rgb-angle, 0deg),
      #ff3158,
      #ffae00,
      #d5ff00,
      #00e89a,
      #00c8ff,
      #6655ff,
      #d64bff,
      #ff3158
    ) border-box !important;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07) !important;
}

/* Warna kapsul sesuai tema */
#chatView .composer-area-new {
  --composer-bg: #ffffff;
}

:root[data-theme="dark"] #chatView .composer-area-new {
  --composer-bg: #202020;
}

/* Input teks */
#chatView .composer-area-new #messageInput {
  display: block !important;
  flex: 1 !important;

  width: 100% !important;
  min-height: 42px !important;
  max-height: 220px !important;

  margin: 0 0 12px !important;
  padding: 0 !important;

  color: var(--text, #202020) !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;

  font: inherit !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  resize: none !important;
}

/* Placeholder */
#chatView .composer-area-new #messageInput::placeholder {
  color: var(--muted, #858585) !important;
  opacity: 1 !important;
}

/* Baris bawah kapsul */
#chatView .new-composer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

#chatView .new-composer-left,
#chatView .new-composer-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#chatView .new-composer-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;

  color: var(--text, #202020) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

#chatView .new-composer-status .context-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #16b981 !important;
}

#chatView .composer-area-new .char-count {
  color: var(--muted, #858585) !important;
  font-size: 11px !important;
}

/* Tombol kirim */
#chatView .composer-area-new .send-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  min-height: 36px !important;
  padding: 0 14px !important;

  border: none !important;
  border-radius: 13px !important;
  background: #171717 !important;
  color: #ffffff !important;

  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

:root[data-theme="dark"] #chatView .composer-area-new .send-button {
  background: #f0f0f0 !important;
  color: #171717 !important;
}

#chatView .composer-area-new .send-button:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

/* Disclaimer */
#chatView .composer-area-new .composer-disclaimer {
  margin: 8px auto 0 !important;
  padding: 0 8px !important;

  color: var(--muted, #858585) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  text-align: center !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

/* Animasi RGB */
@property --new-rgb-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

#chatView .composer-area-new .chat-form {
  animation: new-composer-rgb 6s linear infinite !important;
}

@keyframes new-composer-rgb {
  to {
    --new-rgb-angle: 360deg;
  }
}

/* Beri ruang agar pesan tidak tertutup kapsul */
#chatView .chat-scroll-area {
  padding-bottom: 175px !important;
}

/* Tampilan HP */
@media (max-width: 600px) {
  #chatView .composer-area-new {
    padding: 10px 12px 6px !important;
  }

  #chatView .composer-area-new .chat-form {
    min-height: 112px !important;
    padding: 15px 14px 11px !important;
    border-radius: 23px !important;
  }
}

/* FIX: HILANGKAN KOTAK PEMBUNGKUS LAMA */

#chatView .composer-area-new {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Kapsul tetap tampil, tanpa background tambahan */
#chatView .composer-area-new .chat-form {
  background:
    linear-gradient(
      var(--composer-bg, #ffffff),
      var(--composer-bg, #ffffff)
    ) padding-box,
    conic-gradient(
      from var(--new-rgb-angle, 0deg),
      #ff3158,
      #ffae00,
      #d5ff00,
      #00e89a,
      #00c8ff,
      #6655ff,
      #d64bff,
      #ff3158
    ) border-box !important;

  border: 1px solid transparent !important;
  border-radius: 26px !important;
  box-shadow: none !important;
}

/* Hilangkan dekorasi tambahan dari CSS lama */
#chatView .composer-area-new::before,
#chatView .composer-area-new::after {
  content: none !important;
  display: none !important;
}

/* Input dan bagian bawah tidak membuat kotak baru */
#chatView .composer-area-new #messageInput,
#chatView .composer-area-new .new-composer-bottom,
#chatView .composer-area-new .new-composer-left,
#chatView .composer-area-new .new-composer-actions {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Disclaimer tanpa panel */
#chatView .composer-area-new .composer-disclaimer {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* NEXAOFFICIALAI — FINAL COMPOSER POSITION FIX */

#chatView .composer-area-new {
  bottom: 0 !important;
  padding: 8px 24px 14px !important;
  background: transparent !important;
  transform: none !important;
}

#chatView .composer-area-new .chat-form {
  width: 100% !important;
  max-width: 760px !important;
  min-height: 108px !important;
  margin: 0 auto !important;
  padding: 14px 18px 12px !important;
  border-radius: 26px !important;
}

#chatView .composer-area-new .composer-disclaimer {
  margin-top: 5px !important;
}

#chatView .chat-scroll-area {
  padding-bottom: 190px !important;
}

#chatView .messages-list {
  padding-bottom: 24px !important;
}

@media (max-width: 600px) {
  #chatView .composer-area-new {
    padding: 8px 12px 10px !important;
  }

  #chatView .composer-area-new .chat-form {
    min-height: 104px !important;
    padding: 13px 14px 10px !important;
    border-radius: 23px !important;
  }

  #chatView .chat-scroll-area {
    padding-bottom: 180px !important;
  }
}

/* NEXAOFFICIALAI — POSISI KAPSUL DI BAWAH LAYAR */
#chatView .composer-area-new {
  position: fixed !important;
  left: 270px !important;
  right: 0 !important;
  bottom: 28px !important;
  width: auto !important;
  padding: 8px 24px 4px !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 100 !important;
  background: transparent !important;
}

#chatView .composer-area-new .chat-form {
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
}

@media (max-width: 600px) {
  #chatView .composer-area-new {
    left: 0 !important;
    right: 0 !important;
    bottom: 12px !important;
    padding: 8px 12px 4px !important;
  }
}

/* NEXAOFFICIALAI — CHATGPT-SIZE COMPOSER */

#chatView .composer-area-new {
  position: fixed !important;
  left: 270px !important;
  right: 0 !important;
  bottom: 14px !important;

  width: auto !important;
  padding: 0 24px !important;
  margin: 0 !important;

  transform: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  z-index: 100 !important;
}

#chatView .composer-area-new .chat-form {
  width: 100% !important;
  max-width: 768px !important;
  min-height: 96px !important;

  margin: 0 auto !important;
  padding: 14px 16px 10px !important;

  border-radius: 28px !important;
  box-sizing: border-box !important;
}

#chatView .composer-area-new #messageInput {
  min-height: 34px !important;
  max-height: 160px !important;
  margin-bottom: 8px !important;
  font-size: 15px !important;
}

#chatView .composer-area-new .composer-disclaimer {
  margin-top: 5px !important;
  font-size: 11px !important;
}

#chatView .chat-scroll-area {
  padding-bottom: 160px !important;
}

@media (max-width: 600px) {
  #chatView .composer-area-new {
    left: 0 !important;
    right: 0 !important;
    bottom: 8px !important;
    padding: 0 12px !important;
  }

  #chatView .composer-area-new .chat-form {
    min-height: 90px !important;
    padding: 12px 13px 9px !important;
    border-radius: 24px !important;
  }

  #chatView .chat-scroll-area {
    padding-bottom: 150px !important;
  }
}

/* NEXAOFFICIALAI — BLACK RGB CAPSULE */

#chatView .composer-area-new {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

#chatView .composer-area-new .chat-form {
  background:
    linear-gradient(#000000, #000000) padding-box,
    conic-gradient(
      from var(--new-rgb-angle, 0deg),
      #ff3158,
      #ffae00,
      #d5ff00,
      #00e89a,
      #00c8ff,
      #6655ff,
      #d64bff,
      #ff3158
    ) border-box !important;

  border: 1px solid transparent !important;
  border-radius: 28px !important;
  box-shadow: none !important;
}

/* Input tetap transparan di atas warna hitam */
#chatView .composer-area-new #messageInput {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
}

#chatView .composer-area-new #messageInput::placeholder {
  color: #999999 !important;
}

/* Bagian dalam tidak membuat kotak tambahan */
#chatView .composer-area-new .composer-top,
#chatView .composer-area-new .composer-bottom,
#chatView .composer-area-new .composer-tools,
#chatView .composer-area-new .composer-actions {
  background: transparent !important;
  box-shadow: none !important;
}

/* Teks dan penghitung karakter */
#chatView .composer-area-new .composer-context,
#chatView .composer-area-new .char-count {
  color: #cccccc !important;
}

/* Pastikan pembungkus luar tidak punya dekorasi */
#chatView .composer-area-new::before,
#chatView .composer-area-new::after {
  content: none !important;
  display: none !important;
}

/* FIX: ISI COMPOSER HITAM PEKAT */
#chatView .composer-area-new .chat-form,
#chatView .composer-area-new form#chatForm {
  background-color: #000000 !important;
  background-image: linear-gradient(#000000, #000000) !important;
  opacity: 1 !important;
  isolation: isolate !important;
  border: 1px solid transparent !important;
  border-radius: 28px !important;
  box-shadow: none !important;
}

/* INPUT DI DALAM KAPSUL TETAP TRANSPARAN */
#chatView .composer-area-new #messageInput {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

/* HILANGKAN LAPISAN YANG MUNGKIN MENUTUPI WARNA HITAM */
#chatView .composer-area-new .chat-form::before,
#chatView .composer-area-new .chat-form::after {
  background: transparent !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* BAGIAN DALAM COMPOSER */
#chatView .composer-area-new .composer-top,
#chatView .composer-area-new .composer-bottom,
#chatView .composer-area-new .composer-tools,
#chatView .composer-area-new .composer-actions {
  background: transparent !important;
  background-color: transparent !important;
  opacity: 1 !important;
}

/* WRAPPER LUAR TETAP TRANSPARAN */
#chatView .composer-area-new {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* KAPSUL COMPOSER — HITAM PEKAT + BORDER RGB */
#chatView .composer-area-new {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#chatView .composer-area-new .chat-form,
#chatView .composer-area-new form#chatForm {
  background:
    linear-gradient(#000000, #000000) padding-box,
    conic-gradient(
      from var(--new-rgb-angle, 0deg),
      #ff3158,
      #ffae00,
      #d5ff00,
      #00e89a,
      #00c8ff,
      #6655ff,
      #d64bff,
      #ff3158
    ) border-box !important;

  border: 2px solid transparent !important;
  border-radius: 28px !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

#chatView .composer-area-new #messageInput {
  background: transparent !important;
  color: #ffffff !important;
}

#chatView .composer-area-new #messageInput::placeholder {
  color: #999999 !important;
}

#chatView .composer-area-new .composer-top,
#chatView .composer-area-new .composer-bottom,
#chatView .composer-area-new .composer-tools,
#chatView .composer-area-new .composer-actions {
  background: transparent !important;
  box-shadow: none !important;
}
/* FIX COMPOSER NEXAOFFICIALAI */
#chatView .composer-area-new {
  position: fixed !important;
  left: 270px !important;
  right: 0 !important;
  bottom: 16px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 24px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 100 !important;
}

#chatView .composer-area-new #chatForm {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 620px !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 auto !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  border: 1.5px solid transparent !important;
  border-radius: 28px !important;
  background:
    linear-gradient(#000, #000) padding-box,
    conic-gradient(
      from var(--new-rgb-angle, 0deg),
      #ff3158,
      #ffae00,
      #d5ff00,
      #00e89a,
      #00c8ff,
      #6655ff,
      #d64bff,
      #ff3158
    ) border-box !important;
  box-shadow: none !important;
}

/* Input */
#chatView .composer-area-new .composer-top {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

#chatView .composer-area-new #messageInput {
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  resize: none !important;
  overflow: hidden !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 24px !important;
}

/* Sembunyikan label Nexa AI dan hitungan karakter */
#chatView .composer-area-new .composer-context,
#chatView .composer-area-new .char-count,
#chatView .composer-area-new .composer-disclaimer {
  display: none !important;
}

/* Tombol tetap di sebelah kanan */
#chatView .composer-area-new .composer-bottom {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

#chatView .composer-area-new .composer-tools,
#chatView .composer-area-new .composer-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

#chatView .composer-area-new .send-button {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

#chatView .chat-scroll-area {
  padding-bottom: 100px !important;
}

@media (max-width: 600px) {
  #chatView .composer-area-new {
    left: 0 !important;
    right: 0 !important;
    bottom: 10px !important;
    padding: 0 12px !important;
  }

  #chatView .composer-area-new #chatForm {
    max-width: 100% !important;
  }
}

/* HILANGKAN TEKS TAMBAHAN DI COMPOSER */
#chatView .composer-area-new .composer-context,
#chatView .composer-area-new .char-count,
#chatView .composer-area-new .composer-disclaimer,
#chatView .composer-area-new .composer-label {
  display: none !important;
}

/* TOMBOL SEND MENJADI BULAT */
#chatView .composer-area-new .send-button {
  position: relative !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  font-size: 0 !important;
  color: transparent !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* SIMBOL PANAH KE ATAS */
#chatView .composer-area-new .send-button::before {
  content: "↑" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #000000 !important;
  font-size: 25px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

/* INPUT TETAP PUTIH */
#chatView .composer-area-new #messageInput {
  color: #ffffff !important;
}

#chatView .composer-area-new #messageInput::placeholder {
  color: #999999 !important;
}

/* NEXAOFFICIALAI — FINAL COMPOSER FIX */

/* Kapsul */
#chatView .composer-area-new {
  left: 270px !important;
  right: 0 !important;
  bottom: 16px !important;
  padding: 0 24px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#chatView .composer-area-new #chatForm {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 560px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 7px 0 15px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  border: 1.5px solid transparent !important;
  border-radius: 999px !important;
  background:
    linear-gradient(#000, #000) padding-box,
    conic-gradient(
      from var(--new-rgb-angle, 0deg),
      #00e5ff,
      #6655ff,
      #e14dff,
      #ff3158,
      #ffce00,
      #00e5ff
    ) border-box !important;
  box-shadow: none !important;
}

/* Kolom input */
#chatView .composer-area-new .composer-top {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

#chatView .composer-area-new #messageInput {
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  resize: none !important;
  overflow: hidden !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 24px !important;
}

#chatView .composer-area-new #messageInput::placeholder {
  color: #999 !important;
  opacity: 1 !important;
}

/* Hilangkan tulisan Nexa AI dan teks tambahan */
#chatView .composer-area-new .composer-context,
#chatView .composer-area-new .char-count,
#chatView .composer-area-new .composer-disclaimer,
#chatView .composer-area-new .composer-label,
#chatView .composer-area-new .composer-bottom .status-text {
  display: none !important;
}

/* Area tombol */
#chatView .composer-area-new .composer-bottom {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

#chatView .composer-area-new .composer-tools,
#chatView .composer-area-new .composer-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Tombol panah yang lebih rapi */
#chatView .composer-area-new .send-button {
  position: relative !important;
  display: flex !important;
  flex: 0 0 34px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: #f5f5f5 !important;
  color: #111 !important;
  font-size: 0 !important;
  box-shadow: none !important;
  transition: background .2s ease, transform .2s ease !important;
}

#chatView .composer-area-new .send-button::before {
  content: "↑" !important;
  display: block !important;
  color: #111 !important;
  font-family: Arial, sans-serif !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

#chatView .composer-area-new .send-button:hover {
  background: #fff !important;
  transform: scale(1.05) !important;
}

#chatView .chat-scroll-area {
  padding-bottom: 90px !important;
}

@media (max-width: 600px) {
  #chatView .composer-area-new {
    left: 0 !important;
    right: 0 !important;
    bottom: 10px !important;
    padding: 0 12px !important;
  }

  #chatView .composer-area-new #chatForm {
    max-width: 100% !important;
  }
}


/* Panah tunggal di tengah tombol */
#chatView .composer-area-new .send-button::before {
  content: "↑" !important;
  position: absolute !important;
  inset: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  color: #111111 !important;
  font-family: Arial, sans-serif !important;
  font-size: 23px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  transform: translateY(-1px) !important;
  pointer-events: none !important;
}

#chatView .composer-area-new .send-button:hover {
  background: #e8e8e8 !important;
}

#chatView .composer-area-new .send-button:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

/* TOMBOL KIRIM BIRU ALA CHATGPT */
#chatView .composer-area-new .send-button {
  background: #3b82f6 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

#chatView .composer-area-new .send-button::before {
  color: #ffffff !important;
  content: "↑" !important;
  font-size: 23px !important;
  font-weight: 600 !important;
  transform: translateY(-1px) !important;
}

#chatView .composer-area-new .send-button:hover {
  background: #2563eb !important;
}

#chatView .composer-area-new .send-button:disabled {
  background: #3b82f6 !important;
  opacity: 0.5 !important;
}

/* FIX FINAL: TOMBOL BIRU DAN HILANGKAN LABEL NEXA AI */

#chatView .composer-area-new .composer-context,
#chatView .composer-area-new .char-count,
#chatView .composer-area-new .composer-disclaimer {
  display: none !important;
}

/* Tombol kirim biru */
#chatView .composer-area-new button.send-button {
  appearance: none !important;
  -webkit-appearance: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;

  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;

  background: #3b82f6 !important;
  color: #ffffff !important;

  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

/* Panah putih */
#chatView .composer-area-new button.send-button::before {
  content: "↑" !important;
  display: block !important;
  color: #ffffff !important;
  font-family: Arial, sans-serif !important;
  font-size: 23px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

/* Hover */
#chatView .composer-area-new button.send-button:hover {
  background: #2563eb !important;
}

/* Saat tombol nonaktif */
#chatView .composer-area-new button.send-button:disabled {
  background: #3b82f6 !important;
  opacity: 0.55 !important;
}

/* NEXAOFFICIALAI — SEND BUTTON CLEAN FIX */

#chatView .composer-area-new #sendButton {
  appearance: none !important;
  -webkit-appearance: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;

  padding: 0 !important;
  margin: 0 !important;

  background: #3b82f6 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50% !important;

  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

/* Hilangkan teks Send dan panah bawaan */
#chatView .composer-area-new #sendButton span {
  display: none !important;
}

/* Hilangkan pseudo-element lama agar panah tidak bertumpuk */
#chatView .composer-area-new #sendButton::before,
#chatView .composer-area-new #sendButton::after {
  content: none !important;
  display: none !important;
}

/* Panah asli dari HTML */
#chatView .composer-area-new #sendButton .send-arrow {
  display: block !important;
  color: #ffffff !important;
  font-family: Arial, sans-serif !important;
  font-size: 23px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

/* Hover */
#chatView .composer-area-new #sendButton:hover:not(:disabled) {
  background: #2563eb !important;
}

/* Tombol nonaktif */
#chatView .composer-area-new #sendButton:disabled {
  background: #3b82f6 !important;
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

/* Sembunyikan label status Nexa AI di dalam composer */
#chatView .composer-area-new .composer-context {
  display: none !important;
}

/* Sembunyikan hitungan karakter */
#chatView .composer-area-new .char-count {
  display: none !important;
}

/* HILANGKAN LABEL NEXA AI DI DALAM KAPSUL */
#chatView .composer-area-new .composer-context,
#chatView .composer-area-new .composer-context *,
#chatView .composer-area-new [class*="nexa-ai"],
#chatView .composer-area-new [class*="composer-label"],
#chatView .composer-area-new [class*="brand"],
#chatView .composer-area-new [class*="model-name"] {
  display: none !important;
}

/* Pastikan input tetap terlihat */
#chatView .composer-area-new #messageInput {
  display: block !important;
  visibility: visible !important;
  color: #ffffff !important;
}

/* Jangan mengubah kapsul dan RGB */
#chatView .composer-area-new #chatForm {
  border-radius: 999px !important;
}

/* HILANGKAN LABEL NEXA AI DI DALAM KAPSUL */
#chatView #composerContext,
#chatView #composerContext .context-dot {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* HILANGKAN BARIS ATAS JIKA SUDAH KOSONG */
#chatView .composer-area-new .composer-top {
  display: none !important;
}

/* Voice Input Button */
.voice-button {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color, #dedede);
  border-radius: 50%;
  background: var(--card-bg, #ffffff);
  color: var(--text-color, #222222);
  cursor: pointer;
  transition: background 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease,
              transform 0.2s ease;
}

.voice-button:hover {
  background: #eeeeee;
  transform: scale(1.05);
}

.voice-button.recording {
  background: #ffe8e8;
  color: #dc2626;
  border-color: #dc2626;
  animation: voicePulse 1.2s ease-in-out infinite;
}

.voice-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes voicePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.25);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(220, 38, 38, 0);
  }
}

@media (max-width: 480px) {
  .voice-button {
    width: 38px;
    height: 38px;
  }
}

/* OVERRIDE: MIC TRANSPARAN ALA CHATGPT */

/* Hanya tombol mic yang diubah */
.voice-button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: transparent !important;
  color: inherit !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;

  cursor: pointer;
  transition: background 0.2s ease;
}

/* Efek hover */
.voice-button:hover {
  background: rgba(128, 128, 128, 0.16) !important;
}

/* Ukuran ikon mic */
.voice-button svg {
  width: 20px !important;
  height: 20px !important;
}

/* Saat mic aktif merekam */
.voice-button.recording {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
}

/* Tombol plus */
.attach-container {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.attach-button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 25px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.attach-button:hover {
  background: rgba(128, 128, 128, 0.16);
}

/* Menu Add photos */
.attach-menu {
  position: absolute;
  left: 0;
  bottom: 46px;
  width: 190px;
  padding: 6px;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 14px;
  background: var(--composer-bg, #ffffff);
  color: var(--text-color, #222222);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

.attach-menu.hidden {
  display: none;
}

#addPhotosButton {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

#addPhotosButton:hover {
  background: rgba(128, 128, 128, 0.12);
}

/* Tombol plus di kiri placeholder */
.composer-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.composer-input-row textarea {
  flex: 1;
  min-width: 0;
}

/* Tombol plus transparan */
.composer-input-row .attach-button {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
}

.composer-input-row .attach-button:hover {
  background: rgba(128, 128, 128, 0.15);
}

/* PINDAHKAN TOMBOL PLUS KE KIRI PLACEHOLDER */
#chatForm {
  position: relative;
}

#chatForm > .new-composer-bottom .new-composer-actions .attach-container {
  position: absolute !important;
  left: 12px !important;
  top: 22px !important;
  z-index: 20 !important;
}

/* Beri ruang untuk tombol plus */
#chatForm #messageInput {
  padding-left: 46px !important;
}

/* Pastikan menu Add photos tetap muncul di atas */
#chatForm .attach-menu {
  left: 0 !important;
  bottom: 42px !important;
  z-index: 9999 !important;
}

/* FIX POSISI TOMBOL PLUS */
#chatForm > .new-composer-bottom
.new-composer-actions .attach-container {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 20 !important;
}

/* Pastikan textarea tidak mendorong tombol plus */
#chatForm #messageInput {
  padding-left: 46px !important;
  box-sizing: border-box !important;
}

/* Posisi menu Add photos */
#chatForm .attach-menu {
  left: 0 !important;
  bottom: 42px !important;
}

/* FIX TOMBOL PLUS NEXA AI */
#chatForm > .new-composer-bottom
.new-composer-actions .attach-container {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* Pastikan tombol plus punya ruang sendiri */
#chatForm .attach-button {
  position: static !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  flex-shrink: 0 !important;
}

/* Kembalikan padding placeholder */
#chatForm #messageInput {
  padding-left: 12px !important;
}

/* POSISI TOMBOL PLUS DI KIRI PLACEHOLDER */
#chatForm .composer-input-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#chatForm .composer-input-row .attach-container {
  position: static !important;
  display: flex !important;
  flex: 0 0 30px !important;
  order: -1 !important;
  transform: none !important;
}

#chatForm .composer-input-row .attach-button {
  position: static !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  transform: none !important;
}

#chatForm .composer-input-row #messageInput {
  flex: 1 !important;
  min-width: 0 !important;
  padding-left: 0 !important;
}

/* FIX WARNA MENU ADD PHOTOS */
#attachMenu {
  background: #ffffff !important;
  color: #202123 !important;
  border: 1px solid #e5e5e5 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}

/* TOMBOL ADD PHOTOS */
#attachMenu #addPhotosButton {
  background: transparent !important;
  color: #202123 !important;
  opacity: 1 !important;
}

/* IKON DAN TULISAN */
#attachMenu #addPhotosButton span,
#attachMenu #addPhotosButton svg {
  color: #202123 !important;
  opacity: 1 !important;
}

/* EFEK HOVER */
#attachMenu #addPhotosButton:hover {
  background: #f0f0f0 !important;
}

/* NexaOfficialAI response actions */

.message-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  position: relative;
}

.message-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary, #666666);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.message-action-button:hover {
  background: var(--surface-hover, #f2f2f2);
  border-color: var(--border-color, #e5e5e5);
  color: var(--text-primary, #171717);
}

.message-action-button svg {
  flex-shrink: 0;
}

.rating-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px;
  margin-top: 4px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: 10px;
  background: var(--surface-color, #ffffff);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.rating-options button {
  padding: 8px 10px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary, #171717);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.rating-options button:hover {
  background: var(--surface-hover, #f2f2f2);
}

html[data-theme="dark"] .message-action-button {
  color: #b4b4b4;
}

html[data-theme="dark"] .message-action-button:hover {
  background: #292929;
  border-color: #404040;
  color: #ffffff;
}

html[data-theme="dark"] .rating-options {
  background: #1c1c1c;
  border-color: #404040;
}

html[data-theme="dark"] .rating-options button {
  color: #eeeeee;
  border-color: #404040;
}

html[data-theme="dark"] .rating-options button:hover {
  background: #292929;
}

@media (max-width: 600px) {
  .message-actions {
    gap: 3px;
  }

  .message-action-button {
    padding: 7px;
    font-size: 11px;
    gap: 4px;
  }

  .message-action-button svg {
    width: 16px;
    height: 16px;
  }
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    position: relative;
}

.message-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary, #777);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.message-action-button svg {
    width: 18px;
    height: 18px;
    display: block;
}

.message-action-button:hover {
    background: var(--surface-hover, #ececec);
    color: var(--text-primary, #222);
}

.rating-options {
    position: absolute;
    left: 36px;
    top: 38px;
    z-index: 20;
    display: flex;
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 10px;
    background: var(--surface-color, #fff);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.rating-option {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
}

.rating-option:hover {
    background: var(--surface-hover, #ececec);
}

@media (max-width: 600px) {
    .message-actions {
        gap: 3px;
    }

    .message-action-button {
        width: 32px;
        height: 32px;
    }
}

/* ===== NEXA AI RESPONSE RATING ===== */

.message-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.message-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary, #777);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.message-action-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.message-action-button:hover {
    background: var(--surface-hover, #ededed);
    color: var(--text-primary, #222);
}

/* Rating feedback popup */

.rating-options {
    position: absolute;
    left: 36px;
    top: 38px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 220px;
    padding: 6px;
    border: 1px solid var(--border-color, #dedede);
    border-radius: 12px;
    background: var(--surface-color, #fff);
    color: var(--text-primary, #222);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.rating-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.rating-option:hover {
    background: var(--surface-hover, #ededed);
}

.rating-option svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.rating-option span {
    font-size: 13px;
}

/* Selected rating */

.message-action-button.is-selected {
    color: var(--text-primary, #222);
    background: var(--surface-hover, #ededed);
}

/* Mobile */

@media (max-width: 600px) {
    .message-actions {
        gap: 3px;
    }

    .message-action-button {
        width: 30px;
        height: 30px;
    }

    .rating-options {
        max-width: calc(100vw - 40px);
    }
}

/* Ikon rating bertumpuk */
.rating-stack {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
}

.rating-stack svg {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--surface-color, #fff);
}

.rating-stack .rating-thumb-up {
    top: 0;
    left: 0;
    z-index: 2;
}

.rating-stack .rating-thumb-down {
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 12px;
    height: 12px;
    background: var(--surface-color, #fff);
}

/* Menu feedback */
.message-actions .rating-options {
    position: absolute;
    top: 38px;
    left: 36px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 12px;
    background: var(--surface-color, #fff);
    color: var(--text-primary, #222);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}

.rating-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.rating-option svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.rating-option span {
    font-size: 13px;
}

.rating-option:hover {
    background: var(--surface-hover, #eee);
}

.rating-stack {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.rating-stack svg {
    background: transparent !important;
    fill: none;
}

.rating-stack svg path {
    fill: none;
}

.rating-options {
    background: #1a1a1a;
}

/* Pisahkan setiap pesan dalam percakapan */
#messagesList {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Pesan user */
.message-user {
    align-self: flex-end;
    width: fit-content;
    max-width: 85%;
    margin: 0 0 8px auto;
}

/* Balasan AI */
.message-assistant {
    align-self: stretch;
    width: 100%;
    margin: 0;
}

/* Jarak isi pesan dari toolbar */
.message-actions {
    margin-top: 14px;
}

/* USER CHAT BUBBLE — NEXAOFFICIALAI */
.message-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    margin: 0 0 24px auto;
}

.message-user .message-content {
    display: inline-block;
    width: fit-content;
    max-width: min(80%, 720px);
    padding: 12px 18px;
    background: #f1f1f1;
    color: #171717;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 22px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* DARK MODE */
[data-theme="dark"] .message-user .message-content {
    background: #2f2f2f;
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.06);
}

/* AI RESPONSE — tetap tanpa bubble */
.message-assistant .message-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Tampilan HP */
@media (max-width: 600px) {
    .message-user .message-content {
        max-width: 90%;
        padding: 10px 15px;
        border-radius: 19px;
    }
}

/* FIX USER CHAT BUBBLE — AUTO HEIGHT */
#messagesList .message.message-user {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

#messagesList .message.message-user .message-content {
    display: block !important;
    position: relative !important;
    flex: 0 1 auto !important;
    width: fit-content !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: min(80%, 720px) !important;
    box-sizing: border-box !important;
    padding: 12px 18px !important;
    margin: 0 !important;
    overflow: visible !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.65 !important;
    border-radius: 22px !important;
    background: #f1f1f1 !important;
    color: #171717 !important;
}

[data-theme="dark"] #messagesList .message.message-user .message-content {
    background: #2f2f2f !important;
    color: #f5f5f5 !important;
}

@media (max-width: 600px) {
    #messagesList .message.message-user .message-content {
        max-width: 90% !important;
    }
}

/* KAPSUL INPUT CHAT AUTO HEIGHT */
#messageInput {
    height: auto !important;
    min-height: 56px;
    max-height: 200px;
    overflow-y: auto !important;
    resize: none !important;
    box-sizing: border-box;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

#messageInput {
    box-sizing: border-box !important;
    height: auto;
    min-height: 56px;
    max-height: 200px;
    overflow-x: hidden;
    overflow-y: hidden;
    resize: none;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

/* HILANGKAN BACKGROUND ABU-ABU DI BELAKANG KAPSUL */

#chatView .composer-area-new {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* BIAR PESAN CHAT TIDAK TERTUTUP */

#chatView .composer-area-new {
  pointer-events: none;
}

#chatView .composer-area-new #chatForm,
#chatView .composer-area-new #messageInput,
#chatView .composer-area-new button {
  pointer-events: auto;
}

/* Settings card layout */
#settingsView .settings-card {
  order: 0;
}

/* Move Log Out card below Conversation History */
#settingsView .settings-card:has(#settingsLogoutButton) {
  order: 3;
}

/* Logout Card - Follow Active Theme */
#settingsView .settings-logout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: 14px;
  padding: 22px;
  border: 1px solid var(--border-color, rgba(128, 128, 128, 0.2));
  border-radius: 16px;
  background: var(--card-bg, transparent);
  box-sizing: border-box;
}

#settingsView .settings-logout-row > div {
  min-width: 0;
}

#settingsView .settings-logout-row strong {
  display: block;
  margin-bottom: 6px;
}

#settingsView .settings-logout-row p {
  margin: 0;
  line-height: 1.5;
  opacity: 0.7;
  font-size: 13px;
}

#settingsView .settings-logout-row #settingsLogoutButton {
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 480px) {
  #settingsView .settings-logout-row {
    gap: 12px;
    padding: 16px;
  }
}

/* Sidebar Toggle - Mobile */
.sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1001;
    width: min(300px, 85vw);
    height: 100dvh;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.25s ease,
      visibility 0.25s ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }

  body.sidebar-open .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.45);
  }

  .close-sidebar {
    display: flex;
  }

  .main-area {
    width: 100%;
    min-width: 0;
  }
}

/* Sidebar Collapsed - Desktop */
@media (min-width: 769px) {
  body.sidebar-collapsed .sidebar {
    display: none !important;
  }

  body.sidebar-collapsed .main-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }
}

/* Sidebar Overlay */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }

  body.sidebar-open .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.45);
  }
}

/* Fix Hamburger Menu */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#openSidebar {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border-color, #d1d5db);
  border-radius: 12px;
  background: var(--card-bg, transparent);
  color: var(--text-color, #222);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  visibility: visible;
  opacity: 1;
  position: relative;
  z-index: 1002;
}

#openSidebar:hover {
  background: var(--hover-bg, rgba(128, 128, 128, 0.12));
}

#openSidebar:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

#openSidebar {
  color: #ffffff !important;
}

#openSidebar:hover {
  color: #ffffff !important;
}

/* SIDEBAR OPEN/CLOSE ANIMATION */

/* Animasi area konten */
.main-area {
  transition:
    margin-left 0.3s ease,
    width 0.3s ease,
    max-width 0.3s ease;
  min-width: 0;
}

/* Animasi sidebar */
.sidebar {
  transition:
    transform 0.3s ease,
    width 0.3s ease,
    left 0.3s ease;
}

/* Animasi overlay di layar kecil */
.sidebar-overlay {
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* DESKTOP: SIDEBAR TERBUKA */
@media (min-width: 769px) {
  body.sidebar-visible .main-area {
    margin-left: 260px;
    width: calc(100% - 260px);
    max-width: calc(100% - 260px);
  }

  body.sidebar-collapsed .main-area {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
}

/* MOBILE: SIDEBAR MENUTUP AREA KONTEN DENGAN OVERLAY */
@media (max-width: 768px) {
  .main-area {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .sidebar {
    transition: transform 0.3s ease;
  }
}

/* Kurangi animasi jika pengguna memilih reduced motion */
@media (prefers-reduced-motion: reduce) {
  .main-area,
  .sidebar,
  .sidebar-overlay {
    transition: none !important;
  }
}

/* SIDEBAR CLOSED: FULL WIDTH KIRI SAMPAI KANAN */
@media (min-width: 769px) {
  body.sidebar-collapsed .app,
  body.sidebar-collapsed .main-area {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  body.sidebar-collapsed .main-area {
    left: 0 !important;
    right: 0 !important;
  }

  body.sidebar-collapsed .topbar,
  body.sidebar-collapsed .chat-view,
  body.sidebar-collapsed .chat-scroll-area,
  body.sidebar-collapsed .composer-container {
    max-width: 100%;
  }
}

/* CHAT FULL WIDTH SAAT SIDEBAR DITUTUP */
@media (min-width: 769px) {
  body.sidebar-collapsed .main-area {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 1 1 100% !important;
  }

  body.sidebar-collapsed #chatView {
    width: 100% !important;
    max-width: none !important;
  }

  body.sidebar-collapsed #chatScrollArea {
    width: 100% !important;
    max-width: none !important;
  }

  body.sidebar-collapsed #chatForm {
    width: 100% !important;
    max-width: none !important;
  }

  body.sidebar-collapsed #messageInput {
    width: 100%;
    box-sizing: border-box;
  }
}

/* CHAT CONTENT FULL WIDTH */
body.sidebar-collapsed #chatView,
body.sidebar-collapsed #chatScrollArea,
body.sidebar-collapsed #messagesList {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* AREA PESAN */
body.sidebar-collapsed #messagesList {
  align-items: stretch;
}

/* KOLOM INPUT CHAT */
body.sidebar-collapsed #chatForm {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* HILANGKAN BATAS LEBAR PEMBUNGKUS CHAT */
body.sidebar-collapsed #chatView > *,
body.sidebar-collapsed #chatScrollArea > * {
  max-width: none;
}

/* PINDAHKAN SCROLLBAR CHAT KE SISI KANAN */
#chatScrollArea {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  overflow-y: auto !important;
  overflow-x: hidden;
  scrollbar-gutter: auto !important;
}

/* PASTIKAN AREA CHAT TIDAK MEMBATASI SCROLLBAR */
#chatView {
  min-width: 0;
  width: 100%;
  max-width: none;
}

/* SCROLLBAR MENEMPEL DI TEPI KANAN */
#chatScrollArea::-webkit-scrollbar {
  width: 7px;
}

#chatScrollArea::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 10px;
}

#chatScrollArea::-webkit-scrollbar-track {
  background: transparent;
}

/* POSISI KAPSUL CHAT TETAP STABIL */
#chatScrollArea {
  width: 100%;
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* JANGAN GESER KONTEN CHAT SAAT SIDEBAR DITUTUP */
body.sidebar-collapsed #chatScrollArea,
body.sidebar-visible #chatScrollArea {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* PERTAHANKAN POSISI PEMBUNGKUS CHAT */
#chatView {
  min-width: 0;
  box-sizing: border-box;
}

/* FIX POSISI KAPSUL SAAT SIDEBAR DIBUKA / DITUTUP */

@media (min-width: 769px) {
  body.sidebar-visible #chatView .composer-area-new {
    left: 260px !important;
    right: 0 !important;
    width: auto !important;
  }

  body.sidebar-collapsed #chatView .composer-area-new {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
  }

  body.sidebar-collapsed #chatView .composer-area-new #chatForm {
    width: 100% !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 768px) {
  #chatView .composer-area-new {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
  }
}

/* ANIMASI HALUS POSISI KAPSUL NEXAOFFICIALAI */

@media (min-width: 769px) {
  #chatView .composer-area-new {
    transition:
      left 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      right 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      padding 0.3s ease !important;
    will-change: left, right;
  }
}

/* Kurangi animasi pada perangkat yang meminta gerakan minimal */
@media (prefers-reduced-motion: reduce) {
  #chatView .composer-area-new {
    transition: none !important;
  }
}

/* ANIMASI TOMBOL MENU SAAT SIDEBAR DIBUKA */

@media (min-width: 769px) {
  #menuToggle,
  #sidebarToggle,
  .menu-toggle,
  .hamburger {
    position: fixed !important;
    z-index: 999 !important;
    transition:
      left 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.2s ease !important;
  }

  body.sidebar-visible .sidebar {
    z-index: 1000 !important;
  }

  body.sidebar-visible #menuToggle,
  body.sidebar-visible #sidebarToggle,
  body.sidebar-visible .menu-toggle,
  body.sidebar-visible .hamburger {
    z-index: 999 !important;
  }
}

/* NEXAOFFICIALAI — TOMBOL MENU TENGGELAM DI BELAKANG SIDEBAR */

@media (min-width: 769px) {
  /* Lapisan sidebar di depan tombol */
  body.sidebar-visible .sidebar {
    position: fixed !important;
    z-index: 99999 !important;
  }

  /* Tombol menu berada di belakang sidebar */
  body.sidebar-visible #menuToggle,
  body.sidebar-visible #sidebarToggle,
  body.sidebar-visible .menu-toggle,
  body.sidebar-visible .hamburger,
  body.sidebar-visible button[aria-label*="menu" i],
  body.sidebar-visible button[aria-label*="sidebar" i] {
    z-index: 1 !important;
  }

  /* Saat sidebar ditutup, tombol kembali di depan */
  body.sidebar-collapsed #menuToggle,
  body.sidebar-collapsed #sidebarToggle,
  body.sidebar-collapsed .menu-toggle,
  body.sidebar-collapsed .hamburger,
  body.sidebar-collapsed button[aria-label*="menu" i],
  body.sidebar-collapsed button[aria-label*="sidebar" i] {
    z-index: 99999 !important;
  }
}

/* NEXAOFFICIALAI — HAMBURGER DI BELAKANG SIDEBAR SEJAK AWAL */

@media (min-width: 769px) {
  #sidebar {
    z-index: 9999 !important;
  }

  #openSidebar {
    position: relative !important;
    z-index: 1 !important;
    transition: opacity 0.3s ease !important;
  }

  /* Default: sidebar terbuka saat halaman pertama dimuat */
  body:not(.sidebar-collapsed) #openSidebar {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Sidebar ditutup: tombol muncul kembali */
  body.sidebar-collapsed #openSidebar {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* NEXAOFFICIALAI — SCROLLBAR CHAT DI UJUNG KANAN LAYAR */

@media (min-width: 769px) {
  #chatView {
    overflow: visible !important;
  }

  #chatView .chat-scroll-area {
    position: fixed !important;
    top: 80px !important;
    right: 0 !important;
    bottom: 155px !important;
    left: 260px !important;

    width: auto !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;

    scrollbar-gutter: auto !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 120, 120, 0.45) transparent;

    transition:
      left 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  body.sidebar-collapsed #chatView .chat-scroll-area {
    left: 0 !important;
  }

  #chatView .chat-scroll-area::-webkit-scrollbar {
    width: 6px;
  }

  #chatView .chat-scroll-area::-webkit-scrollbar-track {
    background: transparent;
  }

  #chatView .chat-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.45);
    border-radius: 10px;
  }

  #chatView .chat-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 120, 120, 0.7);
  }
}

/* NEXAOFFICIALAI — CHAT LEBIH RAMPING, SCROLLBAR TETAP DI UJUNG */

@media (min-width: 769px) {
  /* Area scroll tetap selebar layar */
  #chatView .chat-scroll-area {
    right: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Konten chat dibuat sedikit lebih ramping */
  #chatView .messages-list,
  #chatView .welcome-screen {
    width: calc(100% - 80px) !important;
    max-width: 850px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Posisi konten tetap mengikuti sidebar */
  body.sidebar-visible #chatView .messages-list,
  body.sidebar-visible #chatView .welcome-screen {
    max-width: 850px !important;
  }

  body.sidebar-collapsed #chatView .messages-list,
  body.sidebar-collapsed #chatView .welcome-screen {
    max-width: 850px !important;
  }
}

/* FIX NEXAOFFICIALAI — KONTEN CHAT TIDAK BERTUMPUK DENGAN KAPSUL */

@media (min-width: 769px) {
  #chatView .chat-scroll-area {
    box-sizing: border-box !important;
    padding-bottom: 180px !important;
    overflow-x: hidden !important;
  }

  #chatView .messages-list {
    position: relative !important;
    z-index: 1 !important;
    width: calc(100% - 80px) !important;
    max-width: 850px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #chatView .welcome-screen {
    position: relative !important;
    z-index: 1 !important;
    width: calc(100% - 80px) !important;
    max-width: 850px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #chatView .composer-area-new {
    z-index: 100 !important;
  }
}

@media (max-width: 768px) {
  #chatView .chat-scroll-area {
    padding-bottom: 150px !important;
  }
}

/* NEXAOFFICIALAI — HILANGKAN LATAR HITAM DI BELAKANG KAPSUL */

#chatView .composer-area-new {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Hilangkan lapisan hitam pada pembungkus chat */
#chatView .chat-layout {
  background: transparent !important;
}

#chatView .chat-scroll-area {
  background: transparent !important;
}

/* Kapsul input tetap memiliki latar dan efeknya sendiri */
#chatView .composer-area-new #chatForm {
  position: relative !important;
  z-index: 2 !important;
}

/* FIX: HILANGKAN PANEL DI BELAKANG KAPSUL */
#chatView .composer-area-new {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* PEMBUNGKUS LUAR TETAP TRANSPARAN */
#chatView .composer-area-new::before,
#chatView .composer-area-new::after {
  content: none !important;
  display: none !important;
}

/* KAPSUL TETAP HITAM DENGAN BORDER RGB */
#chatView .composer-area-new #chatForm {
  background:
    linear-gradient(#000000, #000000) padding-box,
    conic-gradient(
      from var(--new-rgb-angle, 0deg),
      #00e5ff,
      #6655ff,
      #e14dff,
      #ff3158,
      #ffce00,
      #00e5ff
    ) border-box !important;

  border: 1.5px solid transparent !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

/* JANGAN UBAH LATAR AREA PESAN */
#chatView .chat-scroll-area {
  background: transparent !important;
}

/* HILANGKAN KOTAK HITAM DI BELAKANG KAPSUL */
#chatView .composer-area-new {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}

#chatView .composer-area-new::before,
#chatView .composer-area-new::after {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  content: none !important;
}

#chatView .composer-area-new {
  height: 70px !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

 /*============================================
   NEXAOFFICIALAI — FIX KOTAK DI BELAKANG KAPSUL
   Tempel ini di PALING BAWAH file style.css
   ============================================ */
/* 1. SEMBUNYIKAN COMPOSER LAMA YANG BIKIN KOTAK */
.composer-area {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
/* 2. PASTIKAN COMPOSER BARU TRANSPARAN */
#chatView .composer-area-new {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#chatView .composer-area-new::before,
#chatView .composer-area-new::after {
  content: none !important;
  display: none !important;
}
/* 3. BERI RUANG BAWAH BIAR CHAT GA KETUTUPAN */
#chatView .chat-scroll-area {
  padding-bottom: 200px !important;
}
#chatView .messages-list {
  padding-bottom: 30px !important;
}

/* FIX: Beri ruang agar jawaban AI tidak tertutup kotak chat */
#chatView .chat-scroll-area {
    box-sizing: border-box !important;
    padding-bottom: 130px !important;
    scroll-padding-bottom: 130px !important;
}

#chatView .messages-list {
    box-sizing: border-box !important;
    padding-bottom: 130px !important;
    scroll-margin-bottom: 130px !important;
}

#chatView .composer-area-new,
#chatView .composer-area-new .composer-disclaimer {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
/* FINAL FIX: HAPUS KOTAK DI BELAKANG KAPSUL, RGB CAPSULE TETAP */
#chatView,
#chatView .chat-layout,
#chatView .composer-area,
#chatView .composer-area > *,
#chatView .composer-area .composer-top,
#chatView .composer-area .composer-bottom,
#chatView .composer-area .composer-tools,
#chatView .composer-area .composer-actions,
#chatView .composer-area .composer-disclaimer {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

#chatView .composer-area {
  border: 0 !important;
  outline: 0 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#chatView .composer-area .chat-form {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  position: relative !important;
}

#chatView .composer-area .chat-form::before {
  border-color: transparent !important;
  box-shadow: none !important;
}


/* FINAL FIX — HILANGKAN KOTAK DI BELAKANG KAPSUL, SESUAI HTML TERBARU */
#chatView .chat-layout,
#chatView .composer-area-new,
#chatView .composer-area-new .composer-disclaimer,
#chatView .composer-area-new .new-composer-bottom,
#chatView .composer-area-new .new-composer-left,
#chatView .composer-area-new .new-composer-actions,
#chatView .composer-area-new .attach-container {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#chatView .composer-area-new::before,
#chatView .composer-area-new::after,
#chatView .composer-area-new .chat-form::before,
#chatView .composer-area-new .chat-form::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

#chatView .composer-area-new .chat-form,
#chatView .composer-area-new form#chatForm {
  background:
    linear-gradient(#000000, #000000) padding-box,
    conic-gradient(
      from var(--new-rgb-angle, 0deg),
      #ff3158, #ffae00, #d5ff00, #00e89a,
      #00c8ff, #6655ff, #d64bff, #ff3158
    ) border-box !important;
  border: 1px solid transparent !important;
  border-radius: 26px !important;
  box-shadow: none !important;
}

#chatView .composer-area-new #messageInput {
  background: transparent !important;
  background-color: transparent !important;
}

/* FINAL RESPONSIVE FIX — composer lebih pendek di laptop dan tetap lega di HP */
#chatView .composer-area-new {
  padding: 10px 24px 8px !important;
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

#chatView .composer-area-new .chat-form {
  min-height: 82px !important;
  height: auto !important;
  padding: 11px 16px 9px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

#chatView .composer-area-new #messageInput {
  min-height: 25px !important;
  margin-bottom: 5px !important;
  line-height: 1.4 !important;
}

#chatView .composer-area-new .composer-disclaimer {
  margin-top: 5px !important;
  line-height: 1.25 !important;
}

@media (min-width: 769px) {
  #chatView .chat-scroll-area {
    padding-bottom: 125px !important;
  }

  #chatView .composer-area-new {
    padding: 8px 24px 6px !important;
  }

  #chatView .composer-area-new .chat-form {
    min-height: 76px !important;
    max-width: 760px !important;
    padding: 9px 16px 8px !important;
  }
}

@media (max-width: 768px) {
  #chatView .chat-scroll-area {
    padding-bottom: 125px !important;
  }

  #chatView .composer-area-new {
    padding: 8px 12px 6px !important;
  }

  #chatView .composer-area-new .chat-form {
    min-height: 76px !important;
    padding: 9px 13px 8px !important;
    border-radius: 28px !important;
  }
}

/* FINAL ALIGNMENT FIX — plus dan placeholder tepat di tengah kapsul */
#chatView .composer-area-new .chat-form,
#chatView .composer-area-new form#chatForm {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 6px 0 14px !important;
  overflow: visible !important;
}

#chatView .composer-area-new .attach-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#chatView .composer-area-new .attach-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

#chatView .composer-area-new #messageInput {
  display: block !important;
  flex: 1 1 auto !important;
  align-self: center !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  margin: 0 !important;
  padding: 2px 0 !important;
  line-height: 20px !important;
  resize: none !important;
  overflow-y: hidden !important;
  box-sizing: border-box !important;
}

#chatView .composer-area-new .new-composer-bottom {
  display: contents !important;
}

#chatView .composer-area-new .new-composer-left,
#chatView .composer-area-new .char-count {
  display: none !important;
}

#chatView .composer-area-new .new-composer-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#chatView .composer-area-new .voice-button,
#chatView .composer-area-new .send-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

#chatView .composer-area-new .composer-disclaimer {
  margin: 5px 0 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

@media (min-width: 769px) {
  #chatView .composer-area-new .chat-form,
  #chatView .composer-area-new form#chatForm {
    height: 54px !important;
    min-height: 54px !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 768px) {
  #chatView .composer-area-new .chat-form,
  #chatView .composer-area-new form#chatForm {
    height: 52px !important;
    min-height: 52px !important;
    padding-left: 10px !important;
    gap: 7px !important;
  }

  #chatView .composer-area-new .attach-container {
    flex-basis: 30px !important;
    width: 30px !important;
  }

  #chatView .composer-area-new .new-composer-actions {
    gap: 2px !important;
  }

  #chatView .composer-area-new .voice-button,
  #chatView .composer-area-new .send-button {
    flex-basis: 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
  }
}

/* Fix tampilan nama akun di sidebar */
#sidebarProfileName::before,
#sidebarProfileName::after {
content: none !important;
}

/* Fix tombol Login di topbar */
#loginButton.login-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 76px;
min-height: 38px;
padding: 0 16px;
background: #111111;
color: #ffffff;
border: 1px solid #3a3a3a;
border-radius: 12px;
font-size: 13px;
font-weight: 600;
line-height: 1;
white-space: nowrap;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
}

#loginButton.login-button {
background: #222222;
border-color: #666666;
}

#loginButton.login-button {
outline: 2px solid #ffffff;
outline-offset: 3px;
}

/* Tombol X di kiri atas Settings */
.settings-back-button {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px;
  border: 1px solid #333333;
  border-radius: 12px;
  background: transparent;
  color: #b0b0b0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.settings-back-button:hover {
  background: #222222;
  color: #ffffff;
  transform: scale(1.04);
}

.settings-back-button:focus-visible {
  outline: 2px solid #888888;
  outline-offset: 3px;
}