/* DialSpark branding overrides for SFTPGo.
 * Source of truth: /etc/sftpgo/branding/dialspark.css (persistent, upgrade-safe).
 * Redeployed into the package static dir by the sftpgo.service ExecStartPre drop-in
 * (/etc/systemd/system/sftpgo.service.d/branding.conf), then served at
 * /static/branding/dialspark.css and referenced via httpd branding extra_css.
 *
 * Problem it solves: SFTPGo uses ONE logo per interface for both the light login
 * page and the DARK post-login sidebar. The DialSpark logo is dark-on-transparent,
 * so it reads well on the light login but disappears on the dark sidebar. Below we
 * place a light "chip" behind the sidebar logo ONLY, so the full-colour logo stays
 * readable on dark. Scoped to #kt_app_sidebar, so the login page logo is untouched.
 */

#kt_app_sidebar .app-sidebar-logo {
    display: inline-block;
    width: fit-content;
    max-width: fit-content;
    background: #ffffff;
    padding: 7px 12px;
    border-radius: 8px;
    line-height: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Keep the logo a sensible size inside the chip. */
#kt_app_sidebar .app-sidebar-logo img.app-sidebar-logo-default {
    height: 34px !important;
    width: auto;
}

/* Hide the redundant branding text that sits BESIDE the logo (the logo already
 * shows the "DialSpark" wordmark). short_name is deliberately kept non-empty so the
 * "Go to Admin Portal / Go to Client Portal" cross-login link on the sign-in page
 * still reads correctly (that link is a separate <a><span>, not touched here).
 *   - h1.text-gray-900.mb-3.ms-3 : logo-header text on login / two-factor /
 *     reset-password / forgot-password / message pages.
 *   - sidebar span              : logo label in the dark post-login sidebar. */
h1.text-gray-900.mb-3.ms-3 {
    display: none !important;
}
#kt_app_sidebar .app-sidebar-logo span {
    display: none !important;
}
