/* Observability modal styles for WC-5 */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content {
  background: var(--bg-panel, #2a2a2a);
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.replay-modal {
  width: min(1200px, 90vw);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border, #444);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: var(--text, #e0e0e0);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-dim, #999);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  line-height: 1;
}

.modal-close:hover {
  background: var(--hover, #333);
  color: var(--text, #e0e0e0);
}

.modal-body {
  padding: 20px;
  overflow: auto;
  flex: 1;
}

.session-log {
  margin: 0;
  padding: 16px;
  background: #1a1a1a;
  border-radius: 4px;
  color: #e0e0e0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: calc(90vh - 120px);
  overflow: auto;
}
