:root{
  --ticker-h: 50px;
  --z-ticker: 1100;
  --z-aside: 1090;   /* ↑ from 1050 */
  --z-drawer: 1085;  /* chat drawer panel */
  --z-toolbar: 1020;
  --z-menu: 1030;
}

.dhyana-ticker-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    height: 50px; /* Adjust as needed */
    line-height: 50px; /* Adjust as needed */
    z-index: var(--z-ticker);
}

.dhyana-ticker-wrap {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%; /* Initial offset */
}
.dhyana-stock-item {
    padding: 0 15px; /* Spacing between items */
    display: inline-block;
}

.dhyana-video-container {
    max-width: 675px; /* Maximum width for the video */
    margin: auto; /* Center align the video player */
    position: relative; /* Positioning context for the absolute positioning of the child video */
    width: 100%; /* Ensure it takes up the width of its parent up to max-width */
}

.dhyana-align-center {
    text-align: center;
}

.dhyana-align-right {
    text-align: right;
}

#compare_xcorrcardbody .dhyana-card-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

#xcorr_image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.dhyana-hidden-block {
    display: none;
}

/* Container styling */
#dhyana_loadingContainer {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: Arial, sans-serif;
  }
  
  /* Message styling */
  #dhyana_messageText {
    font-size: 14px;
    margin-bottom: 15px;
    color: #333;
  }
  
  /* Progress bar container */
  .dhyana-reverse-progress-container {
    position: relative;
    width: 100%;
    height: 25px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
  }
  
  /* Progress bar with smooth transition */
  #dhyana_progressBar {
    height: 100%;
    background: #3498db;
    width: 100%;
    transition: width 0.1s linear;
  }
  
  /* Countdown number styling */
  #dhyana_progressNumber {
    font-size: 20px;
    font-weight: bold;
    color: #555;
  }



/* Container */
.dhyana-toolbar {
  position: relative;            /* keeps dropdowns positioned correctly */
  z-index: var(--z-toolbar);                 /* below your ticker (keep ticker > 1060), above content */
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 6px 10px;
  margin: 12px 0 16px 0;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.06);
  overflow: visible;             /* ensure dropdowns aren’t clipped */
}

/* Optional: make it sticky under your ticker. Remove if you want it static. */
.dhyana-toolbar--sticky {
  position: sticky;
  top: var(--ticker-h);
}


.dhyana-toolbar__list {
  display: flex;
  align-items: center;    /* <- key */
  gap: 8px 2px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Item + trigger */
.dhyana-toolbar__item { position: relative; }
.dhyana-toolbar__link {
  display: inline-flex;       /* same box for both <a> and <button> */
  align-items: center;        /* vertical centering */
  justify-content: center;
  height: 36px;               /* pick your height (34–40px works well) */
  padding: 0 12px;            /* horizontal padding only */
  margin: 0;
  box-sizing: border-box;

  text-decoration: none;      /* remove underline on <a> */
  font: inherit;
  font-weight: 600;
  line-height: 1;             /* eliminate baseline wobble */
  color: #222;

  background: transparent;
  border: 0;                  /* neutralize <button> default */
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.dhyana-toolbar__link:hover,
.dhyana-toolbar__link--active {
  background: rgba(0,0,0,0.04);
}

/* Dropdown */
.dhyana-toolbar__dropdown {
  position: absolute;
  top: 100%;                 /* no calc gap */
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  padding: 6px;
  opacity: 0;
  transform: translateY(8px);     /* smooth entrance only via transform */
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
  z-index: var(--z-menu);
}

@media (hover:hover) {
  .dhyana-toolbar__dropdown::before {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: -10px;  height: 10px;     /* hover bridge */
  }
  .dhyana-toolbar__item:hover > .dhyana-toolbar__dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ---------- Stacking order for sidebar + chat drawers ---------- */
/* keep ticker and toolbar settings you already have */

.dhyana-toolbar .dhyana-toolbar__dropdown { z-index: var(--z-menu); }

.dhyana-toolbar__dropdown-item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #222;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.dhyana-toolbar__dropdown-item:hover {
  background: rgba(0,0,0,0.04);
  color: #222;
}

/* SIDEBAR (left) — raise the panel, but keep its overlay just below it */
/* Fallbacks when Metronic inserts the overlay as a sibling (mobile) */
#kt_app_sidebar + .drawer-overlay,
#kt_app_sidebar ~ .drawer-overlay {
  z-index: calc(var(--z-aside) - 1) !important;   /* below sidebar panel */
}

#kt_drawer_chat + .drawer-overlay,
#kt_drawer_chat ~ .drawer-overlay {
  z-index: calc(var(--z-drawer) - 1) !important;  /* below chat panel */
}

/* SIDEBAR (panel & overlay) */
#kt_app_sidebar,
.app-sidebar,
.drawer[data-kt-drawer-name="app-sidebar"] .drawer-content { z-index: var(--z-aside) !important; }
.drawer[data-kt-drawer-name="app-sidebar"] .drawer-overlay { z-index: calc(var(--z-aside) - 1) !important; }

/* CHAT (panel & overlay) */
#kt_drawer_chat,
.drawer[data-kt-drawer-name="chat"] .drawer-content { z-index: var(--z-drawer) !important; }
.drawer[data-kt-drawer-name="chat"] .drawer-overlay { z-index: calc(var(--z-drawer) - 1) !important; }

/* Cover installs that use data-kt-drawer-name="aside" */
.drawer[data-kt-drawer-name="aside"] .drawer-content {
  z-index: var(--z-aside) !important;
}
.drawer[data-kt-drawer-name="aside"] .drawer-overlay {
  z-index: calc(var(--z-aside) - 1) !important;
}

/* If the overlay is injected as a sibling next to an 'aside'-named drawer */
[data-kt-drawer-name="aside"] + .drawer-overlay,
[data-kt-drawer-name="aside"] ~ .drawer-overlay {
  z-index: calc(var(--z-aside) - 1) !important;
}

/* Keep modals above drawers, overlays, toolbar, etc. */
.modal,
.modal.show {
  z-index: 2000 !important;
}
.modal-backdrop,
.modal-backdrop.show {
  z-index: 1990 !important; /* just under the modal panel */
}
