/*
 * NXT Custom CSS Compatibility Bridge
 * Makes third-party Cockpit/app-* CSS templates work better with this panel.
 * This file is intentionally small and safe.
 */

body .app-header,
body .topbar,
body .navbar-header,
body #page-topbar {
  background: inherit;
}

body .app-sidebar,
body .panel-sidebar,
body .navbar-vertical {
  background: inherit;
}

body .app-content,
body .main-content,
body .page-content {
  min-height: 100vh;
}

/* Alias common Cockpit card ideas to NXT dashboard classes */
body .card,
body .cockpit-card,
body .dashboard-ref-panel,
body .dashboard-ref-stat {
  isolation: isolate;
}

/* Keep Custom CSS Manager textarea readable even under aggressive themes */
.nxt-custom-css-widget textarea[name="custom_css"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  background: #07111f !important;
  color: #dbeafe !important;
}