.explorer-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #333;
  border-radius: 5px;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  color: #fff;
}

.tab-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-bar button {
  padding: 8px 16px;
  background: #444;
  border: none;
  border-radius: 4px;
  color: #ccc;
  cursor: pointer;
}

.tab-bar button.active {
  background: #666;
  color: #fff;
}

.tab-content {
  overflow-y: auto;
  padding: 10px;
}

.state-section {
  margin-bottom: 20px;
  padding: 10px;
  background: #444;
  border-radius: 4px;
}

.state-section h3 {
  margin-top: 0;
  color: #9ff;
}

.current-task {
  color: #fff;
  font-size: 1.1em;
  margin: 10px 0;
}

.last-action {
  color: #ddd;
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-item {
  color: #ddd;
  padding: 4px 8px;
  background: #555;
  border-radius: 3px;
}

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

.emotional-item {
  padding: 8px;
  background: #555;
  border-radius: 4px;
}

.percept-text {
  color: #fff;
}

.percept-meta {
  color: #999;
  font-size: 0.9em;
  margin-top: 4px;
}

.goals-list, .tasks-list, .signals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-item, .task-item, .signal-cluster {
  background: #555;
  padding: 12px;
  border-radius: 4px;
}

.goal-name, .task-name {
  color: #9ff;
  font-weight: bold;
  margin-bottom: 8px;
}

.goal-description, .task-description {
  color: #fff;
  margin-bottom: 8px;
}

.goal-termination,
.goal-conditions {
  font-size: 0.9em;
  margin: 2px 0;
}

.goal-progress, .goal-drives,
.task-reason, .task-actors, .task-needs {
  color: #ccc;
  font-size: 0.9em;
  margin: 4px 0;
}

.cluster-text {
  color: #9ff;
  font-weight: bold;
}

.cluster-type {
  color: #fff;
  margin: 4px 0;
}

.cluster-drives {
  color: #ccc;
  margin: 4px 0;
}

.cluster-metrics {
  color: #aaa;
  font-size: 0.9em;
}

.cluster-time {
  color: #888;
  font-size: 0.8em;
  margin-top: 8px;
}

.actors-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.actor-item {
  background: #555;
  padding: 12px;
  border-radius: 4px;
}

.actor-name {
  color: #9ff;
  font-weight: bold;
}

.actor-relationship {
  color: #fff;
  margin: 8px 0;
}

.actor-dialog {
  color: #ccc;
  margin-top: 8px;
}

.dialog-transcript {
  margin-top: 8px;
  padding: 8px;
  background: #444;
  border-radius: 3px;
  max-height: 200px;
  overflow-y: auto;
}

/* Add overlay behind modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
}

.drives-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drive-item {
  background-color: #444;
  padding: 10px;
  border-radius: 4px;
}

.drive-text {
  color: #fff;
  margin-bottom: 8px;
}

.drive-activation {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.activation-bar {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  transition: width 0.3s ease;
}

.activation-value {
  position: absolute;
  right: 8px;
  color: #fff;
  font-size: 0.8em;
  text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.memories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.memory-item {
  background-color: #444;
  padding: 12px;
  border-radius: 4px;
}

.memory-time {
  font-size: 0.8em;
  color: #888;
  margin-bottom: 4px;
}

.narrative-summary {
  margin-top: 20px;
}

.narrative-section {
  background-color: #444;
  padding: 12px;
  border-radius: 4px;
  margin: 8px 0;
  white-space: pre-wrap;
}

h5 {
  color: #aaa;
  margin: 12px 0 4px;
}

.percept-item {
  background-color: #444;
  padding: 10px;
  border-color: 4px;
  margin-bottom: 8px;
}

.percept-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  color: #888;
  margin-bottom: 4px;
}

.percept-mode {
  text-transform: uppercase;
  font-weight: bold;
}

.percept-content {
  white-space: pre-wrap;
  word-break: break-word;
}

.perceptions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Social tab styles */
.actors-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.actor-item {
  background-color: #444;
  padding: 12px;
  border-radius: 4px;
}

.actor-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.actor-name {
  font-weight: bold;
}

.actor-relationship {
  color: #aaa;
}

.dialog-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #555;
}

.dialog-transcript {
  margin-top: 8px;
  font-size: 0.9em;
  white-space: pre-wrap;
}

/* Cognitive tab styles */
.goals-list,
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goal-item {
  background-color: #444;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.goal-name {
  font-weight: bold;
  margin-bottom: 8px;
}

.goal-details {
  font-size: 0.9em;
  color: #ddd;
}

.goal-details > div {
  margin: 4px 0;
}

.goal-urgency {
  color: #ff9;
}

.goal-drive {
  color: #9ff;
}

.task-item {
  background-color: #444;
  padding: 12px;
  border-radius: 4px;
}

.task-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.task-description {
  margin-bottom: 4px;
}

.task-reason {
  color: #aaa;
  font-size: 0.9em;
}

.task-actors {
  color: #9ff;
  font-size: 0.9em;
  margin-top: 4px;
}

.task-committed {
  color: #9f9;
  font-size: 0.9em;
  margin-top: 4px;
}

.task-needs {
  color: #ff9;  /* Light yellow */
  font-size: 0.9em;
  margin-top: 4px;
}

.signals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signal-cluster {
  background-color: #444;
  padding: 12px;
  border-radius: 4px;
}

.cluster-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cluster-type {
  font-weight: bold;
}

.cluster-metrics {
  color: #aaa;
  font-size: 0.9em;
}

.cluster-text {
  font-size: 1.1em;
  margin-bottom: 8px;
}

.cluster-drive {
  color: #9ff;
  margin-bottom: 8px;
}

.cluster-signals {
  font-size: 0.9em;
  margin-left: 12px;
}

.signal-item {
  color: #ddd;
  margin: 4px 0;
}

.cluster-time {
  color: #888;
  font-size: 0.8em;
  margin-top: 8px;
}

.chat-interface {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  height: 100%;
}

.chat-input, .chat-output {
  width: 100%;
  padding: 8px;
  background: #222;
  color: #d0d0d0;
  border: 1px solid #444;
}

.chat-output {
  flex-grow: 1;
  min-height: 300px;  /* Make output pane significantly taller */
  resize: vertical;   /* Allow vertical resizing */
}

.chat-input {
  height: 80px;  /* Fixed height for input */
  resize: none;   /* Prevent resizing */
}

.chat-send-button {
  align-self: flex-end;
  padding: 8px 16px;
  background: #444;
  color: white;
  border: none;
  cursor: pointer;
}

.decisions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.decision-item {
  background-color: #444;
  padding: 10px;
  border-radius: 4px;
  border-left: 3px solid #ffa500; /* Orange accent for decisions */
  white-space: pre-wrap;
  word-break: break-word;
}

.no-decisions {
  color: #aaa;
  font-style: italic;
  padding: 8px;
} 

.character-description {
  background-color: #444;
  padding: 12px;
  border-radius: 4px;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.4;
  font-style: italic;
} 