/* =======================================================
   1. OCULTAÇÃO DE MENUS E INTERFACE (CONFIGURAÇÕES GERAIS)
   ======================================================= */
li[data-cy-files-navigation-settings-button],
li[data-cy-files-navigation-item="personal"],
li[data-cy-files-navigation-item="extstoragemounts"],
li[data-cy-files-navigation-item="folders"],
li[data-cy-files-navigation-item="tags"],
.app-menu,
li[class*="userStatusMenuItem"],
a#help,
a#settings,
a#accessibility_settings,
a#firstrunwizard_about,
li#firstrunwizard_about,
li:has(> div > a#help),
li:has(> div > a#settings),
li:has(> div > a#accessibility_settings),
.account-management__settings-toggle {
    display: none !important;
}

/* =======================================================
   2. TELA DE LOGIN: BACKGROUND E LOGO
   ======================================================= */
#body-login {
    background: linear-gradient(rgba(45, 123, 65, 0.7), rgba(45, 123, 65, 0.7)), 
                url('../img/background.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #2D7B41 !important;
}

#body-login .logo {
    width: 300px !important;
    height: 120px !important;
    background-size: contain !important;
    background-position: center !important;
}

.login-additional,
#webauthn-login,
.webauthn-link,
#body-login button.button-vue--tertiary.button-vue--text-only {
    display: none !important;
}

/* =======================================================
   3. CABEÇALHO INTERNO: LOGO FLEXÍVEL
   ======================================================= */
#header #nextcloud {
    display: flex !important;
    align-items: center !important;
    padding-inline-start: 20px !important;
}

#header .logo.logo-icon {
    display: block !important;
    position: static !important;
    width: 200px !important;
    height: 40px !important;
    background-size: contain !important;
    background-position: center left !important;
    background-repeat: no-repeat !important;
    margin-right: 20px !important;
}

#header .header-appname {
    display: none !important;
}

.app-menu {
    margin-left: 20px !important;
}

/* =======================================================
   4. ASSINATURA DISCRETA NO AMBIENTE INTERNO
   ======================================================= */
#app-navigation {
    position: relative !important;
}

#app-navigation::after {
    content: "KS TEC CLOUD - VALENÇA 2026";
    display: block !important;
    position: absolute !important;
    bottom: 15px !important;
    left: 0 !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 11px !important;
    color: var(--color-text-maxcontrast, #888888) !important;
    letter-spacing: 0.5px !important;
    pointer-events: none !important;
}

/* =======================================================
   13. OCULTAR BARRA DE BUSCA (GLOBAL E LOCAL)
   ======================================================= */
.header-search,
.search,
#search,
.unified-search {
    display: none !important;
}

/* =======================================================
   13. OCULTAÇÃO FORÇADA DA BUSCA (SOLUÇÃO DEFINITIVA)
   ======================================================= */
/* Oculta a barra de busca pelo componente Vue identificado */
search.unified-search-input,
.unified-search-input {
    display: none !important;
}

/* Oculta qualquer elemento que contenha o texto de busca para garantir */
.unified-search-input__button {
    display: none !important;
}
