/* ===================================
   AMAN INFORMATION SYSTEMS - GLOBAL CSS
   Modern Revamped Version
   =================================== */

/* ===================================
   CSS VARIABLES (Design Tokens)
   =================================== */
:root {
  /* Brand Colors */
  --primary-color: #f58120;
  --primary-dark: #d66f1a;
  --primary-light: #ff9940;
  --secondary-color: #2c3e50;
  --accent-color: #ba89b6;

  /* Neutral Colors */
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-secondary: 'Raleway', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Spacing */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Layout */
  --container-max-width: 1280px;
  --header-height: 80px;
  --topbar-height: 42px;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--gray-900);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
  color: var(--gray-700);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* ===================================
   GRID SYSTEM
   =================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--space-4) * -1);
}

.col {
  flex: 1;
  padding: 0 var(--space-4);
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; padding: 0 var(--space-4); }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; padding: 0 var(--space-4); }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 var(--space-4); }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 var(--space-4); }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 var(--space-4); }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; padding: 0 var(--space-4); }
.col-9 { flex: 0 0 75%; max-width: 75%; padding: 0 var(--space-4); }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 var(--space-4); }

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.topbar {
  background-color: var(--gray-900);
  color: var(--white);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar-right {
  justify-content: flex-end;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gray-300);
}

.topbar-item i {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: var(--space-2);
  list-style: none;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--gray-800);
  color: var(--white);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.header {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  min-height: var(--header-height);
}

.logo img {
  height: 50px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo:hover img {
  transform: scale(1.05);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-2);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  color: var(--gray-700);
  font-weight: var(--font-medium);
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background-color: var(--gray-50);
}

.nav-link i {
  font-size: var(--text-sm);
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link i {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.nav-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  position: relative;
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  color: var(--gray-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background-color: var(--gray-50);
  color: var(--primary-color);
  padding-left: var(--space-5);
}

/* Nested Dropdown */
.dropdown-item > .dropdown-menu {
  left: calc(100% - 4px);
  top: 0;
  margin-left: 4px;
}

.dropdown-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--gray-800);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--gray-800) 100%);
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.4) 100%);
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-6);
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
  color: var(--gray-100);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-3);
  z-index: 3;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--primary-color);
  width: 40px;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* ===================================
   CARDS
   =================================== */
.card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-body {
  padding: var(--space-6);
}

.card-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--gray-900);
}

.card-text {
  color: var(--gray-600);
  margin-bottom: var(--space-4);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Product Card */
.product-card {
  position: relative;
  background-color: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.product-card:hover {
  box-shadow: var(--shadow-2xl);
  transform: translateY(-8px);
}

.product-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background-color: var(--gray-100);
}

.product-card-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
}

.product-card-body {
  padding: var(--space-6);
}

.product-card-category {
  font-size: var(--text-sm);
  color: var(--primary-color);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.product-card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--gray-900);
}

.product-card-description {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

/* ===================================
   SECTIONS
   =================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-subtitle {
  font-size: var(--text-sm);
  color: var(--primary-color);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-4xl);
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.feature-item {
  text-align: center;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.feature-item:hover {
  background-color: var(--gray-50);
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-2xl);
  color: var(--white);
  font-size: var(--text-4xl);
}

.feature-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.feature-description {
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-section h3 {
  color: var(--white);
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.footer-logo {
  margin-bottom: var(--space-6);
}

.footer-logo img {
  height: 50px;
  width: auto;
}

.footer-description {
  color: var(--gray-400);
  margin-bottom: var(--space-6);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--gray-400);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: var(--space-2);
}

.footer-contact-item {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--gray-400);
}

.footer-contact-item i {
  color: var(--primary-color);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  color: var(--gray-500);
  font-size: var(--text-sm);
}

/* ===================================
   FORM ELEMENTS
   =================================== */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-weight: var(--font-medium);
  margin-bottom: var(--space-2);
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  transition: all var(--transition-fast);
  background-color: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 129, 32, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ===================================
   UTILITIES
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }

.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
  }

  .hero {
    height: 500px;
  }
}

@media (max-width: 768px) {
  /* Hide topbar on mobile */
  .topbar {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    flex-direction: column;
    padding: var(--space-6);
    transition: left var(--transition-base);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
  }

  .nav.active {
    left: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-3) 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: var(--gray-50);
    border-radius: 0;
    margin: 0;
    padding-left: var(--space-4);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }

  .nav-item.active > .dropdown-menu {
    max-height: 2000px;
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .dropdown-item.active > .dropdown-menu {
    max-height: 1000px;
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .dropdown-link {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }

  /* Nested dropdown styling */
  .dropdown-item > .dropdown-menu {
    background-color: var(--gray-100);
    padding-left: var(--space-6);
  }

  .col-3, .col-4, .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero {
    height: 400px;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --text-6xl: 2rem;
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
  }

  .section {
    padding: var(--space-12) 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Loading Spinner */
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--gray-200);
  border-bottom-color: var(--primary-color);
  border-radius: var(--radius-full);
  display: inline-block;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  left: var(--space-8);
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}


/* Chatbot CSS  */
.chat-window-wrapper .chat-window-toggle, .chat-layout .chat-header, .chat-message.chat-message-from-user:not(.chat-message-transparent) {
  background-color: var(--primary-color) !important;
}

.chat-layout .chat-header p, .chat-message.chat-message-from-user+.chat-message.chat-message-from-bot, .chat-message.chat-message-from-bot+.chat-message.chat-message-from-user p {
  color: white !important;
}

.chat-message-markdown ul, .chat-message-markdown ol {
  color: var(--gray-700) !important;
}