/* theme-name: MAWE TI */
:root[data-glpi-theme=mawe_ti],
:root:has(body.welcome-anonymous) {
  --tblr-primary-rgb: 177, 35, 56;
  --tblr-primary: #b12338;
  --tblr-primary-fg: #ffffff;
  --tblr-primary-darken: #8f1b2c;
  --tblr-link-color-rgb: 177, 35, 56;
  --tblr-link-color: #b12338;
  --tblr-link-hover-color: #8f1b2c;
  --tblr-body-bg: #f4f5f7;
  --tblr-navbar-color: #141517;
  --glpi-mainmenu-bg: #141517;
  --glpi-mainmenu-fg: #f1f5f9;
  --glpi-mainmenu-fg-muted: #9ca3af;
  --glpi-mainmenu-active-bg: #b12338;
  --glpi-palette-color-1: #141517;
  --glpi-palette-color-2: #0b0c0e;
  --glpi-palette-color-3: #d9364e;
  --glpi-palette-color-4: #b12338;
  --glpi-form-header-fg: #b12338;
  --glpi-helpdesk-header: #f8e5e8;
  --glpi-illustrations-gradient-1: #fcecee;
  --glpi-illustrations-gradient-2: #e9a3ae;
  --glpi-illustrations-gradient-3: #b12338;
  --glpi-logo-light: url("https://mawe.com.br/logo-mawe.jpg");
  --glpi-logo-light-reduced: url("https://mawe.com.br/logo-mawe.jpg");
  --glpi-logo-dark: url("https://mawe.com.br/logo-mawe.jpg");
  --glpi-logo-dark-reduced: url("https://mawe.com.br/logo-mawe.jpg");
  --glpi-logo-dark-login: url("https://mawe.com.br/logo-mawe.jpg");
  --glpi-logo-light-login: url("https://mawe.com.br/logo-mawe.jpg");
  --glpi-logo: url("https://mawe.com.br/logo-mawe.jpg");
  --glpi-logo-reduced: url("https://mawe.com.br/logo-mawe.jpg");
}

/* Tela de Login (MAWE TI) */
body.welcome-anonymous {
  background: radial-gradient(circle at top center, #261419 0%, #141517 55%, #0d0e10 100%) !important;
  min-height: 100vh;
}

.page-anonymous .glpi-logo {
  content: none !important;
  display: inline-block !important;
  width: 170px !important;
  height: 104px !important;
  background: url("https://mawe.com.br/logo-mawe.jpg") center center/contain no-repeat #0b0c0e !important;
  border-radius: 14px !important;
  border: 1px solid rgba(177, 35, 56, 0.45) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
  margin-bottom: 1.25rem !important;
}

.page-anonymous .main-content-card {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 4px solid #b12338 !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}

.page-anonymous .text-muted,
.page-anonymous .text-muted a,
.page-anonymous > div > div > .text-center > a {
  color: rgba(241, 245, 249, 0.65) !important;
}

.page-anonymous .text-muted a:hover,
.page-anonymous > div > div > .text-center > a:hover {
  color: #ffffff !important;
}

/* Sidebar & Logo Interna (MAWE TI) */
:root[data-glpi-theme=mawe_ti] .page .glpi-logo,
:root[data-glpi-theme=mawe_ti] .navbar-brand .glpi-logo {
  background: url("https://mawe.com.br/logo-mawe.jpg") center center/contain no-repeat !important;
  width: 120px !important;
  height: 54px !important;
  border-radius: 8px !important;
  display: inline-block !important;
}

:root[data-glpi-theme=mawe_ti] .navbar-collapsed .navbar-brand .glpi-logo {
  background: url("https://mawe.com.br/logo-mawe.jpg") center center/cover no-repeat !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
}

:root[data-glpi-theme=mawe_ti] aside.sidebar {
  background-color: #141517 !important;
  border-right: 1px solid #24262b !important;
}

:root[data-glpi-theme=mawe_ti] aside.sidebar .nav-link.active,
:root[data-glpi-theme=mawe_ti] aside.sidebar .nav-link:hover,
:root[data-glpi-theme=mawe_ti] aside.sidebar .dropdown-item.active,
:root[data-glpi-theme=mawe_ti] aside.sidebar .dropdown-item:hover {
  background-color: #b12338 !important;
  color: #ffffff !important;
  border-radius: 6px;
}

/* Botoes primarios e controles */
:root[data-glpi-theme=mawe_ti] .btn-primary,
body.welcome-anonymous .btn-primary {
  background-color: #b12338 !important;
  border-color: #b12338 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

:root[data-glpi-theme=mawe_ti] .btn-primary:hover,
:root[data-glpi-theme=mawe_ti] .btn-primary:focus,
body.welcome-anonymous .btn-primary:hover,
body.welcome-anonymous .btn-primary:focus {
  background-color: #8f1b2c !important;
  border-color: #8f1b2c !important;
  color: #ffffff !important;
}

:root[data-glpi-theme=mawe_ti] .form-check-input:checked,
body.welcome-anonymous .form-check-input:checked {
  background-color: #b12338 !important;
  border-color: #b12338 !important;
}

:root[data-glpi-theme=mawe_ti] .form-control:focus,
:root[data-glpi-theme=mawe_ti] .form-select:focus,
body.welcome-anonymous .form-control:focus,
body.welcome-anonymous .form-select:focus {
  border-color: #b12338 !important;
  box-shadow: 0 0 0 0.2rem rgba(177, 35, 56, 0.2) !important;
}