/* Custom Minimal Utilities on top of Tailwind CSS */

:root, html, body, select, option {
  color-scheme: dark;
}

select {
  background-color: #09090b;
  color: #e4e4e7;
}

select option {
  background-color: #18181b !important;
  color: #e4e4e7 !important;
  padding: 6px 10px;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

#mainSidebar.collapsed {
  margin-left: -248px;
}

#artifactDrawer.collapsed {
  margin-right: -460px;
}

.dtab {
  color: #a1a1aa;
}
.dtab.active {
  background: #27272a;
  color: #f4f4f5;
}

.drawer-body {
  display: none;
}
.drawer-body.active {
  display: flex;
}

/* Dynamic JS Elements styled uniformly like Tailwind Zinc */
.session-item {
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.session-item:hover {
  background: rgba(39, 39, 42, 0.6);
}
.session-item.active {
  background: rgba(39, 39, 42, 0.95);
  border-color: #3f3f46;
}
.session-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.session-item-title {
  font-size: 11.5px;
  font-weight: 500;
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-item-meta {
  font-size: 10px;
  color: #71717a;
  display: flex;
  justify-content: space-between;
}

.msg-card {
  width: 100%;
  max-width: 672px;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.55;
}
.msg-user {
  background: #18181b;
  border: 1px solid #27272a;
}
.msg-agent {
  background: transparent;
  padding: 4px 2px;
}
.msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
  color: #71717a;
}
.msg-actor-badge {
  font-weight: 600;
  color: #fdba74;
}
.msg-body {
  white-space: pre-wrap;
  word-break: break-word;
  color: #e4e4e7;
}
.msg-body pre {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  margin: 8px 0;
}
.msg-footer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.meta-pill {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #18181b;
  border: 1px solid #27272a;
  color: #a1a1aa;
  cursor: pointer;
}
.meta-pill.pill-diff {
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.meta-pill.pill-mem {
  border-color: rgba(217, 119, 87, 0.35);
  color: #fdba74;
}
.thoughts-box {
  margin-top: 6px;
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  color: #71717a;
}

.info-card {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
}
.info-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.file-item {
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #a1a1aa;
  cursor: pointer;
}
.file-item:hover {
  background: #27272a;
  color: #f4f4f5;
}
.file-item.is-dir {
  color: #fdba74;
}

.diff-pre {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 6px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  overflow-x: auto;
  max-height: 150px;
  white-space: pre;
}

.progress-track {
  width: 100%;
  height: 5px;
  background: #18181b;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #10b981;
}
.progress-fill.warn {
  background: #f59e0b;
}
.progress-fill.danger {
  background: #ef4444;
}

.btn-mini, .btn-clear {
  background: #18181b;
  color: #a1a1aa;
  border: 1px solid #27272a;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10.5px;
  cursor: pointer;
}
.btn-mini:hover, .btn-clear:hover {
  background: #27272a;
  color: #fff;
}
.btn-primary-mini {
  background: #d97757;
  border-color: #d97757;
  color: #fff;
}
.badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #18181b;
  border: 1px solid #27272a;
  color: #a1a1aa;
}
.muted-small, .mono-tiny {
  font-size: 10.5px;
  color: #71717a;
}
