
/*LOGIN*/
.hero-section {
    background-color: var(--app-nav-bg);
}
/* Logotipo dentro da caixa do login: 15% mais pequeno que os 102px de antes. */
.login-logo-box img {
    height: 87px;
    width: auto;
    max-width: 100%;
}
.footerV2 {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    color: #fff;
    margin-bottom: .75rem !important;
}

.footerV2 a, .footerV2 a:hover, .footerV2 a:focus {
    color: inherit;
}
.row-footer {
    color: #fff;
}
.navbar>.container, .navbar>.container-fluid, .navbar>.container-lg, .navbar>.container-md, .navbar>.container-sm, .navbar>.container-xl, .navbar>.container-xxl {
    justify-content: center;
}
/*ADMIN*/
.app-logo ul li {
    width: 100%;
}

.app-logo>img, .app-logo>svg {
    height: 60px;
    /* o tema fixa width/min-width (--logo-width): sem isto a imagem fica achatada */
    width: auto;
    min-width: 0;
    margin-top: 3rem;
    margin-bottom: 2rem;
}
.app-sidebar .app-logo {
    display: flex;
    justify-content: center;
}
.app-sidebar .app-logo>img {
    height: 61px;
}
.primary-nav ul {
    flex-direction: column !important;
}

.primary-nav ul li {
    width: 100% !important;
    flex-shrink: 0;
}
.navbar-footer {
	 margin: 0;
	 padding: 1rem 0.5rem 1.25rem 0.5rem;
	 display: flex;
	 flex-direction: column;
	 gap: 0.125rem;
	 border-top: 1px solid rgba(0, 0, 0, 0.07);
	 background-color: #0961a5;
	 background-image: linear-gradient(270deg, rgba(171, 53, 214, 0.18), transparent);
	 width: var(--menu-width)!important;
}
 .navbar-footer .links {
	 display: flex;
	 flex-direction: row;
	 justify-content: center;
	 gap: 0.75rem;
	 margin-bottom: 0.5rem;
}
 .navbar-footer .links a {
	 position: relative;
	 cursor: pointer;
}
 .navbar-footer .links a svg {
	 fill: rgba(255, 255, 255, 0.2);
	 stroke: rgba(255, 255, 255, 0.4);
	 flex-shrink: 0;
	 width: 1.25rem;
	 height: 1.25rem;
	 display: block;
	 stroke-width: 1px;
}
 .navbar-footer .links a svg.active svg {
	 stroke: rgba(255, 255, 255, 0.9);
	 color: #fff;
}
 .navbar-footer .links a .tooltip-text {
	 visibility: hidden;
	 background-color: #333;
	 color: #fff;
	 font-size: 0.75rem;
	 color: rgba(255, 255, 255, 0.6);
	 font-weight: 400;
	 text-align: center;
	 padding: 0.25rem 0.5rem;
	 border-radius: 0.25rem;
	 position: absolute;
	 z-index: 1;
	 bottom: 125%;
	 left: 50%;
	 transform: translateX(-50%);
	 white-space: nowrap;
	 opacity: 0;
	 transition: opacity 0.3s;
}
 .navbar-footer .links a:hover .tooltip-text {
	 visibility: visible;
	 opacity: 1;
}
 .navbar-footer .credits {
	 text-align: center;
	 font-size: 0.75rem;
	 color: rgba(255, 255, 255, 0.6);
	 font-weight: 400;
}
 .navbar-footer .credits.copyright {
	 font-size: 0.6rem;
	 white-space: nowrap;
}
 .navbar-footer .credits a {
	 color: #fff;
     text-decoration:none !important;
}
.app-footer, .nav-footer {
    display: none !important;
}
 /* Wizard: "Guardar e continuar" a laranja nos passos intermédios; "Publicar" (Revisão) fica verde */
.btn-wizard-next {
    --bs-btn-color: #fff;
    --bs-btn-bg: #fd7e14;
    --bs-btn-border-color: #fd7e14;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #e8690b;
    --bs-btn-hover-border-color: #e8690b;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #d35f09;
    --bs-btn-active-border-color: #d35f09;
    --bs-btn-focus-shadow-rgb: 253, 126, 20;
}
/* Barra lateral: Logout como botão azul claro, à largura toda, alinhado com o
   Filter (o .primary-nav e o filtro têm ambos 1.5rem de margem lateral) */
.primary-nav .nav-logout {
    padding: 1rem 0;
}
.primary-nav .nav-logout .btn-logout {
    width: 100%;
}
.btn-logout {
    --bs-btn-color: #0b3d63;
    --bs-btn-bg: #8fd3fe;
    --bs-btn-border-color: #8fd3fe;
    --bs-btn-hover-color: #0b3d63;
    --bs-btn-hover-bg: #b5e2ff;
    --bs-btn-hover-border-color: #b5e2ff;
    --bs-btn-active-color: #0b3d63;
    --bs-btn-active-bg: #6cc4fd;
    --bs-btn-active-border-color: #6cc4fd;
    font-weight: 600;
    padding: 0.45rem 1.5rem;
    border-radius: 2rem;
}

/* Formulários do Backoffice: respiro entre o último campo e os botões Guardar/Cancelar
   (o bloco do botão submit, em todos os create/edit). */
.card-body form .form-group:has(> button[type="submit"]) {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, .08);
}
.media-picker .help-block { display: block; margin-top: .5rem; }

/* Etiquetas com classes do Bootstrap 4 (badge-info, label-info…) nas páginas antigas: no tema
   atual (Bootstrap 5) não têm fundo e o texto branco não se lia. */
.badge.badge-info, .label.label-info { background-color: #cfe2ff; color: #052c65; }
.badge.badge-primary { background-color: var(--bs-primary, #0d6efd); color: #fff; }
.badge.badge-success { background-color: #d1e7dd; color: #0a3622; }
.badge.badge-danger { background-color: #f8d7da; color: #58151c; }
.badge.badge-warning { background-color: #fff3cd; color: #664d03; }
.badge.badge-secondary, .badge.badge-dark { background-color: #e2e3e5; color: #2b2f32; }
.label.label-info { display: inline-block; padding: .25em .5em; border-radius: .25rem; font-size: .75em; margin: 0 .25rem .25rem 0; }
