/* lake — minimalist dark chrome on top of forgejo-dark,
   palette taken from the "TM Console" design prototype */

/* ---------- palette override (dark theme only) ---------- */

html[data-theme="forgejo-dark"] {
  /* backgrounds */
  --color-body: #0b0d10;
  --color-box-body: #12161c;
  --color-box-body-highlight: #1e242d;
  --color-box-header: #0e1116;
  --color-card: #12161c;
  --color-menu: #0e1116;
  --color-nav-bg: #0e1116;
  --color-nav-hover-bg: #1e242d;
  --color-secondary-nav-bg: #0e1116;
  --color-header-wrapper: #0e1116;
  --color-footer: #0e1116;
  --color-code-bg: #0d1015;

  /* inputs */
  --color-input-background: #0d1015;
  --color-input-text: #dfe3e8;
  --color-input-border: #1c212a;
  --color-input-border-hover: #39414d;

  /* borders & neutral buttons */
  --color-secondary: #1c212a;
  --color-secondary-bg: #12161c;
  --color-light-border: #262b33;
  --color-button: #1e242d;

  /* text */
  --color-text: #dfe3e8;
  --color-text-dark: #eef1f4;
  --color-text-light: #a3abb6;
  --color-text-light-1: #8a919c;
  --color-text-light-2: #6b7482;
  --color-text-light-3: #5b626d;

  /* primary: mint accent, dark text on filled buttons */
  --color-primary: #7fd1b9;
  --color-primary-contrast: #08130f;
  --color-primary-hover: #a6e3d0;
  --color-primary-active: #4f9d86;
  --color-accent: #7fd1b9;
  --color-primary-dark-1: #6fc0a8;
  --color-primary-dark-2: #5fae97;
  --color-primary-dark-3: #4f9d86;
  --color-primary-dark-4: #418572;
  --color-primary-dark-5: #35705f;
  --color-primary-dark-6: #2a5a4c;
  --color-primary-dark-7: #1f453a;
  --color-primary-light-1: #8fd8c3;
  --color-primary-light-2: #a6e3d0;
  --color-primary-light-3: #b8eadb;
  --color-primary-light-4: #cbf0e5;
  --color-primary-light-5: #daf5ec;
  --color-primary-light-6: #e8faf4;
  --color-primary-light-7: #f4fdfa;
  --color-primary-alpha-10: rgba(127, 209, 185, 0.1);
  --color-primary-alpha-20: rgba(127, 209, 185, 0.2);
  --color-primary-alpha-30: rgba(127, 209, 185, 0.3);
  --color-primary-alpha-40: rgba(127, 209, 185, 0.4);
  --color-primary-alpha-50: rgba(127, 209, 185, 0.5);
  --color-primary-alpha-60: rgba(127, 209, 185, 0.6);
  --color-primary-alpha-70: rgba(127, 209, 185, 0.7);
  --color-primary-alpha-80: rgba(127, 209, 185, 0.8);
  --color-primary-alpha-90: rgba(127, 209, 185, 0.9);
}

/* browser autofill: keep our dark input, readable text (Safari paints
   its own light background otherwise) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
/* out-specific Forgejo's own `.ui.form .field.field input:-webkit-autofill` rule */
html .ui.form .field.field input:-webkit-autofill,
html .ui.form .field.field input:-webkit-autofill:hover,
html .ui.form .field.field input:-webkit-autofill:focus,
html .ui.form .error.error input:-webkit-autofill,
html .ui.form .info.info input:-webkit-autofill,
html .ui.form .success.success input:-webkit-autofill,
html .ui.form .warning.warning input:-webkit-autofill {
  /* !important: Forgejo's own autofill rule paints --color-primary-light-6
     with higher specificity, washing out the dark input */
  -webkit-text-fill-color: #dfe3e8 !important;
  -webkit-box-shadow: 0 0 0 1000px #0d1015 inset !important;
  box-shadow: 0 0 0 1000px #0d1015 inset !important;
  caret-color: #dfe3e8 !important;
  border-color: #1c212a !important;
}

/* ---------- minimal chrome ---------- */

/* no logos anywhere (navbar, login card, favicon stays default) */
#navbar-logo,
img.logo {
  display: none !important;
}

/* no footer: version string, powered-by and link row */
footer {
  display: none !important;
}

/* quieter panels: drop decorative borders and shadows */
.ui.segment,
.ui.attached.segment {
  box-shadow: none;
}

/* login screen: more air above the form since the logo is gone */
.user.signin {
  margin-top: 10vh;
}
