.om-dash .loading-spinner {
  border-top-color: #1e84eb; 
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.om-dash .skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.om-dash .sortable-header {
  cursor: pointer;
  user-select: none;
}

.om-dash .sortable-header:hover {
  color: #1a2435;
}

.om-dash .fixed-table-height {
  overflow-y: auto;
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;  
  scroll-behavior: smooth;
  will-change: scroll-position;
}

/* expanding search */
.om-dash #searchWrapper {
  height: 45px;
  width: 45px;
  cursor: pointer;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transform-origin: right center;
  transition:
    width 280ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms ease-out,
    box-shadow 180ms ease-out,
    background-color 180ms ease-out;
}

.om-dash #searchWrapper.expanded {
  width: 270px;               
  border-color: #1e84eb;
}

.om-dash #searchWrapper:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.om-dash #searchIcon {
  transition: opacity 150ms ease-out, color 180ms ease-out;
}


.om-dash #searchWrapper input {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  padding-left: 2.35rem;  
  padding-right: 2.25rem; 
  font-size: 0.875rem;
  color: #0f172a;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease-out,
    transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.om-dash #searchWrapper.expanded input {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.om-dash #searchWrapper input:focus {
  outline: none;
  box-shadow: none;
}

.om-dash #searchClear {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background-color: rgba(148, 163, 184, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.om-dash {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.om-dash thead {
  transform: translateZ(0);
  backface-visibility: hidden;       
}

/* Copy tooltip styles */
.om-dash .copy-tooltip {
  position: relative;
  display: inline-block;
}

.om-dash .copy-tooltip .copy-tooltip-text {
  visibility: hidden;
  background-color: #1a2435;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 4px 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 12px;
  white-space: nowrap;
  z-index: 9999;
}

.om-dash .copy-tooltip .copy-tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1a2435 transparent transparent transparent;
}

.om-dash .copy-tooltip:hover .copy-tooltip-text {
  visibility: visible;
  opacity: 1;
}

.om-dash .copy-success {
  color: #10b981 !important; 
}

.om-dash .copy-success:hover {
  color: #10b981 !important; 
}

.om-dash .trend-active {
  border-color: rgba(30, 132, 235, 0.4) !important;
}

.om-dash .om-divider {
  width: 1px;
  min-width: 1px;
  height: 20px;
  align-self: center;
  background-color: rgba(148, 163, 184, 0.25);
  margin: 0 -0.2rem;
}

.om-dash #networkDropdownButton:hover {
  background-color: rgba(255, 255, 255, 0.5) !important;
}

.om-dash .trend-idle:hover {
  background-color: rgba(255, 255, 255, 0.5) !important;
}


.om-dash .token-col-name {
  width: 380px;  
  max-width: 380px;
}

.om-dash .lyket {
  min-height: 24px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
}

.om-dash .vote-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.om-dash .lyket {
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.om-dash .lyket > div {
  display: inline-flex !important;
  align-items: center !important;
  flex-direction: row !important;
  gap: 2px;
  padding: 4px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #ffffff;
  transition: border-color 700ms cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 80ms cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.om-dash .lyket button {
  width: auto !important;
  height: 24px !important;
  padding: 0 4px 0 16px !important;
  border-radius: 8px !important;
  background: transparent !important;
  position: relative;
  order: 0;
  transition: transform 700ms cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 80ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.om-dash .lyket button svg {
  opacity: 0 !important;
}

.om-dash .lyket button::before,
.om-dash .lyket button::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  transition: opacity 700ms cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 80ms cubic-bezier(0.25, 0.8, 0.25, 1);
  left: 8px;
  right: auto;
}

.om-dash .lyket button::before {
  opacity: 1;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.579 3.467c.71-1.067 2.132-1.067 2.842 0L12.975 8.8c.878 1.318.043 3.2-1.422 3.2H4.447c-1.464 0-2.3-1.882-1.422-3.2z' fill='none' stroke='%231e84eb' stroke-width='1.5' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}

.om-dash .lyket button::after {
  opacity: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.579 3.467c.71-1.067 2.132-1.067 2.842 0L12.975 8.8c.878 1.318.043 3.2-1.422 3.2H4.447c-1.464 0-2.3-1.882-1.422-3.2z' fill='%231e84eb'/></svg>") center / contain no-repeat;
}


.om-dash .lyket > div > button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0px !important;
  flex-direction: row !important;
}

.om-dash .lyket .vote-icon-spacer {
  width: 12px;
  height: 16px;
  display: inline-block;
  position: relative;
}

.om-dash .lyket .vote-count {
  margin-left: 6px;
  margin-right: 6px;
}

.om-dash .vote-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #1a2435;
  color: #ffffff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  white-space: nowrap;
  z-index: 10;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.om-dash .vote-tooltip.show {
  opacity: 1;
}

.om-dash .vote-cell {
  position: relative;
  overflow: visible;
}

.om-dash .vote-toast {
  position: fixed;
  right: 24px;
  top: 24px;
  background: #1a2435;
  color: #ffffff;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  max-width: 360px;
  z-index: 9999;
}

.om-dash .vote-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.om-dash .vote-toast.info {
  background: #1a2435;
}

.om-dash .vote-toast.warn {
  background: #7c2d12;
}

.om-dash .vote-toast.error {
  background: #7f1d1d;
}

.om-dash .lyket > div > button > div {
  margin: 0 !important;
  line-height: 1;
}

.om-dash .lyket > div > button > div:last-child {
  min-width: 15px;
  text-align: right;
  font-weight: 600;
}

.om-dash .lyket > div:hover {
  border-color: #1e84eb;
}

.om-dash .lyket.is-disabled > div {
  opacity: 0.6;
  cursor: not-allowed;
}

.om-dash .lyket.is-disabled button {
  cursor: not-allowed;
}


.om-dash .lyket.is-voted button::after,
.om-dash .lyket button[aria-pressed="true"]::after,
.om-dash .lyket button.is-voted::after {
  opacity: 1;
}

.om-dash .lyket.is-voted button::before,
.om-dash .lyket button[aria-pressed="true"]::before,
.om-dash .lyket button.is-voted::before {
  opacity: 0;
}

.om-dash .lyket.is-loading > div {
  opacity: 0.8;
}

.om-dash .lyket.is-loading button::before {
  opacity: 1;
  background: none;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  border-top-color: #1e84eb;
  animation: spin 0.8s linear infinite;
}

.om-dash .lyket.is-loading button::after {
  opacity: 0;
}

.om-dash .trend-window-toggle {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  padding: 4px;
}

.om-dash .trend-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #1a2435;
  background: transparent;
  line-height: 1;
  min-width: 44px;
}

.om-dash .trend-pill.bg-brand-blue\/15 {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.24);
}

.om-dash .trend-pill.text-brand-blue {
  color: #1e84eb;
}

.om-dash .trend-pill:hover {
  background: rgba(15, 23, 42, 0.04);
}

@media (max-width: 767px) {
  .om-dash #searchRow {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .om-dash #trendingContainer {
    gap: 6px;
  }

  .om-dash #trendingTab {
    padding-left: 10px;
    padding-right: 10px;
  }

  .om-dash #selectedNetworkLabel {
    display: none;
  }

  .om-dash #networkDropdownButton {
    padding-left: 10px;
    padding-right: 10px;
  }

  .om-dash #networkDropdownButton,
  .om-dash #trendingTab {
    height: 40px;
    display: inline-flex;
    align-items: center;
  }
}


  .om-dash #networkDropdownButton {
    border-width: 1px;
    border-style: solid;
    border-color: #e2e8f0;
  }

  .om-dash #requestChainButton {
    border-width: 1px;
    border-style: solid;
    border-color: #e2e8f0;
  }

  /* Base pagination button: no border by default */
  .om-dash #pagination .page-btn {
    border: none;
  }

  /* Active numbered button only */
  .om-dash #pagination .page-btn-active {
    border: 1px solid #1e84eb; /* brand.blue */
  }

  #om-dashboard #trendingTab {
    border: 1px solid #e2e8f0;
  }
  #om-dashboard #trendingTab.trend-active {
    border-color: rgba(30, 132, 235, 0.4);
  }

@media (max-width: 767px) {

  .om-dash .sticky-first-col {
    position: sticky;
    left: 0;
    z-index: 40; 
    background-color: #ffffff;    
  }

  .om-dash thead .sticky-first-col {
    z-index: 50;         
            
  }

  .om-dash .token-col-name {
    width: 240px;
    max-width: 240px;
  }
  
  .om-dash #searchRow {
    position: relative;
    gap: 0.75rem; 
  }

  .om-dash #networkContainer {
    flex-shrink: 0;
    transition: opacity 150ms ease-out;
  }

  .om-dash #searchRow.search-open #networkContainer {
    display: none;       
  }

  .om-dash #searchRow.search-open #trendingContainer {
    display: none;
  }

  .om-dash #searchRow.search-open #searchWrapper {
    width: 100% !important;   
  }
}
