/* Activity Summary Modal and Tab (Spec 0059) */

/* Activity Summary Modal */
.activity-dialog {
  width: 600px;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.activity-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.activity-dialog-header h3 {
  margin: 0;
}

.activity-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}

.activity-close-btn:hover {
  color: var(--text-primary);
}

.activity-dialog-content {
  flex: 1;
  overflow-y: auto;
  max-height: 50vh;
  margin-bottom: 16px;
}

.activity-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--text-muted);
}

.activity-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.activity-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.activity-error {
  text-align: center;
  padding: 40px 20px;
  color: #ef4444;
}

.activity-summary {
  line-height: 1.6;
}

.activity-ai-summary {
  background: var(--bg-tertiary);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-style: italic;
  color: var(--text-secondary);
}

.activity-section {
  margin-bottom: 16px;
}

.activity-section h4 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.activity-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.activity-section li {
  margin-bottom: 4px;
}

.activity-section p {
  margin: 4px 0;
  color: var(--text-secondary);
}

.activity-time-value {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}

.activity-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Activity Tab Styles */
.activity-tab-container {
  padding: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.activity-tab-container .activity-summary {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 20px;
}

.activity-tab-container .activity-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}
