/* PPM Compass 360 - Modern Marketing & App Styles */

/* Fonts are served from this site (no Google Fonts request). Inter and JetBrains Mono: SIL Open Font License 1.1, see /fonts/. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/inter-latin-800-normal.woff2') format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');}

:root {
  --ms-blue: #0f6cbd;
  --ms-blue-hover: #115ea3;
  --ms-blue-light: #ebf3fc;
  --ms-border: #e1dfdd;
  --ms-surface: #fdfdfd;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Code and mono fonts */
code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Smooth glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Subtle grid background */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

.dark .bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.5);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 114, 128, 0.8);
}

/* SharePoint Canvas Frame */
.sp-frame {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.dark .sp-frame {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.2s ease-out forwards;
}

/* Badge hover transition */
.chip {
  transition: all 0.15s ease-in-out;
}

/* PPM Timeline View Styles (SPFx Module 9091 Bj matching) */
.ppm-timeline-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  padding: 24px 0 16px 0;
  user-select: none;
}

.ppm-timeline-container {
  position: relative;
  width: 100%;
  min-width: 600px;
  height: 230px;
}

.ppm-timeline-axis {
  position: absolute;
  top: 110px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 50%, #cbd5e1 100%);
  border-radius: 9999px;
  z-index: 1;
}

.dark .ppm-timeline-axis {
  background: linear-gradient(90deg, #334155 0%, #475569 50%, #334155 100%);
}

.ppm-timeline-today-line {
  position: absolute;
  top: 10px;
  bottom: 20px;
  width: 2px;
  border-left: 2px dashed #dc2626;
  z-index: 2;
  pointer-events: none;
}

.ppm-timeline-today-badge {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  padding: 1px 6px;
  border-radius: 9999px;
  border: 1px solid #fca5a5;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dark .ppm-timeline-today-badge {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.4);
  color: #f87171;
}

.ppm-timeline-event {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  transition: transform 0.15s ease;
}

.ppm-timeline-stem {
  position: absolute;
  width: 2px;
  background: #cbd5e1;
  z-index: 2;
}

.dark .ppm-timeline-stem {
  background: #475569;
}

.ppm-timeline-marker {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 4;
}

.ppm-timeline-marker:hover {
  transform: scale(1.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.ppm-timeline-label {
  position: absolute;
  transform: translateX(-50%);
  width: 140px;
  text-align: center;
  font-size: 11px;
  line-height: 1.25;
  pointer-events: auto;
  z-index: 5;
}

.ppm-timeline-label-title {
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .ppm-timeline-label-title {
  color: #f1f5f9;
}

.ppm-timeline-label-date {
  font-size: 9.5px;
  font-family: 'JetBrains Mono', monospace;
  color: #64748b;
  margin-top: 1px;
}

.dark .ppm-timeline-label-date {
  color: #94a3b8;
}

/* ==================== MODERN DROPDOWN NAVIGATION ==================== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-dropdown-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.dark .nav-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-chevron {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron,
.nav-dropdown.is-open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 50;
}

.dark .nav-dropdown-menu {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(51, 65, 85, 0.8);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: rgba(241, 245, 249, 0.9);
}

.dark .nav-dropdown-item:hover {
  background: rgba(30, 41, 59, 0.8);
}

/* ==================== MOUSE MOVEMENT TRACKER TRAIL ==================== */
.ambient-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.10) 0%, rgba(99, 102, 241, 0.04) 45%, transparent 70%);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.35s ease;
  opacity: 0;
  will-change: transform, opacity;
}

.dark .ambient-cursor-glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(59, 130, 246, 0.06) 45%, transparent 70%);
}

#cursor-trail-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 28;
  will-change: transform;
}

/* ==================== ADDITIONAL TAILWIND UTILITIES FOR GUIDE & RELEASE PAGES ==================== */
.w-64 { width: 16rem; }
.space-y-16 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(4rem * (1 - var(--tw-space-y-reverse))); margin-bottom: calc(4rem * var(--tw-space-y-reverse)); }
.space-y-20 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(5rem * (1 - var(--tw-space-y-reverse))); margin-bottom: calc(5rem * var(--tw-space-y-reverse)); }
.space-y-0\.5 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(0.125rem * (1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.125rem * var(--tw-space-y-reverse)); }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.pl-12 { padding-left: 3rem; }
.-top-2\.5 { top: -0.625rem; }
.right-3 { right: 0.75rem; }
.list-inside { list-style-position: inside; }

@media (min-width: 640px) {
  .sm\:gap-8 { gap: 2rem; }
}

@media (min-width: 1024px) {
  .lg\:text-5xl { font-size: 3rem; line-height: 1.15; }
}

.text-rose-950 { color: #4c0519; }
.text-blue-950 { color: #172554; }
.text-purple-950 { color: #3b0764; }
.text-emerald-100 { color: #d1fae5; }
.text-purple-100 { color: #f3e8ff; }
.dark .dark\:text-slate-700 { color: #334155; }

.bg-purple-50\/70 { background-color: rgba(250, 245, 255, 0.7); }
.bg-purple-50\/30 { background-color: rgba(250, 245, 255, 0.3); }
.bg-purple-900\/80 { background-color: rgba(88, 28, 135, 0.8); }
.hover\:bg-purple-900:hover { background-color: #581c87; }
.hover\:bg-purple-700:hover { background-color: #7e22ce; }

.dark .dark\:bg-purple-950\/40 { background-color: rgba(59, 7, 100, 0.4); }
.dark .dark\:bg-purple-950\/20 { background-color: rgba(59, 7, 100, 0.2); }
.dark .dark\:bg-blue-900\/20 { background-color: rgba(30, 58, 138, 0.2); }

.bg-indigo-50\/30 { background-color: rgba(238, 242, 255, 0.3); }
.bg-blue-950\/60 { background-color: rgba(23, 37, 84, 0.6); }
.bg-blue-800\/80 { background-color: rgba(30, 64, 175, 0.8); }
.bg-emerald-50\/70 { background-color: rgba(236, 253, 245, 0.7); }
.bg-emerald-50\/50 { background-color: rgba(236, 253, 245, 0.5); }
.bg-emerald-800\/80 { background-color: rgba(6, 95, 70, 0.8); }
.bg-amber-50\/60 { background-color: rgba(255, 251, 235, 0.6); }
.bg-rose-50\/40 { background-color: rgba(255, 241, 242, 0.4); }

.border-purple-200\/80 { border-color: rgba(233, 213, 255, 0.8); }
.border-purple-100 { border-color: #f3e8ff; }
.border-purple-400\/40 { border-color: rgba(192, 132, 252, 0.4); }
.dark .dark\:border-purple-800\/80 { border-color: rgba(107, 33, 168, 0.8); }
.border-blue-200\/80 { border-color: rgba(191, 219, 254, 0.8); }
.border-blue-800\/80 { border-color: rgba(30, 64, 175, 0.8); }
.border-emerald-200\/80 { border-color: rgba(167, 243, 208, 0.8); }
.border-emerald-400\/40 { border-color: rgba(52, 211, 153, 0.4); }
.dark .dark\:border-emerald-800\/80 { border-color: rgba(6, 95, 70, 0.8); }
.border-amber-200\/80 { border-color: rgba(253, 230, 138, 0.8); }

.from-blue-50\/60 { --tw-gradient-from: rgba(239, 246, 255, 0.6) var(--tw-gradient-from-position); --tw-gradient-to: rgba(239, 246, 255, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-slate-50\/30 { --tw-gradient-to: rgba(248, 250, 252, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), rgba(248, 250, 252, 0.3) var(--tw-gradient-via-position), var(--tw-gradient-to); }
.from-emerald-50\/40 { --tw-gradient-from: rgba(236, 253, 245, 0.4) var(--tw-gradient-from-position); --tw-gradient-to: rgba(236, 253, 245, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-emerald-600 { --tw-gradient-from: #059669 var(--tw-gradient-from-position); --tw-gradient-to: rgba(5, 150, 105, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-teal-700 { --tw-gradient-to: #0f766e var(--tw-gradient-to-position); }
.from-purple-50\/40 { --tw-gradient-from: rgba(250, 245, 255, 0.4) var(--tw-gradient-from-position); --tw-gradient-to: rgba(250, 245, 255, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-purple-700 { --tw-gradient-from: #7e22ce var(--tw-gradient-from-position); --tw-gradient-to: rgba(126, 34, 206, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

/* Shadows, Blurs, and Common Accent Colors */
.shadow-xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-2xs { box-shadow: 0 1px rgba(0, 0, 0, 0.05); }
.backdrop-blur-xs { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-sm { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.text-slate-200 { color: #e2e8f0; }
.text-blue-400 { color: #60a5fa; }
.text-rose-400 { color: #fb7185; }
.text-amber-400 { color: #fbbf24; }

.bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }
.border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.3); }
.bg-slate-800\/80 { background-color: rgba(30, 41, 59, 0.8); }

/* Layout & Sizing Utilities */
.aspect-square { aspect-ratio: 1 / 1; }
.max-w-\[280px\] { max-width: 280px; }
.min-w-\[640px\] { min-width: 640px; }
.list-decimal { list-style-type: decimal; }
.to-indigo-800 { --tw-gradient-to: #3730a3 var(--tw-gradient-to-position); }
.via-indigo-50\/60 { --tw-gradient-to: rgba(238, 242, 255, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), rgba(238, 242, 255, 0.6) var(--tw-gradient-via-position), var(--tw-gradient-to); }
.to-purple-50\/60 { --tw-gradient-to: rgba(250, 245, 255, 0.6) var(--tw-gradient-to-position); }
.hover\:bg-blue-950:hover { background-color: #172554; }

/* Custom Colors & Backgrounds */
.bg-\[\#fcfdfd\] { background-color: #fcfdfd; }
.bg-red-50\/40 { background-color: rgba(254, 242, 242, 0.4); }
.bg-amber-50\/40 { background-color: rgba(255, 251, 235, 0.4); }
.bg-amber-50\/30 { background-color: rgba(255, 251, 235, 0.3); }
.dark .dark\:bg-amber-950\/20 { background-color: rgba(69, 26, 3, 0.2); }
.dark .dark\:bg-slate-900\/90 { background-color: rgba(15, 23, 42, 0.9); }
.dark .dark\:bg-red-900\/60 { background-color: rgba(127, 29, 29, 0.6); }
.dark .dark\:bg-purple-900\/60 { background-color: rgba(88, 28, 135, 0.6); }
.dark .dark\:border-red-900\/60 { border-color: rgba(127, 29, 29, 0.6); }
.dark .dark\:border-purple-900\/60 { border-color: rgba(88, 28, 135, 0.6); }
.text-indigo-950 { color: #1e1b4b; }
.dark .dark\:text-indigo-200 { color: #c7d2fe; }
.group:hover .dark\:group-hover\:text-blue-400 { color: #60a5fa; }

@media (min-width: 640px) {
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
}
@media (min-width: 1024px) {
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
}

/* SVG Fill Utilities */
.fill-white { fill: #ffffff; }
.fill-slate-400 { fill: #94a3b8; }
.fill-slate-800 { fill: #1e293b; }
.fill-slate-900 { fill: #0f172a; }
.dark .dark\:fill-slate-200 { fill: #e2e8f0; }
.dark .dark\:fill-slate-700 { fill: #334155; }
.dark .dark\:fill-white { fill: #ffffff; }
.fill-blue-100 { fill: #dbeafe; }
.fill-blue-200 { fill: #bfdbfe; }
.fill-blue-600 { fill: #2563eb; }
.fill-blue-800 { fill: #1e40af; }
.dark .dark\:fill-blue-700 { fill: #1d4ed8; }
.fill-indigo-100 { fill: #e0e7ff; }
.fill-indigo-200 { fill: #c7d2fe; }
.fill-indigo-600 { fill: #4f46e5; }
.fill-indigo-800 { fill: #3730a3; }
.dark .dark\:fill-indigo-700 { fill: #4338ca; }
.fill-purple-100 { fill: #f3e8ff; }
.fill-purple-200 { fill: #e9d5ff; }
.fill-purple-600 { fill: #9333ea; }
.dark .dark\:fill-purple-700 { fill: #7e22ce; }
.fill-emerald-100 { fill: #d1fae5; }
.fill-emerald-600 { fill: #059669; }
.fill-amber-100 { fill: #fef3c7; }
.fill-amber-200 { fill: #fde68a; }
.fill-amber-600 { fill: #d97706; }
.fill-amber-500\/90 { fill: rgba(245, 158, 11, 0.9); }
.dark .dark\:fill-amber-400 { fill: #fbbf24; }
.dark .dark\:fill-amber-600 { fill: #d97706; }
.fill-red-100 { fill: #fee2e2; }
.fill-red-600 { fill: #dc2626; }
.dark .dark\:fill-red-400 { fill: #f87171; }

/* Release Notes Table Responsive Layout */
.release-table {
  min-width: 840px;
  width: 100%;
}
.release-col-version {
  width: 110px;
  min-width: 100px;
  white-space: nowrap;
}
.release-col-category {
  width: 180px;
  min-width: 160px;
  white-space: nowrap;
}
.release-col-improvements {
  min-width: 440px;
}
.release-col-type {
  width: 120px;
  min-width: 110px;
  white-space: nowrap;
}
