/* ============================================= */
/*  nav-new.css – ZendaCloud Professional Nav     */
/*  Light Mode (default) + Dark Mode Support     */
/*  Uses [data-theme="dark"] for dark mode       */
/* ============================================= */

/* -------------------------------------------------
   CSS Variables – Light Mode
   ------------------------------------------------- */

   
:root {
  --zc-bg: #ffffff;
  --zc-bg-alt: #f8fafc;
  --zc-header-bg: rgba(255, 255, 255, 0.75);
  --zc-header-border: rgba(226, 232, 240, 0.7);
  --zc-text: #1e293b;
  --zc-text-muted: #64748b;
  --zc-text-light: #44004f;
  --zc-primary: #4f46e5;
  --zc-primary-hover: #4338ca;
  --zc-primary-bg: #eef2ff;
  --zc-btn-bg: #4f46e5;
  --zc-btn-text: #ffffff;
  --zc-btn-hover: #4338ca;
  --zc-border: #e2e8f0;
  --zc-border-dark: #cbd5e1;
  --zc-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --zc-backdrop: rgba(15, 23, 42, 0.1);
  --zc-transition: all 0.15s ease;
}


a {
    color: #492183 ;
    text-decoration: underline;
}

[data-theme="dark"] a {
    color: #ffffff ;
    text-decoration: underline;
}

.text-gray-500 {
    color: #44004f ;
}

[data-theme="dark"]  .text-gray-500 {
    color: #fff ;
}


/* Increase ALL Font Awesome icons size in header navigation (FA6+) */
#menu-finance  [class*="fa-"] {
  font-size: 1.35rem !important;     /* Base font size */
}

/* Increase ALL Font Awesome icons size in header navigation (FA6+) */
#menu-access  [class*="fa-"] {
  font-size: 1.35rem !important;     /* Base font size */
}

/* Increase ALL Font Awesome icons size in header navigation (FA6+) */
#menu-support  [class*="fa-"] {
  font-size: 1.35rem !important;     /* Base font size */
}


/* -------------------------------------------------
   CSS Variables – Dark Mode
   ------------------------------------------------- */
[data-theme="dark"] {
  --zc-bg: #0f172a;
  --zc-bg-alt: #1e293b;
  --zc-header-bg: rgba(19, 13, 33, 1);
  --zc-header-border: rgba(255, 255, 255, 0.1);
  --zc-text: #f8fafc;
  --zc-text-muted: #94a3b8;
  --zc-text-light: #ffffff;
  --zc-primary: #a78bfa;
  --zc-primary-hover: #c4b5fd;
  --zc-primary-bg: #1e1b4b;
  --zc-btn-bg: #7c3aed;
  --zc-btn-text: #ffffff;
  --zc-btn-hover: #6d28d9;
  --zc-border: rgba(255, 255, 255, 0.1);
  --zc-border-dark: rgba(255, 255, 255, 0.15);
  --zc-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --zc-backdrop: rgba(15, 23, 42, 0.3);
  --font-family: rgba(15, 23, 42, 0.3);
}

/* ============================================= */
/*  Header & Nav Base                            */
/* ============================================= */

#zc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--zc-header-bg);
  border-bottom: 1px solid var(--zc-header-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#zc-header nav {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  #zc-header nav { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  #zc-header nav { padding-left: 2rem; padding-right: 2rem; }
}

#zc-header > nav > div {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================= */
/*  Brand Logo                                   */
/* ============================================= */

#zc-header a[aria-label="ZendaCloud Home"] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#zc-header img {
  height: 2rem;
}

#zc-header img.dark\:hidden { display: block; }
#zc-header img.hidden.dark\:inline { display: none; }

[data-theme="dark"] #zc-header img.dark\:hidden { display: none; }
[data-theme="dark"] #zc-header img.hidden.dark\:inline { display: block; height: 2.25rem; }

/* ============================================= */
/*  Desktop Nav Buttons                          */
/* ============================================= */

.lg\:flex.gap-1 {
  display: none;
  gap: 0.25rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .lg\:flex.gap-1 { display: flex; }
}

[data-menu] button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: var(--zc-text);
  background: transparent;
  transition: var(--zc-transition);
}

[data-theme="dark"] [data-menu] button {
  color: #e2e8f0;
}

[data-menu] button:hover {
  background: rgba(241, 245, 249, 0.7);
}

[data-theme="dark"] [data-menu] button:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-menu] button svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.9;
  stroke-width: 1.8;
}

[data-menu] button svg:last-child {
  opacity: 0.7;
  transition: transform 0.2s ease;
}

[data-menu]:hover button svg:last-child,
[data-menu]:focus-within button svg:last-child {
  transform: rotate(180deg);
}

/* ============================================= */
/*  Mega Menu Panels                             */
/* ============================================= */

[data-menu-panel] {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.75rem;
  z-index: 70;
  background: var(--zc-bg);
  border-radius: 1rem;
  box-shadow: var(--zc-shadow);
  padding: 1rem;
  width: max-content;
  max-width: 45rem;
  border: 1px solid var(--zc-border-dark);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.5rem);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

#menu-access { width: 45rem; }
#menu-finance, #menu-support { width: 57.5rem; }

[data-menu]:hover [data-menu-panel],
[data-menu]:focus-within [data-menu-panel] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

[data-menu-panel] .grid {
  display: grid;
  gap: 0.5rem;
}

#menu-access .grid { grid-template-columns: repeat(2, 1fr); }
#menu-finance .grid,
#menu-support .grid { grid-template-columns: repeat(3, 1fr); }

@media (min-width: 1024px) {
  #menu-finance .grid,
  #menu-support .grid { grid-template-columns: repeat(3, 1fr); }
}

[data-menu-panel] a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: var(--zc-transition);
  color: var(--zc-text);
}

[data-theme="dark"] [data-menu-panel] a {
  color: #e2e8f0;
}

[data-menu-panel] a:hover {
  background: rgba(244, 234, 255, 1);
}

[data-theme="dark"] [data-menu-panel] a:hover {
  background: rgba(67, 27, 111, 1);
}

[data-menu-panel] a svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.8;
}

[data-menu-panel] a div {
  flex: 1;
}

[data-menu-panel] a .font-medium {
  font-weight: 500;
  font-size: 0.9375rem;
}

[data-menu-panel] a p {
  font-size: 0.8125rem;
  color: var(--zc-text-light);
  margin-top: 0.125rem;
}

/* ============================================= */
/*  CTA Buttons (Desktop)                        */
/* ============================================= */

.ml-2 {
  margin-left: 0.5rem;
}


[data-theme="dark"]  .border {
    border: 1px solid #c83aff !important;
}

.border {
    border: 1px solid #7802a6 !important;
}

.px-4.py-2.rounded-xl {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--zc-transition);
}

.border-indigo-600 {
  border: 1px solid #4f46e5;
  color: #4f46e5;
  background: transparent;
}

.border-indigo-600:hover {
  background: #4f46e5;
  color: #ffffff;
}

.bg-indigo-600 {
  background: #7802a7;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bg-indigo-600:hover {
  background: #000000;
}

/* Dark mode overrides */
[data-theme="dark"] .border-indigo-600 {
  border-color: #a78bfa;
  color: #c4b5fd;
}

[data-theme="dark"] .border-indigo-600:hover {
  background: #7c3aed;
  color: #ffffff;
}

[data-theme="dark"] .bg-indigo-600 {
  background: #fff;
}

[data-theme="dark"] .bg-indigo-600:hover {
  background: #6d28d9;
}


.btn-primary {
    background: linear-gradient(90deg, #6a11cb, #232323);
    border: none;
    transition: all 0.3s ease;
}

/* ============================================= */
/*  Mobile Burger                                */
/* ============================================= */

.lg\:hidden button[data-mobile-open] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: transparent;
  transition: var(--zc-transition);
}

.lg\:hidden button[data-mobile-open]:hover {
  background: rgba(241, 245, 249, 0.7);
}

[data-theme="dark"] .lg\:hidden button[data-mobile-open]:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lg\:hidden button[data-mobile-open] svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.8;
}

/* ============================================= */
/*  Mobile Menu Overlay                          */
/* ============================================= */

#zc-mobile {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

#zc-mobile[style*="display: block"],
#zc-mobile.active {
  display: block;
}

#zc-mobile [data-mobile-backdrop] {
  position: absolute;
  inset: 0;
  background: var(--zc-backdrop);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#zc-mobile.active [data-mobile-backdrop] {
  opacity: 1;
}

#zc-mobile [data-mobile-panel] {
  margin-left: auto;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: var(--zc-bg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#zc-mobile.active [data-mobile-panel] {
  transform: translateX(0);
}

/* Mobile Header */
#zc-mobile .flex.h-16 {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1rem;
  padding-right: 1rem;
  border-bottom: 1px solid var(--zc-border);
}

#zc-mobile img {
  height: 1.75rem;
}

#zc-mobile img.hidden.dark\:inline {
  display: none;
  height: 2rem;
}

[data-theme="dark"] #zc-mobile img.dark\:hidden { display: none; }
[data-theme="dark"] #zc-mobile img.hidden.dark\:inline { display: block; }

/* Close Button */
#zc-mobile button[data-mobile-close] {
  padding: 0.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#zc-mobile button[data-mobile-close]:hover {
  background: rgba(241, 245, 249, 0.7);
}

[data-theme="dark"] #zc-mobile button[data-mobile-close]:hover {
  background: rgba(255, 255, 255, 0.1);
}

#zc-mobile button[data-mobile-close] svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.8;
}

/* Mobile Body */
#zc-mobile .h-\[calc\(100vh-4rem\)\] {
  height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 1rem;
}

@media (min-width: 640px) {
  #zc-mobile .h-\[calc\(100vh-4rem\)\] { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* Search */
#zc-mobile input[type="search"] {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background: var(--zc-bg);
  color: var(--zc-text);
  font-size: 0.9375rem;
  outline: none;
  transition: var(--zc-transition);
}

#zc-mobile input[type="search"]:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

[data-theme="dark"] #zc-mobile input[type="search"] {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #zc-mobile input[type="search"]:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.3);
}

/* Accordion */
[data-accordion-root] > section {
  border: 1px solid var(--zc-border);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

[data-accordion-root] button[data-acc-button] {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--zc-text);
  background: transparent;
  transition: var(--zc-transition);
}

[data-accordion-root] button[data-acc-button]:hover {
  background: rgba(241, 245, 249, 0.7);
}

[data-theme="dark"] [data-accordion-root] button[data-acc-button]:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-accordion-root] button[data-acc-button] span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-accordion-root] button[data-acc-button] svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 1.8;
}

.acc-chevron {
  transition: transform 0.2s ease;
}

[data-acc-button][aria-expanded="true"] .acc-chevron {
  transform: rotate(180deg);
}

[data-acc-panel] {
  padding: 0.5rem 0.5rem 0.5rem 0;
}

[data-acc-panel] a {
  display: block;
  padding: 0.75rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: var(--zc-text);
  transition: var(--zc-transition);
}

[data-acc-panel] a:hover {
  background: rgba(241, 245, 249, 0.7);
}

[data-theme="dark"] [data-acc-panel] a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile CTAs */
#zc-mobile .grid.grid-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

#zc-mobile .grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  transition: var(--zc-transition);
}

#zc-mobile .grid a:first-child {
  border: 1px solid #4f46e5;
  color: #4f46e5;
}

#zc-mobile .grid a:first-child:hover {
  background: #4f46e5;
  color: #fff;
}

#zc-mobile .grid a:last-child {
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#zc-mobile .grid a:last-child:hover {
  background: #4338ca;
}

/* Dark mode mobile CTAs */
[data-theme="dark"] #zc-mobile .grid a:first-child {
  border-color: #a78bfa;
  color: #c4b5fd;
}

[data-theme="dark"] #zc-mobile .grid a:first-child:hover {
  background: #7c3aed;
  color: #fff;
}

[data-theme="dark"] #zc-mobile .grid a:last-child {
  background: #7c3aed;
}

[data-theme="dark"] #zc-mobile .grid a:last-child:hover {
  background: #6d28d9;
}

/* ============================================= */
/*  Accessibility & Focus                        */
/* ============================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.5);
}

[data-theme="dark"] button:focus-visible,
[data-theme="dark"] a:focus-visible,
[data-theme="dark"] input:focus-visible {
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.5);
}



