/* ============================================================
   Pro Networks Sentinel - White-label CSS
   Injected into Pro Networks Sentinel UI via nginx sub_filter
   ============================================================ */

:root {
    --brand-primary: #6366f1;
    --brand-primary-dark: #4f46e5;
    --brand-accent: #a855f7;
    --brand-ink: #0f172a;
}

/* ========== NAVBAR / HEADER ========== */
.navbar,
.navbar-default,
.navbar-inverse,
header nav {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-color: #334155 !important;
}

/* Esconder logo original do Pro Networks Sentinel em qualquer lugar */
.navbar-brand > img,
img[alt*="Pro Networks Sentinel" i],
img[alt*="Pro Networks Sentinel" i],
img[src*="graylog-logo" i] {
    display: none !important;
}

/* Trocar navbar-brand por container com nosso logo */
.navbar-brand,
a.navbar-brand,
header a[href="/"],
header a[href="/streams"]:first-of-type {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 15px !important;
    text-decoration: none !important;
}

.navbar-brand::before {
    content: "";
    display: inline-block;
    width: 140px;
    height: 32px;
    background-image: url('/pronetworks-logo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    vertical-align: middle;
}

.navbar-brand::after {
    content: "Sentinel";
    display: inline-block;
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
    letter-spacing: 0.02em;
    padding-left: 6px;
    border-left: 1px solid #475569;
    line-height: 1;
}

/* Esconder qualquer texto interno original do navbar-brand */
.navbar-brand > * {
    display: none !important;
}

/* ========== ESCONDER MARCA Pro Networks Sentinel ========== */
a[href*="marketplace.graylog"],
a[href*="pronetworks.app.br"],
a[href*="www.graylog"],
a[href*="docs.graylog"],
a[href*="community.graylog"],
a[href*="/system/licenses"] {
    display: none !important;
}

/* Footer */
.gl-footer,
footer[class*="Pro Networks Sentinel" i] {
    display: none !important;
}

/* Badges / botoes Enterprise */
[data-testid*="enterprise" i],
.enterprise-badge,
[class*="Enterprise"] {
    display: none !important;
}

/* ========== TELA DE LOGIN ========== */
.login-box-content,
.form-signin,
form[class*="login" i] {
    position: relative;
    padding-top: 120px !important;
}

/* Logo Pro Networks no topo da tela de login */
.login-box-content::before,
.form-signin::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 60px;
    background-image: url('/pronetworks-logo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(1) brightness(1.5);
}

.login-box h1,
.login-box h2,
.login-box h3 {
    color: var(--brand-primary) !important;
}

/* Ocultar qualquer imagem original na tela de login */
.login-page img,
.login-box img {
    display: none !important;
}

/* ========== FAVICON e title ========== */
/* (favicon eh trocado via HTML sub_filter, nao via CSS) */
