/**
 * Netra Pulseview Styles (pulseview.css)
 * 
 * Executive support console styling, login card, top impersonation banner,
 * and header Logs button.
 */

:root {
  --netra-primary: #6366f1;
  --netra-primary-hover: #4f46e5;
  --netra-bg-dark: #0f172a;
  --netra-surface-dark: #1e293b;
  --netra-border-dark: #334155;
  --netra-text-light: #f8fafc;
  --netra-text-muted: #94a3b8;
  --netra-accent-cyan: #06b6d4;
  --netra-accent-purple: #a855f7;
}

/* ========================================================= */
/* 1. Executive Support Login View                           */
/* ========================================================= */
.netra-login-overlay {
  position: fixed;
  inset: 0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 99999;
}

.netra-login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 2.5rem 2.25rem;
  color: var(--text, #1a1a1a);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

.netra-login-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.netra-brand-title {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary, #e65c00);
  line-height: 1;
  text-transform: uppercase;
}

.netra-brand-logo-right {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.netra-login-intro {
  margin-bottom: 1.75rem;
}

.netra-login-intro h2 {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0;
  color: var(--text, #1a1a1a);
  letter-spacing: -0.02em;
}

.netra-form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.netra-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}

.netra-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.netra-input-wrapper input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #1a1a1a;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.netra-input-wrapper input:focus {
  border-color: var(--primary, #e65c00);
  box-shadow: 0 0 0 3px rgba(230, 92, 0, 0.15);
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.btn-toggle-password:hover {
  color: var(--primary, #e65c00);
}

.netra-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

.netra-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.netra-checkbox-label input {
  accent-color: var(--primary, #e65c00);
}

.netra-login-error {
  display: none;
  padding: 0.75rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #dc2626;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.btn-netra-login-submit {
  width: 100%;
  padding: 0.85rem;
  background-color: var(--primary, #e65c00);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(230, 92, 0, 0.35);
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-netra-login-submit:hover {
  background-color: var(--primary-hover, #ff7b24);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230, 92, 0, 0.45);
}

.netra-login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.netra-login-divider::before,
.netra-login-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.netra-login-divider span {
  padding: 0 0.75rem;
}

.btn-quick-demo-login {
  width: 100%;
  padding: 0.7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
}

.btn-quick-demo-login:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.netra-2fa-notice {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
}


/* ========================================================= */
/* 2. Top Header Edge-to-Edge & Pure Opaque White            */
/* ========================================================= */
.app-header-container,
.app-header-container .navbar,
.app-header-container .navbar.scrolled {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--border, #e2e8f0) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

.app-header-container .navbar .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.netra-support-banner {
  display: none !important;
}

/* ========================================================= */
/* 3. Header Controls & Clean Text Links                     */
/* ========================================================= */
.netra-nav-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Unified Top Header Brand & Navigation Links */
.header-netra-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  user-select: none;
}

.netra-nav-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.netra-nav-brand-title {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary, #e65c00);
  line-height: 1;
}

.netra-nav-brand-slash {
  font-size: 1.15rem;
  font-weight: 600;
  color: #94a3b8;
  margin: 0 1px;
}

.netra-nav-brand-sub {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1;
}

.netra-view-grey {
  color: #64748b;
  font-weight: 500;
}

/* Sleek All-Caps Header Text Links (No bulky boxes) */
.netra-header-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-right: 0.5rem;
}

.nav-tab-link {
  font-family: var(--font-sans, sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  padding: 0.35rem 0;
  border-radius: 0;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
}

.nav-tab-link:hover:not(.disabled) {
  color: var(--primary, #e65c00);
  background: transparent !important;
}

.nav-tab-link.active,
.nav-tab-link.disabled {
  color: var(--primary, #e65c00) !important;
  background: transparent !important;
  border-bottom: 2px solid var(--primary, #e65c00) !important;
  cursor: default;
  pointer-events: none;
}

.netra-user-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.65rem 0.35rem 0.5rem;
  background: #f1f5f9;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  font-size: 0.85rem;
}

.netra-role-tag {
  background: #4f46e5;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.05em;
}

.netra-user-name {
  font-weight: 600;
  color: #1e293b;
}

.btn-netra-signout {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.btn-netra-signout:hover {
  color: #dc2626;
}

/* Balanced vertical spacing on the Emulator page */
body.netra-app .analyzer-main {
  padding-top: 58px !important;
}

body.netra-app .dashboard-section {
  padding: 2.25rem 0 3.5rem !important;
}

body.netra-app .dashboard-header-bar {
  margin-bottom: 1.5rem !important;
  padding-bottom: 1rem !important;
}

/* Simple Support Console Grey Footer */
.app-simple-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1.25rem 0;
  width: 100%;
  margin-top: auto;
}

.app-simple-footer .footer-container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.app-simple-footer .copyright-text {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  font-family: var(--font-sans, sans-serif);
}

.nav-tab-link.disabled-empty {
  opacity: 0.38 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
}

