/* ==========================================================================
   MORROS REVOLUTION DESIGN SYSTEM — PSAM UFPE / COMPESA 2026
   World-Class Silicon Valley Engineering & Industrial SCADA Experience
   Ultra-High Craft Glassmorphism, Dynamic Spatial Depth & Tactile Typography
   ========================================================================== */

/* 1. ATMOSPHERIC CANVAS & FOUNDATION */
:root {
  --rev-bg-root: #040814;
  --rev-bg-surface: #070e1e;
  --rev-bg-panel: rgba(11, 22, 45, 0.78);
  --rev-bg-card: rgba(14, 28, 56, 0.75);
  --rev-bg-card-hover: rgba(20, 38, 75, 0.88);
  --rev-bg-input: rgba(4, 9, 22, 0.85);

  --rev-cyan-glow: #38bdf8;
  --rev-cyan-deep: #0284c7;
  --rev-emerald-glow: #10b981;
  --rev-amber-glow: #f59e0b;
  --rev-crimson-glow: #ef4444;

  --rev-border-subtle: rgba(56, 189, 248, 0.14);
  --rev-border-medium: rgba(56, 189, 248, 0.28);
  --rev-border-bright: rgba(56, 189, 248, 0.55);

  --rev-text-title: #ffffff;
  --rev-text-body: #f1f5f9;
  --rev-text-muted: #94a3b8;
  --rev-text-faint: #64748b;

  --rev-shadow-panel: 0 16px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --rev-shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --rev-shadow-hover: 0 20px 48px -8px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html, body {
  background-color: var(--rev-bg-root) !important;
  color: var(--rev-text-body) !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  background-image: 
    radial-gradient(circle at 10% 5%, rgba(14, 165, 233, 0.09) 0px, transparent 45%),
    radial-gradient(circle at 90% 12%, rgba(37, 99, 235, 0.08) 0px, transparent 50%),
    radial-gradient(circle at 50% 95%, rgba(2, 132, 199, 0.07) 0px, transparent 60%) !important;
  background-attachment: fixed !important;
}

/* Blueprint Tech Grid across Workspace */
.workspace-wrapper {
  position: relative !important;
  background: transparent !important;
}

.workspace-wrapper::before {
  content: '' !important;
  position: fixed !important;
  top: 0 !important;
  left: var(--sidebar-w, 270px) !important;
  right: 0 !important;
  bottom: 0 !important;
  background-size: 44px 44px !important;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.024) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.024) 1px, transparent 1px) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.workspace-content {
  position: relative !important;
  z-index: 1 !important;
  padding: 1.8rem 2.2rem 3.5rem !important;
  max-width: 1680px !important;
}

/* 2. SILICON VALLEY COMMAND SIDEBAR */
.sidebar {
  background: linear-gradient(180deg, #070e1e 0%, #050a17 100%) !important;
  border-right: 1px solid var(--rev-border-subtle) !important;
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.45) !important;
  z-index: 250 !important;
}

.sidebar-brand {
  padding: 1.25rem 1.15rem !important;
  border-bottom: 1px solid var(--rev-border-subtle) !important;
  background: rgba(4, 9, 22, 0.75) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
}

.brand-emblem {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.brand-emblem::after,
.brand-status-tag .pulse-dot,
.brand-emblem .pulse-dot {
  display: none !important;
  content: none !important;
}

.brand-logo-img {
  width: 96px !important;
  height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;
  object-fit: contain !important;
  filter: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.brand-info h1 {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.brand-info span {
  font-size: 0.73rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  color: var(--rev-cyan-glow) !important;
  display: block !important;
  margin-top: 2px !important;
}

.brand-status-tag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.12rem 0.5rem !important;
  border-radius: 99px !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  color: #38bdf8 !important;
  font-size: 0.56rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
  margin-top: 4px !important;
  box-shadow: none !important;
}

.sidebar-nav {
  padding: 1.1rem 0.8rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.32rem !important;
}

.nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  padding: 0.7rem 0.95rem !important;
  border-radius: 10px !important;
  color: var(--rev-text-muted) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  text-align: left !important;
  width: 100% !important;
}

.nav-item svg,
.nav-item i {
  width: 18px !important;
  height: 18px !important;
  opacity: 0.72 !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.nav-item:hover {
  background: rgba(56, 189, 248, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(56, 189, 248, 0.18) !important;
  transform: translateX(3px) !important;
}

.nav-item:hover svg,
.nav-item:hover i {
  opacity: 1 !important;
  color: var(--rev-cyan-glow) !important;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.26) 0%, rgba(14, 165, 233, 0.09) 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.nav-item.active::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 7px !important;
  bottom: 7px !important;
  width: 3.5px !important;
  background: var(--rev-cyan-glow) !important;
  border-radius: 99px !important;
  box-shadow: 0 0 10px var(--rev-cyan-glow) !important;
}

.nav-item.active svg,
.nav-item.active i {
  opacity: 1 !important;
  color: var(--rev-cyan-glow) !important;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.65)) !important;
}

.sidebar-footer {
  padding: 1rem 1.15rem !important;
  border-top: 1px solid var(--rev-border-subtle) !important;
  background: rgba(3, 7, 18, 0.65) !important;
}

.sidebar-footer-card {
  background: rgba(14, 28, 56, 0.65) !important;
  border: 1px solid var(--rev-border-subtle) !important;
  border-radius: 12px !important;
  padding: 0.85rem 0.95rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.btn-footer-manual {
  background: linear-gradient(180deg, #0e2246 0%, #071329 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.76rem !important;
  padding: 0.45rem 0.75rem !important;
  transition: all 0.2s ease !important;
  margin-top: 0.45rem !important;
}

.btn-footer-manual:hover {
  background: #162c57 !important;
  border-color: var(--rev-cyan-glow) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3) !important;
}

/* 3. TOP TELEMETRY BAR */
.topbar {
  background: rgba(6, 13, 28, 0.82) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid var(--rev-border-subtle) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
  padding: 0 2.2rem !important;
  height: 72px !important;
}

.view-breadcrumb h2 {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
}

.view-breadcrumb p {
  font-size: 0.77rem !important;
  color: var(--rev-text-muted) !important;
  margin-top: 2px !important;
}

.topbar-telemetry {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
}

.telemetry-pill {
  background: linear-gradient(180deg, rgba(14, 28, 56, 0.85) 0%, rgba(8, 17, 36, 0.95) 100%) !important;
  border: 1px solid var(--rev-border-medium) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 99px !important;
  padding: 0.45rem 1rem !important;
  color: #ffffff !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.telemetry-pill:hover {
  border-color: var(--rev-cyan-glow) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25) !important;
}

.pulse-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: var(--rev-emerald-glow) !important;
  box-shadow: 0 0 10px var(--rev-emerald-glow) !important;
  animation: revPulseDot 1.6s infinite !important;
  display: inline-block !important;
}

.pulse-dot.pulse-red,
.telemetry-dot.pulse-red {
  background: var(--rev-crimson-glow) !important;
  box-shadow: 0 0 10px var(--rev-crimson-glow) !important;
}

@keyframes revPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.65; }
}

.portal-global-search {
  position: relative !important;
}

.portal-global-search input {
  background: rgba(4, 9, 22, 0.85) !important;
  border: 1px solid var(--rev-border-medium) !important;
  border-radius: 99px !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  padding: 0.54rem 2.6rem 0.54rem 1.15rem !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.22s ease !important;
  width: 260px !important;
}

.portal-global-search input:focus {
  outline: none !important;
  border-color: var(--rev-cyan-glow) !important;
  width: 320px !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.night-badge {
  background: linear-gradient(135deg, rgba(14, 30, 61, 0.95) 0%, rgba(9, 19, 38, 0.95) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 99px !important;
  padding: 0.42rem 0.95rem !important;
  color: var(--rev-cyan-glow) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 14px rgba(56, 189, 248, 0.2) !important;
}

/* 4. REVOLUTIONARY GLASS PANELS */
.glass-panel {
  background: linear-gradient(145deg, rgba(12, 24, 48, 0.76) 0%, rgba(7, 15, 31, 0.9) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid var(--rev-border-subtle) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 18px !important;
  padding: 1.65rem 1.85rem !important;
  box-shadow: var(--rev-shadow-panel) !important;
  margin-bottom: 1.85rem !important;
  position: relative !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.panel-header {
  border-bottom: 1px solid var(--rev-border-subtle) !important;
  padding-bottom: 1.15rem !important;
  margin-bottom: 1.45rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}

.panel-icon-badge {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  color: var(--rev-cyan-glow) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.panel-title {
  font-size: 1.16rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.panel-subtitle {
  font-size: 0.82rem !important;
  color: var(--rev-text-muted) !important;
  margin-top: 3px !important;
  line-height: 1.45 !important;
}

/* 5. LUXURY BENTO KPI STAT CARDS */
.bento-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 1.15rem !important;
  margin-bottom: 1.85rem !important;
}

@media (max-width: 1400px) {
  .bento-kpi-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
  .bento-kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
  .bento-kpi-grid { grid-template-columns: 1fr !important; }
}

.stat-card {
  background: linear-gradient(145deg, rgba(14, 28, 56, 0.82) 0%, rgba(7, 14, 28, 0.95) 100%) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid var(--rev-border-subtle) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 16px !important;
  padding: 1.25rem 1.2rem !important;
  box-shadow: var(--rev-shadow-card) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 148px !important;
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.015) !important;
  border-color: var(--rev-border-bright) !important;
  box-shadow: var(--rev-shadow-hover) !important;
}

.stat-card::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 90px !important;
  height: 90px !important;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 70%) !important;
  pointer-events: none !important;
  opacity: 0.5 !important;
  transition: opacity 0.3s ease !important;
}

.stat-card:hover::after {
  opacity: 1 !important;
}

.stat-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 0.65rem !important;
}

.stat-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition: transform 0.22s ease !important;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) !important;
}

.stat-trend {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  padding: 0.18rem 0.55rem !important;
  border-radius: 99px !important;
  letter-spacing: 0.02em !important;
}

.stat-value {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 1.68rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  margin: 0.3rem 0 0.15rem !important;
  line-height: 1.15 !important;
}

.stat-label {
  font-size: 0.81rem !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  letter-spacing: -0.01em !important;
}

.stat-sub {
  font-size: 0.72rem !important;
  color: var(--rev-text-faint) !important;
  line-height: 1.4 !important;
  margin-top: 0.25rem !important;
}

/* 6. HERO QUICK ACTION BANNER */
#view-overview .glass-panel[style*="linear-gradient"] {
  background: linear-gradient(135deg, rgba(14, 30, 61, 0.9) 0%, rgba(8, 18, 38, 0.96) 50%, rgba(13, 26, 52, 0.92) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 20px !important;
  padding: 2rem 2.25rem !important;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.65), 0 0 32px rgba(14, 165, 233, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  position: relative !important;
  overflow: hidden !important;
}

#view-overview .glass-panel[style*="linear-gradient"]::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 15% !important;
  right: 15% !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.9), transparent) !important;
  filter: blur(1px) !important;
}

#view-overview .glass-panel[style*="linear-gradient"] h3 {
  font-size: 1.42rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
}

#view-overview .glass-panel[style*="linear-gradient"] p {
  font-size: 0.86rem !important;
  line-height: 1.6 !important;
  color: var(--rev-text-muted) !important;
}

/* 7. HIGH-CRAFT BUTTON ARCHITECTURE */
.btn {
  background: linear-gradient(180deg, rgba(22, 44, 87, 0.92) 0%, rgba(14, 28, 56, 0.98) 100%) !important;
  border: 1px solid var(--rev-border-medium) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 10px !important;
  color: #f8fafc !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  padding: 0.58rem 1.15rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
}

.btn:hover {
  background: linear-gradient(180deg, rgba(28, 56, 110, 0.98) 0%, rgba(18, 36, 72, 1) 100%) !important;
  border-color: var(--rev-border-bright) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 14px rgba(56, 189, 248, 0.25) !important;
}

.btn:active {
  transform: translateY(0) scale(0.98) !important;
}

.btn-primary {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid var(--rev-cyan-glow) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #0369a1 0%, #075985 100%) !important;
  border-color: #7dd3fc !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.6), 0 0 20px rgba(56, 189, 248, 0.35) !important;
  transform: translateY(-2px) !important;
}

.btn-xs {
  padding: 0.38rem 0.75rem !important;
  font-size: 0.74rem !important;
  border-radius: 8px !important;
}

/* 8. TACTILE PILL BADGES */
.pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.22rem 0.65rem !important;
  border-radius: 99px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.pill-cyan {
  background: rgba(14, 165, 233, 0.14) !important;
  color: var(--rev-cyan-glow) !important;
  border: 1px solid rgba(56, 189, 248, 0.32) !important;
}

.pill-emerald {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.32) !important;
}

.pill-amber {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;
}

.pill-crimson {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.32) !important;
}

/* 9. PROPOSITIONS, POPS & SCADA UNIT CARDS */
.propositions-cards-grid,
.pops-cards-grid,
.scada-units-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 1.15rem !important;
}

.prop-card,
.scada-unit-card,
.pop-card {
  background: linear-gradient(145deg, rgba(14, 28, 56, 0.76) 0%, rgba(8, 16, 32, 0.92) 100%) !important;
  border: 1px solid var(--rev-border-subtle) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  padding: 1.3rem 1.4rem !important;
  box-shadow: var(--rev-shadow-card) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.prop-card:hover,
.scada-unit-card:hover,
.pop-card:hover {
  border-color: var(--rev-border-bright) !important;
  box-shadow: var(--rev-shadow-hover) !important;
  transform: translateY(-4px) !important;
}

.prop-card h4,
.scada-unit-card h4,
.pop-card h4 {
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.35 !important;
}

/* 10. REVOLUTIONARY HYDRAULIC TELEMETRY CARDS (SCREENSHOT 4) */
.hydraulic-param-card {
  background: linear-gradient(145deg, rgba(14, 28, 56, 0.85) 0%, rgba(7, 15, 31, 0.95) 100%) !important;
  border: 1px solid var(--rev-border-subtle) !important;
  border-top: 2px solid var(--rev-cyan-glow) !important;
  border-radius: 14px !important;
  padding: 1.25rem 1.35rem !important;
  box-shadow: var(--rev-shadow-card) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 0.85rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hydraulic-param-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--rev-border-bright) !important;
  box-shadow: var(--rev-shadow-hover) !important;
}

.hydraulic-card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.hydraulic-card-title {
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #ffffff !important;
}

.hydraulic-card-value-strip {
  background: rgba(4, 9, 22, 0.8) !important;
  border: 1px solid var(--rev-border-subtle) !important;
  border-radius: 10px !important;
  padding: 0.75rem 0.9rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.65rem !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.hydraulic-value-text {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  color: var(--rev-cyan-glow) !important;
}

/* 11. REVOLUTIONARY MATERIAL COMPARATIVE CARDS (SCREENSHOT 3) */
.materials-compare-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.25rem !important;
  margin-bottom: 1.6rem !important;
}

@media (max-width: 980px) {
  .materials-compare-grid { grid-template-columns: 1fr !important; }
}

.material-card {
  background: linear-gradient(145deg, rgba(14, 28, 56, 0.85) 0%, rgba(7, 15, 31, 0.95) 100%) !important;
  border: 1px solid var(--rev-border-subtle) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 16px !important;
  padding: 1.35rem 1.45rem !important;
  box-shadow: var(--rev-shadow-card) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.material-card:hover {
  transform: translateY(-5px) !important;
  border-color: var(--rev-border-bright) !important;
  box-shadow: var(--rev-shadow-hover) !important;
}

.material-card-title {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
}

.material-app-box {
  background: rgba(14, 165, 233, 0.1) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: 10px !important;
  padding: 0.75rem 0.9rem !important;
  color: var(--rev-cyan-glow) !important;
  font-size: 0.81rem !important;
  line-height: 1.5 !important;
  white-space: normal !important;
}

.material-advantages {
  background: rgba(16, 185, 129, 0.08) !important;
  border-left: 3px solid var(--rev-emerald-glow) !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 0.75rem 0.9rem !important;
  font-size: 0.8rem !important;
  line-height: 1.5 !important;
  color: #f1f5f9 !important;
}

.material-warnings {
  background: rgba(245, 158, 11, 0.08) !important;
  border-left: 3px solid var(--rev-amber-glow) !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 0.75rem 0.9rem !important;
  font-size: 0.8rem !important;
  line-height: 1.5 !important;
  color: var(--rev-text-muted) !important;
}

/* 12. FILTER TOOLBARS & SLEEK INPUTS */
.toolbar-filters {
  background: rgba(7, 14, 28, 0.7) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid var(--rev-border-subtle) !important;
  border-radius: 14px !important;
  padding: 0.95rem 1.15rem !important;
  margin-bottom: 1.45rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  flex-wrap: wrap !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.input-modern,
.select-modern {
  background: rgba(4, 9, 22, 0.85) !important;
  border: 1px solid var(--rev-border-medium) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.82rem !important;
  padding: 0.58rem 0.95rem !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.2s ease !important;
}

.input-modern:focus,
.select-modern:focus {
  outline: none !important;
  border-color: var(--rev-cyan-glow) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.45) !important;
}

/* 13. MODERN DATA TABLES */
.modern-table-wrap {
  border-radius: 14px !important;
  border: 1px solid var(--rev-border-subtle) !important;
  background: rgba(7, 14, 28, 0.85) !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.modern-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 0.82rem !important;
}

.modern-table thead th {
  background: rgba(14, 28, 56, 0.95) !important;
  color: var(--rev-text-muted) !important;
  font-weight: 700 !important;
  font-size: 0.74rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.95rem 1.15rem !important;
  border-bottom: 1px solid var(--rev-border-medium) !important;
}

.modern-table tbody tr {
  border-bottom: 1px solid rgba(56, 189, 248, 0.08) !important;
  transition: background-color 0.18s ease !important;
}

.modern-table tbody tr:hover {
  background-color: rgba(56, 189, 248, 0.08) !important;
}

.modern-table tbody td {
  padding: 0.95rem 1.15rem !important;
  color: #e2e8f0 !important;
  vertical-align: middle !important;
}
