/* ============================================
   NEXA CUSTOM BRANDING - SwissBuild - Dark Blue
   ============================================ */

/* Fix login logo sizing */
.page-anonymous .glpi-logo {
  background-size: contain !important;
  width: 220px !important;
  height: 70px !important;
}

/* SIDEBAR LOGO - explicit sizing */
.sidebar .navbar-brand {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    margin: 4px !important;
}

.sidebar .navbar-brand .glpi-logo {
    background-image: url("/pics/logos/logo-nexa.png") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    display: block !important;
    width: 180px !important;
    height: 50px !important;
}

/* Header logo sizing (when not collapsed) */
.navbar-brand .glpi-logo {
    background-size: contain !important;
    width: 200px !important;
    height: 60px !important;
    display: block !important;
}

/* Light blue theme variables */
:root {
    --nexa-primary: #3B82F6;
    --nexa-primary-dark: #2563EB;
    --nexa-primary-light: #60A5FA;
}

/* TOP NAVBAR - dark blue to match sidebar */
.navbar:not(.sidebar), .navbar-expand-sm, .header-nav {
    background-color: #2f3f64 !important;
    border-bottom: 3px solid #3B82F6 !important;
}

/* SIDEBAR - dark blue */
.sidebar {
    background-color: #1a2a47 !important;
    color: #f4f6fa !important;
}

/* Sidebar menu items - white text */
.sidebar .nav-link,
.sidebar .treeview > .nav-link,
.sidebar .treeview-menu .nav-link,
.sidebar .dropdown-item,
.sidebar #navbar-menu .nav-item .nav-link {
    color: #f4f6fa !important;
}

/* Sidebar active/hover */
.sidebar #navbar-menu .nav-item .nav-link.show,
.sidebar #navbar-menu .nav-item .nav-link.active,
.sidebar #navbar-menu .nav-item:hover .nav-link {
    background-color: #3B82F6 !important;
}

/* Primary buttons */
.btn-primary, .btn-submit, input[type="submit"],
button[type="submit"], .btn-primary.active {
    background-color: #2f3f64 !important;
    border-color: #2f3f64 !important;
    color: #ffffff !important;
}
.btn-primary:hover, .btn-primary:focus,
.btn-primary:active {
    background-color: #1a2a47 !important;
    border-color: #1a2a47 !important;
}

/* Top navbar text - white for visibility on dark bg */
.navbar .nav-link,
.navbar .navbar-brand,
.navbar .navbar-text {
    color: #f4f6fa !important;
}

/* Top navbar dropdown */
.navbar .dropdown-item {
    color: #1E3A5F !important;
}

/* Tab underline */
.nav-tabs .nav-link.active {
    border-bottom: 3px solid #3B82F6 !important;
    color: #3B82F6 !important;
}

/* Form focus */
input:focus, select:focus, textarea:focus {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

/* Accent elements */
.badge-primary, .progress-bar {
    background-color: #3B82F6 !important;
}

/* Footer */
.footer, .page-footer {
    background-color: #EFF6FF !important;
}

/* ============================================
   HIDE LICENSE / UPGRADE / SUBSCRIPTION / GLPI NETWORK / LOGIN SOURCE
   ============================================ */
a[href*="subscription"],
a[href*="register"],
a[href*="license"],
a[href*="glpi_network"],
a[href*="glpi-network"],
.license-alert,
.alert-license,
.main-header .subscription-badge,
.dropdown-item[href*="subscription"],
.dropdown-item[href*="license"],
.dropdown-item[href*="glpi_network"],
.alert.alert-info:has(a[href*="glpi-network"]),
.alert.alert-info:has(a[href*="marketplace"][href*="register"]),
.tab-content:has(.alert-info a[href*="glpi-network"]),
.glpi-network-setup-alert,
.glpi-marketplace-register-banner {
    display: none !important;
}
