/* AppyShift Files - brand theme for SFTPGo
   Navy #015c7f (wordmark "Appy"), teal #008aad (icon), yellow #facc15 ("Shift") */

:root, [data-bs-theme=light] {
  --bs-primary: #015c7f;
  --bs-primary-rgb: 1, 92, 127;
  --bs-primary-active: #01465f;
  --bs-primary-light: #e6f1f5;
  --bs-primary-clarity: rgba(1, 92, 127, 0.2);
  --bs-primary-inverse: #ffffff;
  --bs-primary-bg-subtle: #cce0e8;
  --bs-primary-border-subtle: #99c1d1;
  --bs-primary-text-emphasis: #01384d;
  --bs-link-color: #015c7f;
  --bs-link-color-rgb: 1, 92, 127;
  --bs-link-hover-color: #008aad;
  --bs-link-hover-color-rgb: 0, 138, 173;
  --bs-component-active-bg: #015c7f;
  --bs-component-hover-color: #015c7f;
  --bs-text-primary: #015c7f;
  --bs-focus-ring-color: rgba(250, 204, 21, 0.45);
}

[data-bs-theme=dark] {
  --bs-primary: #0aa3c9;
  --bs-primary-rgb: 10, 163, 201;
  --bs-primary-active: #008aad;
  --bs-primary-light: #0d2a33;
  --bs-primary-clarity: rgba(10, 163, 201, 0.2);
  --bs-primary-inverse: #ffffff;
  --bs-link-color: #3cc0e0;
  --bs-link-hover-color: #facc15;
  --bs-component-active-bg: #0aa3c9;
  --bs-text-primary: #3cc0e0;
  --bs-focus-ring-color: rgba(250, 204, 21, 0.45);
}

/* Yellow focus ring to echo "Shift" */
.form-control:focus, .form-select:focus { border-color: #facc15 !important; }
.btn.btn-primary:focus-visible { box-shadow: 0 0 0 .25rem rgba(250, 204, 21, .45); }

/* ---- Full wordmark logo instead of icon + name ---- */
/* Login, 2FA, password reset, admin setup, share login */
.row:has(> .col-5 img[alt="Logo"]) > .col-5 { flex: 0 0 100%; max-width: 100%; text-align: center; }
.row:has(> .col-5 img[alt="Logo"]) > .col-7 { display: none; }
.row > .col-5 img[alt="Logo"] { height: auto !important; width: 100%; max-width: 340px; }

/* Message / share download / share upload pages */
.mb-12 > :has(> img[alt="Logo"]) + * { display: none; }
.mb-12 img[alt="Logo"] { height: auto !important; width: 100%; max-width: 360px; }

/* Signed-in sidebar (desktop) */
.app-sidebar-logo img[alt="Logo"] {
  height: auto !important; width: 200px; box-sizing: border-box;
  background: #ffffff; border-radius: 10px; padding: 8px 12px;
}
.app-sidebar-logo > span { display: none; }

/* Hide the "Go to ..." link from the client login to the admin login */
a[href$="/web/admin/login"] { display: none !important; }

/* Mobile header / share header: keep height, let width follow */
img.h-30px[alt="Logo"], img.h-50px[alt="Logo"] { width: auto; }
