/* Sahab DMS - Enterprise Light Aesthetic Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

:root {
  --primary-blue: #008CF8;
  --primary-navy: #0B2F87;
  --text-dark: #090B12;
  --text-muted: #3D3D3D;
  --text-subtle: #64748B;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --border-card: #E2E8F0;
  --border-subtle: #EDF2F7;
  --accent-tint: #EFF6FF;
  --accent-green: #10B981;
  --accent-amber: #F59E0B;
  --accent-red: #EF4444;
  --accent-purple: #8B5CF6;
  --font-main: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(9, 11, 18, 0.04);
  --shadow-md: 0 4px 14px -2px rgba(9, 11, 18, 0.06), 0 2px 6px -1px rgba(9, 11, 18, 0.04);
  --shadow-lg: 0 12px 30px -6px rgba(9, 11, 18, 0.08), 0 4px 10px -2px rgba(9, 11, 18, 0.03);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

p {
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.65;
}

/* Nav Header */
.enterprise-nav {
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
}

/* Enterprise Cards */
.enterprise-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.enterprise-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Solid Buttons */
.btn-primary {
  background-color: var(--primary-blue);
  color: #FFFFFF;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 140, 248, 0.25);
}

.btn-primary:hover {
  background-color: #0077D6;
  box-shadow: 0 6px 18px rgba(0, 140, 248, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--primary-navy);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-card);
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.btn-navy {
  background-color: var(--primary-navy);
  color: #FFFFFF;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(11, 47, 135, 0.25);
}

.btn-navy:hover {
  background-color: #082161;
  box-shadow: 0 6px 18px rgba(11, 47, 135, 0.35);
  transform: translateY(-1px);
}

/* Feature Vertical Tabs (Inspired by Reference 2) */
.feature-tab-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feature-tab-btn:hover {
  background: var(--bg-subtle);
  color: var(--primary-navy);
}

.feature-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary-blue);
  border-color: var(--border-card);
  box-shadow: var(--shadow-md);
}

.feature-tab-btn.active .tab-icon {
  background: var(--primary-blue);
  color: #FFFFFF;
}

.tab-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* High Contrast Blue Action Banner (Inspired by Reference 2) */
.action-banner {
  background-color: var(--primary-navy);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(11, 47, 135, 0.25);
}

/* Live Pulse Indicator */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-effective {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.status-review {
  background-color: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.status-approved {
  background-color: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.status-obsolete {
  background-color: #F3F4F6;
  color: #4B5563;
  border: 1px solid #E5E7EB;
}

.status-uncontrolled {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Serpentine Lifecycle Stepper (Inspired by Reference 1) */
.lifecycle-track {
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 36px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.lifecycle-node {
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px;
  border-radius: 12px;
}

.lifecycle-node:hover {
  background-color: #F8FAFC;
  transform: translateY(-2px);
}

.lifecycle-node.active-step {
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
}

.node-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--primary-navy);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(11, 47, 135, 0.2);
  transition: all 0.25s ease;
}

.lifecycle-node.active-step .node-number {
  background-color: var(--primary-blue);
  box-shadow: 0 4px 14px rgba(0, 140, 248, 0.4);
  transform: scale(1.08);
}

/* Interactive Data Table */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: #FFFFFF;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background-color: #F8FAFC;
  color: var(--text-dark);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-card);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--text-muted);
}

.data-table tr:hover td {
  background-color: #F8FAFC;
}

/* Interactive Slider */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #E2E8F0;
  outline: none;
  transition: background 0.2s;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-blue);
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 140, 248, 0.4);
  transition: transform 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  overflow: hidden;
  font-size: 14px;
}

.comparison-table th {
  background: #F8FAFC;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-card);
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .sahab-col {
  background-color: #F4F9FF;
  border-left: 2px solid var(--primary-blue);
  border-right: 2px solid var(--primary-blue);
}

.comparison-table th.sahab-col {
  background-color: #EFF6FF;
  color: var(--primary-navy);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 11, 18, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px -12px rgba(9, 11, 18, 0.25);
  border: 1px solid var(--border-card);
}

/* Clean Blueprint Grid for Diagrams */
.blueprint-grid {
  background-size: 24px 24px;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
}

/* Toast notifications */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--text-dark);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(9, 11, 18, 0.2);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Clean Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* 11-Step Lifecycle Stepper Pills */
.step-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  background-color: #FFFFFF;
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: all 0.2s ease;
}
.step-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}
.step-btn.active-step {
  background-color: var(--primary-blue);
  color: #FFFFFF;
  border-color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0, 140, 248, 0.3);
}

/* Toast notification styling */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--text-dark);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(9, 11, 18, 0.2);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Pulse animation for KSA In-tenant badge */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* REAL-TIME SERPENTINE WORKING CHART STYLES */
.serpentine-laser-flow {
  animation: laserFlow 16s linear infinite;
}

@keyframes laserFlow {
  from { stroke-dashoffset: 800; }
  to { stroke-dashoffset: 0; }
}

/* Interactive SVG Working Node Styles */
.lifecycle-interactive-node {
  transform-origin: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lifecycle-interactive-node:hover .node-bubble {
  stroke: #008CF8;
  stroke-width: 2.5px;
  fill: #F0F7FF;
}

.lifecycle-interactive-node:hover .node-num-pill {
  fill: #008CF8;
}

.lifecycle-interactive-node:hover .node-title-text {
  fill: #008CF8;
}

/* Active Working Node - Real-time blinking & glowing */
.lifecycle-interactive-node.active-node .node-bubble {
  stroke: #008CF8;
  stroke-width: 3.5px;
  fill: #EFF6FF;
  filter: drop-shadow(0 0 10px rgba(0, 140, 248, 0.45));
}

.lifecycle-interactive-node.active-node .node-num-pill {
  fill: #008CF8;
  filter: drop-shadow(0 2px 6px rgba(0, 140, 248, 0.5));
}

.lifecycle-interactive-node.active-node .node-icon-svg {
  stroke: #0077D6;
  filter: drop-shadow(0 1px 3px rgba(0, 140, 248, 0.3));
}

.lifecycle-interactive-node.active-node .node-title-text {
  fill: #008CF8;
  font-weight: 800;
}

.lifecycle-interactive-node.active-node .node-pulse-ring {
  animation: radarRing 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.lifecycle-interactive-node.active-node .node-pulse-ring-outer {
  animation: radarRingOuter 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite 0.45s;
}

@keyframes radarRing {
  0% { r: 26px; opacity: 0.85; stroke-width: 3px; }
  60% { opacity: 0.35; }
  100% { r: 44px; opacity: 0; stroke-width: 0.5px; }
}

@keyframes radarRingOuter {
  0% { r: 30px; opacity: 0.65; stroke-width: 2px; }
  60% { opacity: 0.25; }
  100% { r: 56px; opacity: 0; stroke-width: 0.2px; }
}



/* 6-Module Real-Time Radial Hub Styles */
.hub-node {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-node:hover .hub-circle {
  stroke: #008CF8;
  stroke-width: 3px;
  fill: #EBF5FF;
}

.hub-node:hover .hub-label {
  fill: #008CF8;
  font-weight: 800;
}

.hub-node.active-hub-node .hub-circle {
  fill: #E0F2FE;
  stroke: #008CF8;
  stroke-width: 3.5px;
  filter: drop-shadow(0 0 12px rgba(0, 140, 248, 0.6));
}

.hub-node.active-hub-node .hub-label {
  fill: #0B2F87;
  font-weight: 800;
}

.hub-node.active-hub-node .hub-pulse {
  animation: radarRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.hub-node.active-hub-node .hub-pulse-outer {
  animation: radarRingOuter 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite 0.4s;
}

.hub-center-shield {
  filter: drop-shadow(0 8px 24px rgba(11, 47, 135, 0.18));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-center-shield:hover {
  transform: scale(1.03);
}

.hub-track {
  stroke-dasharray: 6 6;
  animation: rotateTrack 60s linear infinite;
  transform-origin: 300px 250px;
}

@keyframes rotateTrack {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hub-beam-line {
  stroke: #CBD5E1;
  stroke-width: 1.5px;
  transition: all 0.3s ease;
}

.hub-beam-line.active-beam {
  stroke: #008CF8;
  stroke-width: 3px;
  filter: drop-shadow(0 0 6px rgba(0, 140, 248, 0.8));
}

/* Hub Hotspot Overlay Styles */
.hub-hotspot {
  z-index: 20;
  outline: none;
}

.hub-hotspot.active-hub-hotspot .hub-hotspot-pulse {
  opacity: 0.7;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  background-color: #008CF8;
}

.hub-hotspot.active-hub-hotspot .hub-hotspot-ring {
  border-color: #008CF8;
  box-shadow: 0 0 16px rgba(0, 140, 248, 0.75), inset 0 0 8px rgba(0, 140, 248, 0.35);
}

/* Hero Workspace Tab Active Styling */
.hero-workspace-tab {
  cursor: pointer;
}
.hero-workspace-tab.active {
  background-color: #EFF6FF !important;
  color: #0B2F87 !important;
  border-color: #BFDBFE !important;
}


/* 11-Step Interactive Governed Lifecycle Styles */
.lifecycle-node-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 140px;
}
.lifecycle-node-btn.active {
  border-color: #008CF8 !important;
  background-color: #F0F9FF !important;
  box-shadow: 0 4px 14px rgba(0, 140, 248, 0.15) !important;
}
.lifecycle-node-btn.active .lifecycle-node-num {
  background-color: #008CF8 !important;
  color: #FFFFFF !important;
}
.lifecycle-node-btn.active .lifecycle-node-icon {
  background-color: #008CF8 !important;
  color: #FFFFFF !important;
}


/* SVG Serpentine Lifecycle Interactive Styles */
.lifecycle-svg-node {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.lifecycle-svg-node:hover circle[id^="svgCircle"] {
  fill: #0B2F87 !important;
}
.lifecycle-svg-node:hover text[id^="svgTitle"] {
  fill: #008CF8 !important;
}

/* Animated Flowing Pulse along Serpentine Track */
@keyframes lifecycleTrackFlow {
  from {
    stroke-dashoffset: 48;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.lifecycle-flow-pulse {
  animation: lifecycleTrackFlow 2.5s linear infinite;
}

/* SVG Serpentine Lifecycle Interactive Styles (No CSS transform scaling) */
.lifecycle-svg-node {
  cursor: pointer;
}
.lifecycle-svg-node:hover circle[id^="svgCircle"] {
  fill: #0B2F87 !important;
  stroke: #60A5FA !important;
}
.lifecycle-svg-node:hover text[id^="svgTitle"] {
  fill: #008CF8 !important;
}


/* Smooth fade-in transition for interactive inspectors */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fadeIn {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hide scrollbar for horizontal tabs on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Infinite Smooth Marquee Ticker for Hero Credentials */
@keyframes marqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.hero-marquee-container:hover .hero-marquee-track,
.hero-marquee-track:hover {
  animation-play-state: paused !important;
}

.hero-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll 68s linear infinite;
}
