/*
 * GitHub Dark Theme for Gitea
 *
 * Faithfully maps GitHub's Primer dark theme colors to Gitea's CSS variable system.
 * Based on GitHub's dark default theme (Primer design system).
 *
 * Installation:
 *   1. Copy this file to $GITEA_CUSTOM/public/css/theme-github-dark.css
 *   2. Add "github-dark" to the THEMES setting in app.ini [ui] section
 *   3. Restart Gitea
 *
 * https://github.com/jeremy/gitea-themes
 */

gitea-theme-meta-info {
  --theme-display-name: "GitHub Dark";
  --theme-color-scheme: "dark";
}

:root {
  /* ===== DARK THEME FLAG ===== */
  --is-dark-theme: true;

  /* ===== PRIMARY COLORS (GitHub accent blue) ===== */
  --color-primary: #388bfd;
  --color-primary-contrast: #ffffff;
  --color-primary-dark-1: #58a6ff;
  --color-primary-dark-2: #79c0ff;
  --color-primary-dark-3: #a5d6ff;
  --color-primary-dark-4: #c8e1ff;
  --color-primary-dark-5: #dbedff;
  --color-primary-dark-6: #f0f6ff;
  --color-primary-dark-7: #ffffff;
  --color-primary-light-1: #1f6feb;
  --color-primary-light-2: #1158c7;
  --color-primary-light-3: #0550ae;
  --color-primary-light-4: #033d8b;
  --color-primary-light-5: #0a2540;
  --color-primary-light-6: #041223;
  --color-primary-light-7: #010409;
  --color-primary-alpha-10: #388bfd1a;
  --color-primary-alpha-20: #388bfd33;
  --color-primary-alpha-30: #388bfd4d;
  --color-primary-alpha-40: #388bfd66;
  --color-primary-alpha-50: #388bfd80;
  --color-primary-alpha-60: #388bfd99;
  --color-primary-alpha-70: #388bfdcc;
  --color-primary-alpha-80: #388bfde6;
  --color-primary-alpha-90: #388bfd0d;
  --color-primary-hover: #58a6ff;
  --color-primary-active: #79c0ff;

  /* ===== SECONDARY COLORS (GitHub border/muted) ===== */
  --color-secondary: #30363d;
  --color-secondary-dark-1: #3d444d;
  --color-secondary-dark-2: #4c5159;
  --color-secondary-dark-3: #5c6370;
  --color-secondary-dark-4: #6e7681;
  --color-secondary-dark-5: #768390;
  --color-secondary-dark-6: #848d97;
  --color-secondary-dark-7: #8b949e;
  --color-secondary-dark-8: #9ea7b0;
  --color-secondary-dark-9: #adbac7;
  --color-secondary-dark-10: #bdc4cc;
  --color-secondary-dark-11: #cdd5de;
  --color-secondary-dark-12: #d0d7de;
  --color-secondary-dark-13: #d8dee4;
  --color-secondary-light-1: #21262d;
  --color-secondary-light-2: #161b22;
  --color-secondary-light-3: #0d1117;
  --color-secondary-light-4: #010409;
  --color-secondary-alpha-10: #30363d1a;
  --color-secondary-alpha-20: #30363d33;
  --color-secondary-alpha-30: #30363d4d;
  --color-secondary-alpha-40: #30363d66;
  --color-secondary-alpha-50: #30363d80;
  --color-secondary-alpha-60: #30363d99;
  --color-secondary-alpha-70: #30363db3;
  --color-secondary-alpha-80: #30363dcc;
  --color-secondary-alpha-90: #30363de1;
  --color-secondary-button: #21262d;
  --color-secondary-hover: #292e36;
  --color-secondary-active: #3d444d;

  /* ===== CONSOLE COLORS ===== */
  --color-console-fg: #e6edf3;
  --color-console-fg-subtle: #8b949e;
  --color-console-bg: #0d1117;
  --color-console-border: #30363d;
  --color-console-hover-bg: #161b22;
  --color-console-active-bg: #21262d;
  --color-console-menu-bg: #161b22;
  --color-console-menu-border: #30363d;
  --color-console-link: #58a6ff;

  /* ===== NAMED COLORS (GitHub Primer) ===== */
  --color-red: #f85149;
  --color-orange: #d29922;
  --color-yellow: #e3b341;
  --color-olive: #3fb950;
  --color-green: #3fb950;
  --color-teal: #39d353;
  --color-blue: #58a6ff;
  --color-violet: #bc8cff;
  --color-purple: #bc8cff;
  --color-pink: #f778ba;
  --color-brown: #d29922;
  --color-black: #0d1117;

  /* ===== NAMED COLOR LIGHT VARIANTS ===== */
  --color-red-light: #ff7b72;
  --color-orange-light: #e3b341;
  --color-yellow-light: #f0e68c;
  --color-olive-light: #56d364;
  --color-green-light: #56d364;
  --color-teal-light: #56d364;
  --color-blue-light: #79c0ff;
  --color-violet-light: #d2a8ff;
  --color-purple-light: #d2a8ff;
  --color-pink-light: #ff9bce;
  --color-brown-light: #e3b341;
  --color-black-light: #21262d;

  /* ===== NAMED COLOR DARK 1 VARIANTS ===== */
  --color-red-dark-1: #da3633;
  --color-orange-dark-1: #bb8009;
  --color-yellow-dark-1: #bb8009;
  --color-olive-dark-1: #2ea043;
  --color-green-dark-1: #2ea043;
  --color-teal-dark-1: #2ea043;
  --color-blue-dark-1: #388bfd;
  --color-violet-dark-1: #8957e5;
  --color-purple-dark-1: #8957e5;
  --color-pink-dark-1: #db61a2;
  --color-brown-dark-1: #bb8009;
  --color-black-dark-1: #010409;

  /* ===== NAMED COLOR DARK 2 VARIANTS ===== */
  --color-red-dark-2: #b62324;
  --color-orange-dark-2: #8e6400;
  --color-yellow-dark-2: #8e6400;
  --color-olive-dark-2: #1a7f37;
  --color-green-dark-2: #1a7f37;
  --color-teal-dark-2: #1a7f37;
  --color-blue-dark-1: #1f6feb;
  --color-blue-dark-2: #1158c7;
  --color-violet-dark-2: #6e40c9;
  --color-purple-dark-2: #6e40c9;
  --color-pink-dark-2: #bf3989;
  --color-brown-dark-2: #8e6400;
  --color-black-dark-2: #010409;

  /* ===== ANSI COLORS (for Actions console) ===== */
  --color-ansi-black: #0d1117;
  --color-ansi-red: #ff7b72;
  --color-ansi-green: #3fb950;
  --color-ansi-yellow: #d29922;
  --color-ansi-blue: #58a6ff;
  --color-ansi-magenta: #d2a8ff;
  --color-ansi-cyan: #76e3ea;
  --color-ansi-white: #b1bac4;
  --color-ansi-bright-black: #484f58;
  --color-ansi-bright-red: #ffa198;
  --color-ansi-bright-green: #56d364;
  --color-ansi-bright-yellow: #e3b341;
  --color-ansi-bright-blue: #79c0ff;
  --color-ansi-bright-magenta: #d2a8ff;
  --color-ansi-bright-cyan: #b3f5ff;
  --color-ansi-bright-white: #f0f6fc;

  /* ===== 16-COLOR SERIES ===== */
  --color-series-16-0: #7ee787;
  --color-series-16-1: #56d364;
  --color-series-16-2: #ff7b72;
  --color-series-16-3: #e3b341;
  --color-series-16-4: #d2a8ff;
  --color-series-16-5: #bc8cff;
  --color-series-16-6: #d29922;
  --color-series-16-7: #3fb950;
  --color-series-16-8: #db6d28;
  --color-series-16-9: #388bfd;
  --color-series-16-10: #f85149;
  --color-series-16-11: #56d364;
  --color-series-16-12: #bc8cff;
  --color-series-16-13: #3fb950;
  --color-series-16-14: #79c0ff;
  --color-series-16-15: #d2a8ff;

  /* ===== OTHER COLORS ===== */
  --color-grey: #484f58;
  --color-grey-light: #6e7681;
  --color-gold: #d29922;
  --color-white: #ffffff;
  --color-git: #f85149;
  --color-logo: #3fb950;

  /* ===== DIFF COLORS (GitHub dark) ===== */
  --color-diff-added-fg: #3fb950;
  --color-diff-added-linenum-bg: #12261e;
  --color-diff-added-row-bg: #12261e;
  --color-diff-added-row-border: #2ea04333;
  --color-diff-added-word-bg: #264f36;
  --color-diff-moved-row-bg: #2a2e1e;
  --color-diff-moved-row-border: #e3b34166;
  --color-diff-removed-fg: #f85149;
  --color-diff-removed-linenum-bg: #2d1214;
  --color-diff-removed-row-bg: #2d1214;
  --color-diff-removed-row-border: #f8514933;
  --color-diff-removed-word-bg: #67060c;
  --color-diff-inactive: #161b22;

  /* ===== STATUS COLORS (GitHub Primer) ===== */
  --color-error-border: #f8514966;
  --color-error-bg: #2d1215;
  --color-error-bg-active: #b62324;
  --color-error-bg-hover: #3d1a1e;
  --color-error-text: #f85149;
  --color-success-border: #3fb95066;
  --color-success-bg: #122117;
  --color-success-text: #3fb950;
  --color-warning-border: #d2992266;
  --color-warning-bg: #2e1e09;
  --color-warning-text: #d29922;
  --color-info-border: #388bfd66;
  --color-info-bg: #0c2d6b;
  --color-info-text: #58a6ff;
  --color-priority-border: #8957e566;
  --color-priority-bg: #271052;
  --color-priority-text: #d2a8ff;

  /* ===== BADGE COLORS ===== */
  --color-red-badge: #f85149;
  --color-red-badge-bg: #f8514926;
  --color-red-badge-hover-bg: #f851494d;
  --color-green-badge: #3fb950;
  --color-green-badge-bg: #3fb95026;
  --color-green-badge-hover-bg: #3fb9504d;
  --color-yellow-badge: #d29922;
  --color-yellow-badge-bg: #d2992226;
  --color-yellow-badge-hover-bg: #d299224d;
  --color-orange-badge: #d29922;
  --color-orange-badge-bg: #d2992226;
  --color-orange-badge-hover-bg: #d299224d;

  /* ===== TARGET-BASED / SURFACE COLORS ===== */
  --color-body: #0d1117;
  --color-box-header: #161b22;
  --color-box-body: #0d1117;
  --color-box-body-highlight: #161b22;
  --color-text-dark: #e6edf3;
  --color-text: #e6edf3;
  --color-text-light: #8b949e;
  --color-text-light-1: #8b949e;
  --color-text-light-2: #6e7681;
  --color-text-light-3: #484f58;
  --color-footer: #010409;
  --color-timeline: #30363d;
  --color-input-text: #e6edf3;
  --color-input-background: #0d1117;
  --color-input-toggle-background: #21262d;
  --color-input-border: #30363d;
  --color-light: #f0f6fc0d;
  --color-light-border: #f0f6fc26;
  --color-hover: #f0f6fc12;
  --color-hover-opaque: #161b22;
  --color-active: #f0f6fc1f;
  --color-menu: #161b22;
  --color-card: #161b22;
  --color-markup-table-row: #f0f6fc08;
  --color-markup-code-block: #161b22;
  --color-markup-code-inline: #1c2129;
  --color-button: #21262d;
  --color-code-bg: #0d1117;
  --color-shadow: #01040966;
  --color-shadow-opaque: #010409;
  --color-secondary-bg: #161b22;
  --color-expand-button: #21262d;
  --color-placeholder-text: #484f58;
  --color-editor-line-highlight: #161b22;
  --color-editor-selection: #388bfd33;
  --color-project-column-bg: #161b22;
  --color-caret: #e6edf3;
  --color-reaction-bg: #0d111712;
  --color-reaction-hover-bg: #388bfd26;
  --color-reaction-active-bg: #388bfd33;
  --color-tooltip-text: #ffffff;
  --color-tooltip-bg: #1b1f24;
  --color-nav-bg: #0d1117;
  --color-nav-hover-bg: #161b22;
  --color-nav-text: #e6edf3;
  --color-secondary-nav-bg: #010409;
  --color-label-text: #e6edf3;
  --color-label-bg: #484f584d;
  --color-label-hover-bg: #6e7681a0;
  --color-label-active-bg: #6e7681ff;
  --color-accent: #388bfd;
  --color-small-accent: #388bfd26;
  --color-highlight-fg: #d29922;
  --color-highlight-bg: #2e1e09;
  --color-overlay-backdrop: #010409cc;
  --color-danger: #f85149;
  --color-transparency-grid-light: #1b1f24;
  --color-transparency-grid-dark: #0d1117;
  --color-workflow-edge-hover: #6e7681;

  /* ===== SYNTAX HIGHLIGHTING (GitHub Dark) ===== */
  --color-syntax-keyword: #ff7b72;
  --color-syntax-bool: #79c0ff;
  --color-syntax-control: #ff7b72;
  --color-syntax-name: #d2a8ff;
  --color-syntax-type: #ffa657;
  --color-syntax-number: #79c0ff;
  --color-syntax-operator: #ff7b72;
  --color-syntax-regexp: #7ee787;
  --color-syntax-string: #a5d6ff;
  --color-syntax-comment: #8b949e;
  --color-syntax-invalid: #f85149;
  --color-syntax-link: #58a6ff;
  --color-syntax-tag: #7ee787;
  --color-syntax-attribute: #79c0ff;
  --color-syntax-property: #79c0ff;
  --color-syntax-variable: #ffa657;
  --color-syntax-string-special: #d2a8ff;
  --color-syntax-escape: #79c0ff;
  --color-syntax-entity: #d2a8ff;
  --color-syntax-preproc: #ff7b72;
  --color-syntax-preproc-file: #79c0ff;
  --color-syntax-decorator: #d2a8ff;
  --color-syntax-namespace: #e6edf3;
  --color-syntax-name-pseudo: #d2a8ff;
  --color-syntax-comment-special: #8b949e;
  --color-syntax-text: #e6edf3;
  --color-syntax-text-alt: #8b949e;
  --color-syntax-punctuation: #e6edf3;
  --color-syntax-whitespace: #6e7681;
  --color-syntax-diff-fg: #e6edf3;
  --color-syntax-deleted-bg: #67060c;
  --color-syntax-inserted-bg: #12261e;
  --color-syntax-emph: #d29922;
  --color-syntax-strong: #e6edf3;
  --color-syntax-heading: #79c0ff;
  --color-syntax-subheading: #3fb950;
  --color-syntax-output: #8b949e;
  --color-syntax-prompt: #3fb950;
  --color-syntax-traceback: #f85149;
  --color-syntax-matching-bracket-bg: #388bfd59;
  --color-syntax-nonmatching-bracket-bg: #f8514959;

  accent-color: var(--color-accent);
  color-scheme: dark;
}

/* ===== COMPONENT OVERRIDES ===== */

/* Links */
a,
.ui.breadcrumb a {
  color: var(--color-primary);
}

a:hover,
.ui.breadcrumb a:hover {
  color: var(--color-primary-dark-1);
}

/* Repository file list */
.repository.file.list #repo-files-table tbody .svg.octicon-file-directory,
.repository.file.list #repo-files-table tbody .svg.octicon-file-submodule {
  color: #8b949e;
}

/* Tables */
.ui.table > thead > tr > th {
  background: #161b22;
  color: #e6edf3 !important;
  border-color: #30363d;
}

.ui.table tbody tr {
  background: #0d1117;
}

.ui.table td,
.ui.table th {
  border-color: #30363d;
}

/* Buttons - primary (GitHub green) */
.ui.green.buttons .button,
.ui.green.button {
  background-color: #238636;
  color: #ffffff !important;
}

.ui.green.buttons .button:hover,
.ui.green.button:hover {
  background-color: #2ea043;
}

/* Buttons - basic */
.ui.basic.green.button,
.ui.basic.green.buttons .button,
.ui.basic.primary.button,
.ui.basic.primary.buttons .button {
  background-color: #21262d !important;
  box-shadow: inset 0 0 0 1px #30363d !important;
  color: #e6edf3 !important;
}

.ui.basic.green.button:hover,
.ui.basic.green.buttons .button:hover,
.ui.basic.primary.button:hover,
.ui.basic.primary.buttons .button:hover {
  background-color: #30363d !important;
  box-shadow: inset 0 0 0 1px #6e7681 !important;
}

.ui.basic.green.button:focus,
.ui.basic.green.buttons .button:focus,
.ui.basic.primary.button:focus,
.ui.basic.primary.buttons .button:focus {
  box-shadow: inset 0 0 0 1px #58a6ff !important;
}

/* Modals */
.ui.modal > .header {
  background: #161b22;
  color: #e6edf3;
  border-color: #30363d;
}

.ui.modal > .actions {
  background: #161b22;
  border-color: #30363d;
}

.ui.modal > .content {
  background: #0d1117;
}

/* Issue list */
.issue.list {
  list-style: none;
  margin-top: 1rem;
  background-color: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 8px 16px;
}

/* Menu items */
.ui.menu .item {
  background-color: #0d1117;
  color: #e6edf3;
}

.ui.menu .item:hover {
  background-color: #161b22;
}

/* Horizontal segments */
.ui.horizontal.segments > .segment {
  background-color: #0d1117;
  border-color: #30363d;
}

/* Attached headers */
.ui.attached.header {
  border-color: #30363d;
}

/* Repository description */
.repository.file.list .repo-description {
  color: #8b949e;
}

/* Commit summary */
.commit-summary a.default-link {
  color: #e6edf3 !important;
}

/* Markup */
.markup h1,
.markup h2,
.markup h3,
.markup h4,
.markup h5,
.markup h6 {
  color: #e6edf3;
}

.markup code,
.markup tt {
  color: #e6edf3;
  background-color: #1c2129;
}

.markup p,
.markup blockquote,
.markup details,
.markup ul,
.markup ol,
.markup dl,
.markup table,
.markup pre {
  color: #e6edf3;
}

/* Headers */
.ui.header {
  color: #e6edf3;
}

.ui.header .sub.header {
  color: #8b949e;
}

/* Error headers */
.ui .error.header {
  border-color: #f85149 !important;
  background-color: #da3633 !important;
  color: #ffffff !important;
}

/* Repo icons */
.repo-icon {
  display: inline-block;
  transform: scale(0.75);
  margin-right: -0.05rem !important;
}

/* Repo title */
.repo-title a {
  color: #e6edf3 !important;
}

/* Repo list links */
.repo-list-link {
  color: var(--color-primary) !important;
}

/* SHA labels */
.ui .sha.label {
  padding: 6px 10px;
}

/* Feeds */
.feeds .list ul li.private {
  background-color: #0d1117;
}

/* Input fields */
input,
textarea,
.ui.input > input,
.ui.form input:not([type]),
.ui.form select,
.ui.form textarea,
.ui.form input[type="date"],
.ui.form input[type="datetime-local"],
.ui.form input[type="email"],
.ui.form input[type="file"],
.ui.form input[type="number"],
.ui.form input[type="password"],
.ui.form input[type="search"],
.ui.form input[type="tel"],
.ui.form input[type="text"],
.ui.form input[type="time"],
.ui.form input[type="url"],
.ui.selection.dropdown,
.ui.checkbox label:before,
.ui.checkbox input:checked ~ label:before,
.ui.checkbox input:not([type="radio"]):indeterminate ~ label:before {
  background-color: #0d1117;
  color: #e6edf3;
  border-color: #30363d;
}

.ui.form input:focus,
.ui.form textarea:focus,
.ui.form input:focus,
.ui.input > input:focus {
  border-color: #388bfd;
  box-shadow: 0 0 0 3px #388bfd33;
}

/* Menu two item borders */
.ui.menu.two.item .item {
  border-color: #30363d;
}

/* Labels */
.ui.label {
  border-color: #30363d;
}

a.ui.label {
  border-color: #30363d !important;
}

/* Repo file list table tr */
.repository.file.list #repo-files-table tr {
  background: #0d1117;
}

/* File buttons */
.repository.file.list #file-buttons .ui.button {
  color: #e6edf3 !important;
}

/* Due date boxes */
.repository .metas #deadlineForm input {
  border-color: #30363d;
}

/* Border color dependencies block in issues */
#new-dependency-drop-list.ui.selection.dropdown {
  border-color: #30363d;
}

.page-content .ui.button {
  border-color: #30363d;
}

/* Code background */
.code-view {
  background-color: #0d1117;
}

/* Code block in markup */
.markup pre code,
.markup pre.tt {
  background: transparent;
}

/* Diff */
.diff-file-header {
  background-color: #161b22;
  border-color: #30363d;
}

.diff-file-body .diff-table td {
  border-color: #30363d;
}

.diff-file-body .diff-table .add-line td:first-child {
  background-color: #12261e;
}

.diff-file-body .diff-table .del-line td:first-child {
  background-color: #2d1214;
}

/* Pull request merge status */
.ui.green.message {
  background-color: #122117;
  color: #3fb950;
  border-color: #2ea04366;
}

.ui.red.message {
  background-color: #2d1215;
  color: #f85149;
  border-color: #f8514966;
}

.ui.yellow.message {
  background-color: #2e1e09;
  color: #d29922;
  border-color: #d2992266;
}

.ui.blue.message {
  background-color: #0c2d6b;
  color: #58a6ff;
  border-color: #388bfd66;
}

.ui.info.message {
  background-color: #0c2d6b;
  color: #58a6ff;
  border-color: #388bfd66;
}

.ui.warning.message {
  background-color: #2e1e09;
  color: #d29922;
  border-color: #d2992266;
}

.ui.error.message {
  background-color: #2d1215;
  color: #f85149;
  border-color: #f8514966;
}

.ui.success.message {
  background-color: #122117;
  color: #3fb950;
  border-color: #3fb95066;
}

/* Segment backgrounds */
.ui.segment {
  background-color: #0d1117;
  border-color: #30363d;
}

.ui.segments > .segment {
  border-color: #30363d;
}

.ui.segments > .segment:first-child {
  border-top-color: #30363d;
}

/* Comments */
.comment .content {
  background: #0d1117;
  border-color: #30363d;
}

.comment .content::before {
  border-right-color: #30363d;
}

/* Timeline */
.ui.timeline {
  border-color: #30363d;
}

.ui.timeline .timeline-item {
  border-color: #30363d;
}

.ui.timeline .timeline-item::before {
  background-color: #30363d;
}

/* Review box */
.review-box {
  border-color: #30363d;
}

/* Tab menu */
.ui.tabular.menu .item {
  border-color: #30363d;
}

.ui.tabular.menu .active.item {
  border-color: #30363d;
  background-color: #0d1117;
}

/* Cards */
.ui.card {
  background-color: #0d1117;
  border-color: #30363d;
}

.ui.card > .content {
  border-color: #30363d;
}

/* Sidebar */
.ui.secondary.menu .item {
  color: #8b949e;
}

.ui.secondary.menu .active.item {
  color: #e6edf3;
  border-color: #388bfd;
}

/* Form */
.ui.form .field label {
  color: #e6edf3;
}

.ui.form .field .label {
  color: #e6edf3;
}

/* Pagination */
.ui.pagination.menu .item {
  background-color: #0d1117;
  color: #e6edf3;
  border-color: #30363d;
}

.ui.pagination.menu .active.item {
  background-color: #21262d;
  color: #ffffff;
  border-color: #30363d;
}

.ui.pagination.menu .item:hover {
  background-color: #161b22;
}

/* Dropdown */
.ui.dropdown .menu {
  background-color: #161b22;
  border-color: #30363d;
}

.ui.dropdown .menu > .item {
  color: #e6edf3;
}

.ui.dropdown .menu > .item:hover {
  background-color: #21262d;
}

/* Tooltip */
.tooltip {
  background-color: #1b1f24;
  color: #ffffff;
  border-color: #30363d;
}

/* Commit list */
.commit-list .commit {
  border-color: #30363d;
}

/* File tree */
.file-tree {
  background-color: #0d1117;
}

/* Branch list */
.branch-list {
  background-color: #0d1117;
}

/* Milestone */
.ui.milestone .progress .bar {
  background-color: #388bfd;
}

/* Repository list */
.ui.repository.list,
.ui.user.list {
  background: #0d1117;
  border: 1px solid #30363d;
  padding: 1em;
  border-radius: 6px;
}

/* List items */
.ui.list .list > .item > .content,
.ui.list > .item > .content {
  color: unset;
}

.ui.list .list > .item .description,
.ui.list > .item .description {
  color: #8b949e;
}

/* Tabular menu */
.ui.tabular.menu {
  border-color: #30363d;
}

/* Search */
.ui.search .prompt {
  border-color: #30363d;
  background-color: #0d1117;
  color: #e6edf3;
}

.ui.search .prompt:focus {
  border-color: #388bfd;
}

/* Progress bar */
.ui.progress .bar {
  background-color: #388bfd;
}

.ui.progress {
  background-color: #21262d;
}

/* Hide licenses link in footer */
.page-footer a[href$="licenses.txt"] {
  display: none !important;
}

/* Hide help link in navbar and user dropdown */
#navbar a.item[target="_blank"][href="https://docs.gitea.com"] {
  display: none !important;
}

/* Invert emojis that are hard to read in dark mode */
.emoji[aria-label="check mark"],
.emoji[aria-label="currency exchange"],
.emoji[aria-label="TOP arrow"],
.emoji[aria-label="END arrow"],
.emoji[aria-label="ON! arrow"],
.emoji[aria-label="SOON arrow"],
.emoji[aria-label="heavy dollar sign"],
.emoji[aria-label="copyright"],
.emoji[aria-label="registered"],
.emoji[aria-label="trade mark"],
.emoji[aria-label="multiply"],
.emoji[aria-label="plus"],
.emoji[aria-label="minus"],
.emoji[aria-label="divide"],
.emoji[aria-label="curly loop"],
.emoji[aria-label="double curly loop"],
.emoji[aria-label="wavy dash"],
.emoji[aria-label="paw prints"],
.emoji[aria-label="musical note"],
.emoji[aria-label="musical notes"] {
  filter: invert(100%) hue-rotate(180deg);
}
