/* ============================================
   ACTIVITY REPORTS — css/activity-reports.css
   ============================================ */

/* ==========================================
   PANEL HEADER BUTTON
   ========================================== */

.rp-new-btn {
  padding: 6px 14px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
  white-space: nowrap;
}

.rp-new-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* ==========================================
   REPORTS LIST
   ========================================== */

.rp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rp-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.rp-card:hover {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.rp-card-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.rp-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rp-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-card-preview {
  font-size: 12px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-card-date {
  font-size: 11px;
  color: var(--color-text-tertiary);
}

.rp-card-delete {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.rp-card:hover .rp-card-delete {
  opacity: 1;
}

.rp-card-delete:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* ==========================================
   REPORT EDITOR
   ========================================== */

.rp-editor {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0;
}

.rp-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.rp-back-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.rp-back-btn:hover {
  border-color: var(--color-border-dark);
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
}

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

.rp-export-btn,
.rp-copy-btn {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rp-export-btn:hover,
.rp-copy-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(79, 70, 229, 0.05);
}

.rp-title-input {
  width: 100%;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  background: transparent;
  border: none;
  outline: none;
  padding: 0 0 12px 0;
  font-family: var(--font-family);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.rp-title-input::placeholder {
  color: var(--color-text-placeholder);
  font-weight: 400;
}

.rp-content-area {
  flex: 1;
  width: 100%;
  min-height: 400px;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  color: var(--color-text-primary);
  line-height: 1.7;
  resize: none;
}

.rp-content-area::placeholder {
  color: var(--color-text-placeholder);
}

.rp-editor-footer {
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
  flex-shrink: 0;
}

.rp-save-status {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* ==========================================
   EMPTY STATE
   ========================================== */

.rp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  gap: 10px;
}

.rp-empty-icon {
  font-size: 40px;
  opacity: 0.4;
  margin-bottom: 4px;
}

.rp-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.rp-empty-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 280px;
}

.rp-empty-desc strong {
  color: var(--color-primary);
}

/* ==========================================
   DARK MODE
   ========================================== */

[data-theme="dark"] .rp-card {
  background: var(--color-bg-secondary);
}

[data-theme="dark"] .rp-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .rp-content-area {
  color: var(--color-text-primary);
}
