:root {
  /* Inform Forgejo this is a dark theme */
  --is-dark-theme: true;

  /* --- PRIMARY COLORS (Hue 284 - #b524ea) --- */
  --color-primary: #b524ea;
  --color-primary-contrast: #ffffff;

  /* Darker shades (for active states/buttons) */
  --color-primary-dark-1: #a320d3;
  --color-primary-dark-2: #911cbb;
  --color-primary-dark-3: #8018a4;
  --color-primary-dark-4: #6e158d;

  /* Lighter shades (for hover states) */
  --color-primary-light-1: #c13ff0;
  --color-primary-light-2: #cd5bf6;
  --color-primary-light-3: #d977fc;
  --color-primary-light-4: #e593ff;

  /* In dark mode, links often need to be slightly lighter for contrast */
  --color-link: #cd5bf6;
  --color-link-hover: #e593ff;

  /* --- BACKGROUND SURFACES (Removing the Blue Tint) --- */
  
  /* Main Background - Very Dark Neutral Gray */
  --color-body: #121212;
  
  /* Secondary Backgrounds (Headers, Footers, Toolbars) */
  --color-secondary: #1a1a1a;
  --color-navbar: #1a1a1a;
  --color-footer: #1a1a1a;

  /* Panels, Cards, and Boxes */
  --color-box-body: #1a1a1a;
  --color-box-header: #202020;
  --color-card: #1a1a1a;
  
  /* User Settings / Menu Backgrounds */
  --color-menu: #1f1f1f;
  --color-expand-button: #252525;

  /* Input Fields */
  --color-input-background: #121212;
  --color-input-border: #333333;
  --color-input-text: #e0e0e0;

  /* --- TEXT & BORDERS --- */
  --color-text: #e0e0e0;
  --color-text-light: #b0b0b0;
  --color-text-light-1: #909090;
  --color-text-light-2: #707070;
  
  /* Neutral Borders (replacing blue-ish borders) */
  --color-border: #333333;
  --color-border-secondary: #333333;

  /* --- ALERTS & INFO (Optional: Tinting them Purple/Neutral) --- */
  /* Keeps the info boxes from looking too blue */
  --color-info-text: #e0e0e0;
  --color-info-bg: #1f1f1f;
  --color-info-border: #444444;
}

gitea-theme-meta-info {
  --theme-display-name: "Purple Dark";
  --theme-color-primary: #b524ea;
}
