/* Nyaya Debate Widget Styling */
.nyaya-companion-box {
  position: fixed;
  z-index: 999997;
  width: 440px;
  height: 480px;
  background: #000000 !important;
  border: 1px solid var(--border, #242424);
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--mono, monospace);
  transition: height 0.2s ease, width 0.2s ease, border-color 0.2s ease;
}

.nyaya-companion-box.minimized {
  height: 34px !important;
}

.nyaya-companion-box.minimized .nyaya-body {
  display: none !important;
}

.nyaya-header {
  background: #0d0d0d !important;
  border-bottom: 1px solid var(--border, #242424);
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
  user-select: none;
  font-size: 0.78rem;
  color: #686868 !important;
  height: 34px;
}

.nyaya-header:active {
  cursor: grabbing;
}

.nyaya-title {
  color: #e6e6e6 !important;
}

.nyaya-status {
  color: var(--link, #56c8ff) !important;
  margin-right: 4px;
  font-size: 0.75rem;
}

.nyaya-actions {
  display: flex;
  gap: 6px;
}

.nyaya-btn {
  background: transparent;
  border: none;
  color: #686868 !important;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0 4px;
  transition: color 0.15s;
}

.nyaya-btn:hover {
  color: #e6e6e6 !important;
}

.nyaya-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #000000 !important;
  color: #bdbdbd !important;
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-y: auto;
}

.nyaya-chat-log {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}

.nyaya-msg {
  margin-bottom: 12px;
}

.nyaya-msg.system {
  color: #686868;
  font-style: italic;
}

.nyaya-msg.opponent {
  color: #ffffff;
}

.nyaya-msg.player {
  color: #56c8ff;
}

.nyaya-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border, #242424);
  padding-top: 12px;
}

.nyaya-choice-btn {
  background: #0d0d0d;
  border: 1px solid var(--border, #242424);
  color: #e6e6e6;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  font-family: var(--mono, monospace);
  font-size: 0.74rem;
  transition: background 0.15s, border-color 0.15s;
}

.nyaya-choice-btn:hover {
  background: #161b22;
  border-color: #56c8ff;
  color: #ffffff;
}

.nyaya-restart-btn {
  background: #56c8ff;
  color: #000000;
  border: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--mono, monospace);
  font-size: 0.74rem;
  margin-top: 8px;
}

.nyaya-restart-btn:hover {
  background: #19abf4;
}
