:root {
  --color-main-text: #EFCC13 !important;
  --color-primary-element-text: #EFCC13 !important;
  --background-image-color-text: #EFCC13 !important;
  --color-background-plain: #330000 !important;
  --color-primary: #330000 !important;
  --color-primary-element: #330000 !important;
}

/* Active navigation entries & menu entries - Dark Wine Background */
.app-navigation-entry__active,
.app-navigation-entry.active,
.app-navigation-entry-link.active,
.router-link-active,
.router-link-exact-active,
.app-navigation-entry[aria-current="page"],
.app-navigation__list li.active,
.header-item__menu .menu-entry--active {
  background-color: #330000 !important;
  color: #EFCC13 !important;
}

.app-navigation-entry:hover,
.header-item__menu .menu-entry:hover {
  background-color: #330000 !important;
}

/* Global Font & Yellow Text */
body, body * {
  font-family: "Courier New", Courier, monospace !important;
  color: #EFCC13 !important;
}

/* Checkboxes in gold/yellow theme */
input[type="checkbox"],
.checkbox-radio-switch,
.checkbox-radio-switch__input,
.checkbox-radio-switch__input:checked,
.checkbox-radio-switch__input + label {
  border-color: #EFCC13 !important;
  accent-color: #EFCC13 !important;
}

/* Ensure file names in files list, table, grid and headers are fully visible */
.files-list__row,
.files-list__name,
.files-list__cell,
.filename,
.nametext,
.innernametext,
.files-filestable tbody tr td,
.files-list__row-name,
.files-list__row-name span,
.files-list__row-name a,
.files-list__row-name-link,
.files-list__row-name-text,
.files-list__row-name-ext {
  visibility: visible !important;
  opacity: 1 !important;
}

button.files-list__row-name-link {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Hide the "Universal access" paragraph (WCAG link) */
p:has(a[href*="w3.org/WAI"]) {
    display: none !important;
}

/* Hide the "Issue tracker / Design team" paragraph (GitHub link) */
p:has(a[href*="github.com/nextcloud/server/issues"]) {
    display: none !important;
}

/* Force yellow icons in header and sidebar */
.header-right .icon,
.header-right img,
.app-navigation-entry__link .icon,
.app-navigation-entry__link img,
.material-design-icon__svg,
.app-menu-main .app-menu-entry img {
  filter: none !important;
  -webkit-filter: none !important;
}

/* Capitalize h1, h2 and underline all headings */
h1, h2 {
  text-transform: uppercase !important;
}
h1, h2, h3, h4, h5, h6 {
  text-decoration: underline !important;
}

/* Logo/header-title overlap fix */
#header .logo,
.logo.logo-icon {
  width: 36px !important;
  inset-inline-start: 10px !important;
}
#nextcloud {
  padding-inline-start: 56px !important;
}

.theming__preview-image {
    display: none !important;
}

#header .header-appname {
  display: flex !important;
  align-items: center;
  position: relative;
  padding-inline-start: 0 !important;
  gap: 12px;
}

#header .header-appname .logo.logo-icon {
  position: relative !important;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* Non-admin Files Creation Controls Restriction */
body.is-non-admin-role #controls .new,
body.is-non-admin-role .files-list__add-button,
body.is-non-admin-role .app-navigation-new-button,
body.is-non-admin-role [data-cy-files-list-action="new"],
body.is-non-admin-role .new-file-menu,
body.is-non-admin-role button.new-file-menu-dropdown,
body.is-non-admin-role button.button-vue--vue-primary.new-file-menu-dropdown,
body.is-non-admin-role button.button-vue--vue-primary[aria-label="New"],
body.is-non-admin-role button.button-vue--vue-primary[aria-label="Create"],
body.is-non-admin-role .files-list__header-actions .new-file-menu-button {
    display: none !important;
}

/* Hide Rate LibreSign and App Store review links */
a[href*="apps.nextcloud.com/apps/libresign"],
.app-navigation-entry[href*="apps.nextcloud.com"],
li:has(a[href*="apps.nextcloud.com"]),
.app-navigation-entry:has(a[href*="apps.nextcloud.com"]) {
    display: none !important;
}

/* PDF Secure View: Block Download and Print Buttons */
.viewer__action--download,
.viewer__action--print,
button[aria-label="Download"]:not(.files-list__row-name-link),
button[aria-label="Print"],
a[download],
.file-actions [data-action="Download"],
.deck-attachment__action--download,
.attachment__action--download,
.deck-card__attachments .icon-download {
    display: none !important;
}

/* Hide Download button in 3-dots action popup menu across all files */
.popover__menu li:has(.icon-download),
.popover__menu button:has(.icon-download),
.popover__menu .action-download,
.v-popper__popper li:has(.icon-download),
.v-popper__popper button:has(.icon-download),
.v-popper__popper .action-download,
.v-popper__wrapper li:has(.icon-download),
.v-popper__wrapper button:has(.icon-download),
li:has(button[aria-label*="Download"]),
button[aria-label*="Download"]:not(.files-list__row-name-link),
.file-actions .action-download,
.file-actions [data-action="Download"],
.file-actions [data-action="download"],
a[data-action="download"],
button[data-action="download"],
.menu-option[data-action="download"],
[data-cy-files-list-row-action="download"],
li:has([data-cy-files-list-row-action="download"]) {
    display: none !important;
}

/* Hide Support LibreSign Section & Buttons */
.support-project-content,
.support-buttons,
.section:has(.support-buttons),
.section:has(.support-project-content),
[data-v-06a09416],
.support-message,
[class*="SupportProject"],
[class*="support-project"],
[class*="supportProject"] {
    display: none !important;
}