.crypto-text-container {
  font-family: "Open Sans", Arial, sans-serif; /* Use an easy-reading font */
    font-size: 1.1rem; /* This will be 18px */
    line-height: 1.6; /* Good line spacing for readability */
    color: var(--text-primary); /* Good contrast */
    max-width: 55rem; /* Max width of 720px for optimal line length */
    margin: 0 auto; /* Centers the content block horizontally */
    padding: 0 1rem; /* Optional: Add some padding on the sides for smaller screens, 16px here */

}


/* Ticker Styling */
.ticker-container {
  width: auto;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  background-color: var(--meter-background);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}
    
.ticker {
  display: inline-block;
  animation: ticker 180s linear infinite;
}
    
.ticker:hover {
  animation-play-state: paused;
}
    
.ticker-item {
  display: inline-block;
  padding: 10px;
  min-width: 200px;
  font-family: Verdana, Geneva, sans-serif;
}
    
.ticker-item a {
  text-decoration: none;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
    
.ticker-item a:hover {
  text-decoration: underline;
}
    
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* End Ticker Styling */

/* CSS classes directly referenced in the content-crypto-coins.php HTML output */

.entry-header {
  /* Used for the H1 title wrapper */
}

.entry-content {
  /* Main content wrapper for the page */
}

.crypto-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: var(--crypto-disclaimer-bg);

  border: 1px solid #ff3535;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  max-width: 100%;
}

.crypto-info-circle {
  flex-shrink: 0; /* Prevents the icon from shrinking */
  margin-top: 2px;
}

.caption1 {
  font-size: 14px;
  line-height: 1.5;
  	color: var(--crypto-disclaimer-txt);
}

.coin-financial-holder {
  /* Wrapper for various financial info sections */
}

.coin-financial-heading {
  display: inline-block; /* Allows float:left children to align */
  width: 100%;
}

.coin-financial-img,
.coin-financial-h2 {
	margin-top:40px;
  float: left; /* Aligns image and H2 side-by-side */
}

.coin-financial-img img { /* Direct element styling for the coin image */
  margin-top: 10px;
  margin-right: 10px;
  max-width: 50px;
  height: auto;
}

.coin-financial-h2 {
  color:var(--text-primary);

  /* No specific styles beyond float:left provided in your snippet, relies on browser defaults */
}

.coin-financial-container {
  margin-bottom:20px;
}

.coin-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(21em, 1fr)); /* Responsive grid */
}

.coin-info-container {
  min-height: 30vh;
  margin: 5px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: var(--meter-background);
}

.coin-info-container h3 { /* Direct element styling for headings within info containers */
  margin: 0 0 18px 0;
  color: var(--text-primary);
  font-size: 24px;
}

.coin-financial-txt {
  width:100%;
  /* Wrapper for financial list items */
}

.coin-financial-txt ul { /* Direct element styling for unordered lists */
  list-style-type: none; /* Removes bullet points */
  padding-left: 0;
  margin-left: 0;
	margin-right:0;
	padding-right:0;
}

.coin-financial-txt li { /* Direct element styling for list items */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
	width:100%;
}

.coin-financial-txt .label {
  /*font-weight: bold;*/
}

.coin-financial-txt .value {
  text-align: right;
  flex: 1; /* Allows the value to take up remaining space */
}
.crypto-meter {

}
.meter-wrapper {

  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- Meter Specific Styles (from functions/logic, implicitly used by PHP for meter creation) --- */
.crypto-meters-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  /*max-width: 1000px;*/
	width: 100%;
  padding: 10px;
}

.meter-outer-container {
  display: flex;
  flex-direction: column;
  /*flex: 1 1 350px;
  max-width: 600px;*/
	/* This is the key for two per row: */
  flex: 1 1 calc(50% - 10px); /* Each meter takes ~50% width minus half the gap (20px / 2 = 10px) */
  min-width: 300px; /* Optional: Sets a minimum width for each meter before they wrap. Adjust as needed. */
  box-sizing: border-box; /* Crucial for calc() to work correctly with padding/border */

  background: var(--meter-background);;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  height: 230px;
  text-align: center;
  font-family: inherit;
	line-height:1.4;
}

.meter-title h3 {
  margin-top: 10px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.crypto-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.meter-percent-label-holder {
  height: 8%;
  width: 80%;
  position: relative;
  margin: 0 auto;
  white-space: nowrap;
}

.meter-percent-labels {
  position: absolute;
  transform: translateX(-50%);
  display: inline-block;
  white-space: nowrap;
  font-size: 14px;
  font-weight: bold;
	
  bottom: 2px;
  color: #333; /* Default, overridden by JS */
}

.meter-bar-container {
  height: 46px;
  width: 80%;
  position: relative;
  margin: 0 auto;
}

.meter-percent-bar {
  height: 5px;
  width: 100%;
  display: flex;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
  background-color: #ddd;
}

.meter-green-segment {
  background: #00b000;
  height: 100%;
}
.meter-red-segment {
  background: #ff2000;
  height: 100%;
}

.meter-gradient-bar, .bb-meter-gradient-bar  {
  position: absolute;
  bottom: 0;
  height: 14px;
  width: 100%;
  background: linear-gradient(to right, #EE0000 0%, #FF9900 25%, #FFFF00 50%, #99CC00 75%, #009900 100%);
  border-radius: 10px;
  z-index: 2;
}

.meter-svg-indicator {
  position: absolute;
  bottom: -2px;
  transform: translateX(-30%);
  stroke: black;
  stroke-width: 4px;
  z-index: 5;
  width: 10px;
  height: 48px;
}

.meter-current-price-label {
  position: absolute;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: bold;
  color: var(--text-primary);
  white-space: nowrap;
  bottom: 19px;
  z-index: 6;
  padding: 4px 4px 3px 4px;

	line-height:0.7;
	border: 1px #000 solid;
  border-radius: 3px;
}

.meter-labels-container {
  height: 10%;
  position: relative;
  width: 80%;
  margin: 0 auto;
  margin-bottom: 0px;
	color: var(--text-primary);
}

.meter-value-labels {
  transform: translateX(-50%);
  display: inline-block;
  white-space: nowrap;
  position: absolute;
  margin-top: 4px;
  font-size: 14px;
  font-weight: bold;
  padding: 0 2px;
  color: var(--text-primary) !important;
}

/* These specific overrides ensure proper color for text in meters */
.meter-outer-container .meter-labels-container {
  color: #333 !important;
}

.meter-outer-container .meter-percent-label-holder .meter-percent-labels {
  /* color will be set by JavaScript dynamically */
}

.coin-graph {
  padding-top:20px;
	padding-bottom:20px;
  /* No specific styles beyond being a container for the chart */
}

.mychart-wrapper {
  /* No direct styles, acts as a wrapper for chart-container */
	border: 1px solid #ccc;
  border-radius: 8px;
	color: var(--text-primary);
	padding-bottom: 20px;
	background-color:var(--meter-background);
}

.chart-container {
  width: 100%;
  max-width: 900px;
  height: 400px;
  margin: 20px auto;
  /*border: 1px solid #ccc;
  border-radius: 8px;*/
  background-color: var(--dataset-bg-color);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.chart-container canvas { /* Direct element styling for the Chart.js canvas */
  display: block;
  width: 100%;
  height: 100%;
}

.controls {
  margin-top: 10px;
  display: flex;
  gap: 20px;
}

.controls label { /* Direct element styling for chart control labels */
  display: flex;
  align-items: center;
  cursor: pointer;
}

.controls input[type="checkbox"] { /* Direct element styling for chart control checkboxes */
  margin-right: 5px;
}

.coin-description {
  /* Container for the coin description text, always present */
			color:var(--text-primary);
}



/* --- Conditional Price Color Classes (dynamically applied by PHP) --- */
.price-up {
  color: #16c784; /* Green for positive change */
}

.price-down {
  color: #ea3943; /* Red for negative change */
}

.price-neutral {
  color: #666; /* Gray for no change */
}






/* CSS classes directly referenced in the archive-crypto-coins.php HTML output */

.content-holder {
  overflow: hidden;
}

.scroll-notice {
  float: right;
  min-width: 20%;
  height: 30px;
  line-height: 30px;
  /*font-size: 13px;*/
  color: #a5a5a5;
  margin-bottom: 5px;
}

.notice-text {
  display: none;
}

.table-wrapper {
  position: relative;
  overflow-x: auto;
  width: 100%;
  overflow-y: visible;
  z-index: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 780px;
  overflow-y: visible;
}

th,
td {
  padding: 6px 3px;
  border-bottom: 2px solid #ccc;
  font-size: 15px; /* RE-ADDED: This likely sets the desktop font size */
  overflow: visible;
  position: relative;
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 2; /* Keep this for the sticky column overlap fix */
  background-color: var(--content-bg); /* Keep this for the sticky column overlap fix */
}

.coin-info-h {
  text-align: left;
}

.tooltip-trigger {
  /* No direct styles */
}

.exclamation-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  background: #ffc3a3;
  color: #333;
  border-radius: 50%;
  font-weight: bold;
  font-size: 12px;
  vertical-align: super;
  margin-left: 4px;
  cursor: pointer;
}

#tooltip-box {
  position: fixed;
  background: #fcfcfe;
  color: #000;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  font-size: 0.9em;
  font-weight: normal;
  white-space: normal;
  max-width: 300px;
  text-align: left;
  line-height: 1.4;
  pointer-events: none;
  z-index: 2147483647; /* Set to the highest possible z-index value (max integer value) */
  display: none;

  border: 1px solid rgba(0, 0, 0, 0.1);

  opacity: 0;
  transition: opacity 0.2s ease-out;

  /* --- NEW ADDITIONS TO FORCE STACKING CONTEXT --- */
  transform: none !important; /* Neutralize any inherited transform that might trap it */
  filter: none !important;    /* Neutralize any inherited filter */
  perspective: none !important; /* Neutralize any inherited perspective */
  isolation: isolate;         /* Explicitly create a new stacking context for the tooltip */
  will-change: transform, opacity; /* Hint to the browser for better performance, can help with stacking */
}

#tooltip-box.is-visible {
    opacity: 1;
}

/* Keep the exclamation icon styles */
.exclamation-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background: #ffc3a3;
    color: #333;
    border-radius: 50%;
    font-weight: bold;
    font-size: 11px;
    vertical-align: super;
    margin-left: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.exclamation-icon:hover {
    background-color: #ff9966;
}

/* Keep the tooltip content styles */
#tooltip-box p {
    margin-bottom: 0.5em;
}
#tooltip-box p:last-child {
    margin-bottom: 0;
}
#tooltip-box b {
    font-weight: bold;
}

.coin-info {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 180px;
  max-width: 100%;
  /* No font-size here, it's inherited from td/th */
}

.coin-info a {
  text-decoration: none;
  color: var(---text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.coin-info a:hover {
  text-decoration: underline;
}

.coin-info a:visited {
  color: var(---text-primary);
}

.coin-image {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.coin-name {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.2;
  /* No font-size here, inherited from td */
}

.coin-price {
  white-space: nowrap;
  width: auto;
  text-align: right;
  /* No font-size here, inherited from td */
}

.coin-market-cap {
  white-space: nowrap;
  width: auto;
  text-align: right;
  /* No font-size here, inherited from td */
}

.market-cap-change,
.coin-24h-change,
.coin-7d-change {
  white-space: nowrap;
  width: auto;
  text-align: right;
  /* No font-size here, inherited from td */
}

.sparkline-container {
  min-width: 130px;
  width: auto;
  height: 50px;
}

.sparkline {
  width: 100%;
  height: 100%;
}

.no-data {
  /* Message displayed if sparkline data is unavailable */
}

.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.pagination {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-grow: 1;
}

.pagination a {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
	background: var(--meter-background);
	color: var(--text-primary);
}

.pagination a:hover {
  background: #99a1b1;
}

a:visited {
  
  color: var(--text-primary);
}

.current-page {
  background: #99a1b1;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* --- Conditional Price Color Classes (dynamically applied by PHP) --- */
.price-up {
  color: #16c784;
}

.price-down {
  color: #ea3943;
}

.price-neutral {
  color: #666;
}

/* --- Ad Styles --- */
.ads-style-div1,
.ads-style-div2,
.ads-style-div3,
.ads-style-div4 {
  /* Add specific styles here if you want them to be visible/styled. */
}

/* --- Media Queries for Responsive Design --- */
@media (max-width: 768px) {
  /* ONLY apply font size and padding changes on mobile */
  /* This rule will now OVERRIDE the 14px from th, td when on mobile */
  th,
  td {
    font-size: 13px; /* Smaller font for mobile, specifically overrides default th, td */
    padding: 4px; /* Adjust padding for mobile */
  }

  .coin-image {
    width: 24px;
    height: 24px;
  }

  .pagination-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .coins-per-page {
    padding-right: 0;
    margin-left: 0;
    float: none;
    width: 100%;
  }
	
}