/* ==========================================================================
   AI Ops Assistant - Enterprise System Diagnosis Styling
   Design Philosophy: Modern, professional, clean dark dashboard. 
   Focuses on premium slate grids, clear typography, and subtle indicators.
   ========================================================================== */

/* --- Design Tokens & Variables --- */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Theme Palette - Professional Dark Slate */
  --bg-app: #090d16;
  --bg-card: #131b2e;
  --bg-card-hover: #18233c;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-focus: #3b82f6;

  /* Text Hierarchy */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Accent Colors */
  --color-primary: #3b82f6;      /* Modern enterprise blue */
  --color-primary-hover: #2563eb;
  --color-primary-bg: rgba(59, 130, 246, 0.1);
  
  --color-success: #10b981;      /* Emerald green */
  --color-success-bg: rgba(16, 185, 129, 0.1);

  --color-warning: #f59e0b;      /* Amber / Orange */
  --color-warning-bg: rgba(245, 158, 11, 0.1);

  --color-critical: #ef4444;     /* Crimson red */
  --color-critical-bg: rgba(239, 68, 68, 0.1);

  /* Layout Constants */
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 14px;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- App Header Layout --- */
.app-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-logo {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.header-logo h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.version-badge {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 500;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(16, 185, 129, 0.08);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-success);
  border-radius: 50%;
  animation: pulse-ring 1.8s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

.status-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-success);
  letter-spacing: 0.02em;
}

.system-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

/* --- Dashboard Grid System --- */
.dashboard-grid {
  flex: 1;
  padding: 2rem;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.panel-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.left-column {
  /* Fix width of the side column */
}

.right-column {
  /* Flexibly expanding center area */
  min-width: 0; /* Prevents flex items from overflowing container */
}

/* --- Dashboard Card Panels --- */
.dashboard-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

.dashboard-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.panel-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.panel-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

/* --- Live Tag / Badges --- */
.live-tag {
  font-size: 0.65rem;
  background-color: var(--color-primary-bg);
  color: var(--color-primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: pulse-text 2s infinite ease-in-out;
}

@keyframes pulse-text {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-low { background-color: var(--color-success-bg); color: var(--color-success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-medium { background-color: var(--color-warning-bg); color: var(--color-warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-high { background-color: rgba(239, 68, 68, 0.08); color: var(--color-critical); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-critical { 
  background-color: var(--color-critical); 
  color: white; 
  animation: alarm-pulse 1.5s infinite alternate;
}

@keyframes alarm-pulse {
  0% { box-shadow: 0 0 4px rgba(239, 68, 68, 0.4); }
  100% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.8); }
}

/* --- Server Health Panel --- */
.panel-health {
  /* Uptime etc styles */
}

.health-metrics {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 500;
}

.metric-label {
  color: var(--text-secondary);
}

.metric-value {
  color: var(--text-primary);
  font-weight: 600;
}

#uptime-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  background-color: rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  color: var(--color-primary);
}

/* Progress bar styling */
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 4px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.1, 1, 0.1, 1);
}

.progress-high {
  background-color: var(--color-warning) !important;
}

.progress-critical {
  background-color: var(--color-critical) !important;
}

.metric-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.health-footer {
  padding: 0.75rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--border-color);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* --- Log Analyzer Panel --- */
.panel-analyzer {
}

.analyzer-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.demo-logs-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.demo-logs-selector label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.65rem;
  color: var(--text-secondary);
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

select {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

select:focus {
  border-color: var(--border-color-focus);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

select option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.textarea-container {
  position: relative;
  width: 100%;
}

textarea {
  width: 100%;
  height: 200px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  padding: 1rem 2.5rem 1rem 1rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  resize: vertical;
  outline: none;
  line-height: 1.4;
  transition: var(--transition-smooth);
}

textarea:focus {
  border-color: var(--border-color-focus);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
  background-color: rgba(0, 0, 0, 0.3);
}

.btn-clear {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-clear:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.clear-icon {
  width: 14px;
  height: 14px;
}

/* --- Buttons --- */
button {
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  outline: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.animate-pulse {
  animation: pulse-icon 2s infinite ease-in-out;
}

@keyframes pulse-icon {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* --- Interactive States --- */
.empty-state {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
}

.empty-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.85rem;
  max-width: 320px;
  color: var(--text-muted);
}

.loading-state {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  gap: 1rem;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(59, 130, 246, 0.15);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
}

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

.loading-state p {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.hidden {
  display: none !important;
}

/* --- AI Troubleshooting Results Section --- */
.panel-result {
  flex: 1;
}

.panel-content {
  padding: 1.5rem;
  flex: 1;
}

.diagnostic-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.result-section-card {
  background-color: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.result-section-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.section-icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.summary-card {
  border-left: 3px solid var(--color-primary);
}

.summary-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.dual-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .dual-columns {
    grid-template-columns: 1fr;
  }
}

.styled-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.styled-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.4;
}

.styled-list li::before {
  content: '▪';
  color: var(--color-primary);
  position: absolute;
  left: 0.25rem;
  font-size: 0.8rem;
}

.check-list li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
}

/* Warning Card Styling */
.warning-card {
  border-left: 3px solid var(--color-warning);
  background-color: rgba(245, 158, 11, 0.03);
}

.warning-card h4 {
  color: var(--color-warning);
}

.alert-icon {
  color: var(--color-warning) !important;
}

#analysis-security-text {
  font-size: 0.85rem;
  color: var(--color-warning);
  font-weight: 500;
  line-height: 1.5;
}

/* Limitations Card (Confidence & Manual checks) */
.limitations-card {
  border-left: 3px solid var(--text-muted);
}

.limitations-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.limit-metric {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.limit-label {
  font-weight: 500;
  color: var(--text-secondary);
}

#confidence-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}

.limit-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.limit-block strong {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

.limit-block p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.verify-instruction {
  font-family: var(--font-mono);
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  color: #a7f3d0 !important; /* Soft light emerald for instructions */
}

/* Action Bar below results */
.analysis-action-bar {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* --- Semi-Automation Command Generator Section --- */
.panel-commands {
  animation: fadeIn 0.4s ease-out;
}

.commands-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.safety-shield {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(59, 130, 246, 0.08);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary);
}

.shield-icon {
  width: 12px;
  height: 12px;
}

.safety-banner-notice {
  display: flex;
  gap: 0.75rem;
  background-color: rgba(59, 130, 246, 0.03);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.banner-icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.safety-banner-notice strong {
  color: var(--text-primary);
}

.commands-content-area {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.code-terminal-header {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
}

.term-dot.red { background-color: #ef4444; }
.term-dot.yellow { background-color: #f59e0b; }
.term-dot.green { background-color: #10b981; }

.term-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: 0.5rem;
  flex: 1;
}

.btn-copy {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  border-radius: 4px;
  font-weight: 600;
}

.btn-copy:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-copy.copied {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border-color: rgba(16, 185, 129, 0.3);
}

.copy-icon {
  width: 12px;
  height: 12px;
}

.terminal-box {
  background-color: #060913;
  padding: 1.5rem;
  overflow-x: auto;
  max-height: 450px;
}

.terminal-box code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Style command explanations and command blocks dynamically */
.terminal-box h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 0.25rem;
}

.terminal-box h3:first-of-type {
  margin-top: 0;
}

.terminal-box ul {
  list-style: none;
  margin-bottom: 0.75rem;
}

.terminal-box li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  padding-left: 1rem;
  position: relative;
}

.terminal-box li::before {
  content: '▪';
  color: var(--color-primary);
  position: absolute;
  left: 0;
}

.terminal-box pre {
  margin: 0.5rem 0 1rem 0;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  overflow-x: auto;
}

.terminal-box pre code {
  color: #38bdf8; /* Vibrant light blue for safe commands */
  font-weight: 500;
}

/* Style security warning triggers */
.terminal-box .dangerous-command-blocked {
  color: var(--color-critical) !important;
  font-weight: 700;
  background-color: rgba(239, 68, 68, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: block;
}

/* --- Incident Report Generator Section --- */
.panel-report {
  animation: fadeIn 0.4s ease-out;
}

.report-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-text-action {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.btn-text-action:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-text-action.copied {
  color: var(--color-success);
  background-color: rgba(16, 185, 129, 0.08);
}

.action-btn-icon {
  width: 14px;
  height: 14px;
}

.report-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.report-content-area {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.report-paper {
  background-color: #0b0f19; /* Standard administrative slate tone */
  padding: 2.5rem;
  font-size: 0.85rem;
  color: #d1d5db;
  line-height: 1.6;
  max-height: 600px;
  overflow-y: auto;
}

/* Markdown styling inside paper */
.report-paper h1 {
  font-size: 1.3rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.report-paper p {
  margin-bottom: 1rem;
}

.report-paper hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

.report-paper h3 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.report-paper ul {
  list-style: none;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.report-paper li {
  position: relative;
  padding-left: 1.25rem;
}

.report-paper li::before {
  content: '•';
  color: var(--color-primary);
  position: absolute;
  left: 0.25rem;
}

/* --- App Footer --- */
.app-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-left strong {
  color: var(--text-secondary);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.secure-badge-icon {
  width: 14px;
  height: 14px;
  color: var(--color-success);
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .app-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
  }

  .header-status {
    width: 100%;
    justify-content: space-between;
  }
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}


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

.timeline-item {
  border-left: 4px solid var(--color-primary);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
}

.timeline-item p {
  margin: 0;
  font-size: 0.9rem;
}

.timeline-success {
  border-left-color: var(--color-success);
}

.timeline-warning {
  border-left-color: var(--color-warning);
}

.timeline-danger {
  border-left-color: var(--color-danger);
}

.timeline-info {
  border-left-color: var(--color-primary);
}



body::before {
  content: "🌸";
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-size: 60px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 999;
  animation: riseFlower 8s linear infinite;
}

@keyframes riseFlower {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  15% {
    opacity: 0.15;
  }

  85% {
    opacity: 0.15;
  }

  100% {
    transform: translateY(-100vh);
    opacity: 0;
  }
}
