/* Whizible Microsoft Teams Help Site Design System - Exact React Replica */
body {
  font-size: 0.85rem; /* Small font across the page */
}

.sidebar {
  position: sticky;
  top: 4.5rem; /* Below the header */
  height: calc(100vh - 4.5rem);
  overflow-y: auto;
}

img {
  max-width: 100%;
  height: auto;
}
/* Sidebar Logo Styling */
.sidebar-logo {
  background-color: white;
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.sidebar-logo .logo-img {
  max-width: 120px;
  height: auto;
  transition: all 0.3s ease;
}

/* Smaller logo when sidebar is collapsed */
.sidebar.collapsed .sidebar-logo .logo-img {
  max-width: 40px;
}

.header-brand .logo-img {
    height: 2.5rem;
    width: auto;
    margin-right: 0.75rem;
}
/* Enterprise Design System - Professional Grade */
:root {
  /* Core Design System Colors - Enterprise Grade */
  --background: 0 0% 99%;
  --foreground: 214 31% 14%;
  --card: 0 0% 100%;
  --card-foreground: 214 31% 14%;
  --popover: 0 0% 100%;
  --popover-foreground: 214 31% 14%;
  --primary: 214 84% 56%;
  --primary-foreground: 0 0% 100%;
  --secondary: 214 32% 96%;
  --secondary-foreground: 214 31% 14%;
  --muted: 214 32% 97%;
  --muted-foreground: 214 16% 46%;
  --accent: 214 84% 95%;
  --accent-foreground: 214 84% 36%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --border: 214 32% 88%;
  --input: 214 32% 91%;
  --ring: 214 84% 56%;

  /* Professional Brand Colors */
  --whizible-blue: 214 84% 56%;
  --whizible-blue-dark: 214 84% 46%;
  --whizible-light-blue: 214 84% 96%;
  --teams-purple: 258 90% 66%;
  --sidebar-active: 214 84% 96%;
  --surface-elevated: 0 0% 100%;
  --surface-subtle: 214 32% 98%;

  /* Enterprise Sidebar Colors */
  --sidebar-background: 0 0% 100%;
  --sidebar-foreground: 214 31% 24%;
  --sidebar-primary: 214 31% 14%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 214 32% 97%;
  --sidebar-accent-foreground: 214 31% 14%;
  --sidebar-border: 214 32% 90%;
  --sidebar-ring: 214 84% 56%;

  /* Professional Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border Radius - Modern */
  --radius: 0.75rem;
  --radius-md: 0.5rem;
  --radius-sm: 0.375rem;
  --radius-xs: 0.25rem;

  /* Professional Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0em;
  --letter-spacing-wide: 0.025em;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
}

.dark {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 210 40% 98%;
  --primary-foreground: 222.2 47.4% 11.2%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 212.7 26.8% 83.9%;
  --sidebar-background: 240 5.9% 10%;
  --sidebar-foreground: 240 4.8% 95.9%;
  --sidebar-primary: 224.3 76.3% 48%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 240 3.7% 15.9%;
  --sidebar-accent-foreground: 240 4.8% 95.9%;
  --sidebar-border: 240 3.7% 15.9%;
  --sidebar-ring: 217.2 91.2% 59.8%;
}

/* Global Styles */
* {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Components */
.layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: hsl(var(--background));
}

.layout-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Only allow scrolling in main-content if needed */
.main-content {
    overflow-y: auto;
    height: 100%;
}
/* Header Styles - Enterprise Grade */
.header {
  height: 4.5rem;
  border-bottom: 1px solid hsl(var(--border));
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: var(--shadow-sm);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 2rem;
  width: auto;
}

.brand-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  letter-spacing: var(--letter-spacing-tight);
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-container {
  position: relative;
}

.search-input {
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  width: 20rem;
  background-color: rgba(248, 249, 250, 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.search-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
}

/* Sidebar Styles - Enterprise Grade */
.sidebar {
  width: 19rem;
  min-height: calc(100vh - 4.5rem);
  border-right: 1px solid hsl(var(--border));
  background-color: hsl(var(--sidebar-background));
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
  width: 4rem;
  padding: 1rem 0.5rem;
}

.sidebar-content {
  padding: 1rem;
}

.sidebar-trigger {
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  padding: 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s ease;
}

.sidebar-trigger:hover {
  color: hsl(var(--foreground));
}

/* Navigation Styles */
.nav-group {
  margin-bottom: 1rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-bottom: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-normal);
}

.nav-link:hover {
  background-color: hsl(var(--sidebar-accent));
  color: hsl(var(--foreground));
  transform: translateX(2px);
}

.nav-link.active {
  background-color: hsl(var(--sidebar-active));
  color: hsl(var(--whizible-blue));
  font-weight: 600;
  box-shadow: inset 3px 0 0 hsl(var(--whizible-blue));
}

.nav-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.nav-text {
  transition: opacity 0.2s ease;
}

.sidebar.collapsed .nav-text {
  display: none;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  position: relative;
  background: transparent;
  transition: all 0.2s ease;
}

.sidebar.collapsed .nav-link:hover {
  background-color: hsl(var(--accent));
  transform: translateX(2px);
}

.sidebar.collapsed .nav-link.active {
  background-color: hsl(var(--whizible-light-blue));
  color: hsl(var(--whizible-blue));
  border-left: 3px solid hsl(var(--whizible-blue));
  margin-left: -3px;
  box-shadow: none;
}

.sidebar.collapsed .nav-link .lucide {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
}

.sidebar.collapsed .nav-link:hover .lucide,
.sidebar.collapsed .nav-link.active .lucide {
  color: hsl(var(--whizible-blue));
  transform: scale(1.1);
}

/* Collapsible Sections */
.nav-section {
  margin-bottom: 0.75rem;
}

.nav-section-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem;
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.nav-section-trigger:hover {
  background-color: hsl(var(--muted) / 0.5);
  color: hsl(var(--foreground));
}

.nav-section-trigger.active {
  background-color: hsl(var(--sidebar-active));
  color: hsl(var(--whizible-blue));
}

.nav-section-content {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.nav-section-content.collapsed {
  max-height: 0;
  margin-top: 0;
}

.collapse-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.nav-section-trigger.expanded .collapse-icon {
  transform: rotate(90deg);
}

.sidebar.collapsed .nav-section-trigger {
  justify-content: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  background: transparent;
  transition: all 0.2s ease;
}

.sidebar.collapsed .nav-section-trigger:hover {
  background-color: hsl(var(--accent));
  transform: translateX(2px);
}

.sidebar.collapsed .collapse-icon,
.sidebar.collapsed .nav-section .nav-text {
  display: none;
}

.sidebar.collapsed .nav-section-content {
  display: none;
}

.sidebar.collapsed .nav-section-trigger .lucide {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
}

.sidebar.collapsed .nav-section-trigger:hover .lucide {
  color: hsl(var(--whizible-blue));
  transform: scale(1.1);
}

/* Tooltips for collapsed sidebar */
.sidebar.collapsed .nav-link::after,
.sidebar.collapsed .nav-section-trigger::after {
  content: attr(data-title);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background-color: hsl(var(--popover));
  color: hsl(var(--popover-foreground));
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  margin-left: 0.75rem;
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-md);
  z-index: 50;
  font-weight: 500;
}

.sidebar.collapsed .nav-link:hover::after,
.sidebar.collapsed .nav-section-trigger:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Sub Navigation */
.sub-nav-link {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  margin-left: 0;
}

.sub-nav-link.active {
  border-left: 2px solid hsl(var(--whizible-blue));
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 1.5rem;
  background-color: hsl(var(--card));
  overflow-y: auto;
}

.container {
  max-width: 64rem;
  margin: 0 auto;
}

/* Page Content */
.page-content {
  display: none;
}

.page-content.active {
  display: block;
}

/* Typography */
.text-3xl {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.text-xl {
  font-size: 1.25rem;
  font-weight: 600;
}

/* .text-lg {
  font-size: 1.125rem;
  line-height: 1.6;
} */

.text-base {
  font-size: 1rem;
  line-height: 1.5;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.4;
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.text-whizible-blue {
  color: hsl(var(--whizible-blue));
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

/* Card Components - Enterprise Grade */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
  border-bottom: 1px solid hsl(var(--border));
  margin-bottom: 1.5rem;
}

.card-title {
      font-size: 0.9rem;
    font-weight: 600;
    color: hsl(var(--card-foreground));
    margin: 0 0 1rem 0;
}

.card-content {
  padding: 0 1.5rem 1.5rem;
}

/* Badge Component */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: hsl(var(--whizible-light-blue));
  color: hsl(var(--whizible-blue));
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background-color: hsl(var(--whizible-blue));
  color: white;
  border-color: hsl(var(--whizible-blue));
}

.btn-primary:hover {
  background-color: hsl(217 91% 55%);
  border-color: hsl(217 91% 55%);
  color: white;
}

.btn-outline {
  border-color: hsl(var(--whizible-blue));
  color: hsl(var(--whizible-blue));
  background-color: transparent;
}

.btn-outline:hover {
  background-color: hsl(var(--whizible-light-blue));
  color: hsl(var(--whizible-blue));
}

/* Whizible Brand Elements */
.whizible-logo-box {
  width: 2rem;
  height: 2rem;
  background-color: hsl(var(--whizible-blue));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Grid System */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

/* Missing utility classes */
.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

/* Spacing */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Animations */
@keyframes accordion-down {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: var(--radix-accordion-content-height);
    opacity: 1;
  }
}

@keyframes accordion-up {
  from {
    height: var(--radix-accordion-content-height);
    opacity: 1;
  }
  to {
    height: 0;
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-accordion-down {
  animation: accordion-down 0.2s ease-out;
}

.animate-accordion-up {
  animation: accordion-up 0.2s ease-out;
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 0.75rem;
}

.feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--whizible-blue));
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.feature-content h4 {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.25rem 0;
}

.feature-content p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -18rem;
    z-index: 1000;
    height: 100vh;
    top: 4rem;
  }
  
  .sidebar.show {
    left: 0;
  }
  
  .layout-content {
    margin-left: 0;
  }
  
  .search-input {
    width: 15rem;
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .search-input {
    width: 10rem;
  }
  
  .text-3xl {
    font-size: 1.5rem;
  }
  
  .header {
    padding: 0 0.75rem;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .card-header,
  .card-content {
    padding: 1rem;
  }
}