/* ForefrontRemote Branding Override System */
/* This file provides resilient branding overrides that work across application updates */

/* Hide original branding elements */
.ant-layout-header .ant-layout-header-logo,
.ant-layout-header .ant-layout-header-title,
.ant-layout-header .ant-layout-header-branding {
    display: none !important;
}

/* Hide original footer branding */
.ant-layout-footer .ant-layout-footer-branding,
.ant-layout-footer .ant-layout-footer-links,
.ant-layout-footer .ant-layout-footer-copyright {
    display: none !important;
}

/* Hide license renewal button */
.ant-btn[style*="float:right"][type="primary"]:has-text("Renew"),
.ant-btn[style*="float:right"][type="primary"]:has-text("Upgrade"),
.ant-btn[style*="float:right"][type="primary"]:has-text("License") {
    display: none !important;
}

/* Hide GitHub icon/link */
.ant-layout-footer a[href*="github"],
.ant-layout-footer .anticon-github,
.ant-layout-footer .ant-layout-footer-github {
    display: none !important;
}

/* Override page title */
title {
    content: "ForefrontRemote Console" !important;
}

/* Override loading screen branding */
#span-console {
    content: "ForefrontRemote Console" !important;
}

/* Force text replacement using CSS content */
.ant-layout-header,
.ant-layout-header *,
.ant-layout-content,
.ant-layout-content * {
    font-family: inherit !important;
}

/* Minimal CSS overrides to avoid breaking the display */
/* Only hide specific elements, don't force positioning changes */

/* Hide any incorrectly placed download buttons */
.forefront-download-button {
    display: none !important;
}

/* ForefrontRemote branding overlay styles */
.forefront-branding-overlay {
    position: relative;
    z-index: 9999;
}

.forefront-header-branding {
    display: flex;
    align-items: center;
    color: #1890ff;
    font-weight: 500;
    font-size: 16px;
}

.forefront-footer-branding {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 16px;
}

.forefront-download-button {
    margin-top: 20px;
    width: 100%;
    height: 40px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.forefront-download-button:hover {
    background: #40a9ff;
}

.forefront-download-button:active {
    background: #096dd9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .forefront-header-branding {
        font-size: 14px;
    }

    .forefront-footer-branding {
        font-size: 11px;
    }
}
