.knh-current {
    text-align: center;
    font-size: 3em;
    margin-bottom: 25px;
    display: flex;gap:15px;align-items: center;justify-content: center;width: 100%;flex: 1 1 100%;flex-wrap: wrap;
}
.knh-current strong { font-size: 1.7em; }

.knh-range-selector {
    text-align: center;
    font-size: 1.3em;
}

#kaspa-chart {
    max-height: 400px;
    margin-bottom: 20px;
    margin-top: 35px;
}

.knh-stats {
    margin-top: 15px;
    text-align: center;
}

.knh-notice {
    color: orange;
    text-align: center;
    margin: 10px 0;
}
.knh-current small{font-family: var(--lato); font-size: 16px;flex: 1 1 100%;position: relative;top: -20px;}


.chart-wrapper {
    position: relative;
    padding: 35px 35px 55px;
    border: solid 1px #fff;
    margin: 85px 0;
    background: rgba(255, 255, 255, 0.03);
}


#kaspa-stats { display: flex; justify-content: space-evenly; font-size: 1.2em; }
/* select */

.knh-range-selector select {
  appearance: none;        /* Remove default styling (Chrome, Safari, Edge) */
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 30px 6px 10px; /* extra right padding for arrow */
  font-size: 14px;
  line-height: 1.4;
  color: #333;

  cursor: pointer;
  outline: none;

  /* Subtle shadow for depth */
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);

  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Hover / focus states */
.knh-range-selector select:hover {
  border-color: #999;
}
.knh-range-selector select:focus {
  border-color: #70C7BA;
  box-shadow: 0 0 0 2px rgba(112, 199, 186, 0.3);
}

/* Optional: custom arrow */
.knh-range-selector {
  position: relative;
}
.knh-range-selector select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 16px;
}

/* Date inputs */
.knh-range-selector input[type="date"],
.knh-range-selector input[type="month"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 6px 10px;
  font-size: 14px;
  color: #333;

  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;

  outline: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-left: 6px;
}

.knh-range-selector input[type="date"]:focus,
.knh-range-selector input[type="month"]:focus {
  border-color: #49EACB;
  box-shadow: 0 0 0 2px rgba(73, 234, 203, 0.3);
}

/* Go button */
.knh-range-selector button#updateCustomRange {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;

  border: none;
  border-radius: 6px;
  cursor: pointer;

  background: #49EACB;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);

  margin-left: 8px;
  transition: transform 0.1s, box-shadow 0.2s;
}

.knh-range-selector button#updateCustomRange:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.knh-range-selector button#updateCustomRange:active {
  transform: scale(0.97);
}


/* tables */
.dataTables_wrapper .dataTables_length select{color: white;    margin: 0 5px;}
table.dataTable tbody tr:nth-child(even) {
    background: #181818;
}/* Table general styling */
#kaspa-nodes_wrapper {
    color: #fff;                  /* white text for readability */
    font-family: "Rubik", sans-serif;
}

#kaspa-nodes {
    width: 100%;
    border-collapse: collapse;
}

#kaspa-nodes th,
#kaspa-nodes td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Pagination container */
#kaspa-nodes_paginate {
    margin-top: 10px;
    text-align: center;
}

/* Pagination buttons */
#kaspa-nodes_paginate .paginate_button {
    background: transparent;
    color: #fff !important;
    border: none;
    padding: 6px 12px;
    margin: 0 2px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#kaspa-nodes_paginate .paginate_button.previous,
#kaspa-nodes_paginate .paginate_button.next:hover,
#kaspa-nodes_paginate .paginate_button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#kaspa-nodes_paginate .paginate_button.current {
    background-color: #4b9087;
    color: #fff !important;
}

/* Disable button style (prev/next when not available) */
#kaspa-nodes_paginate .paginate_button.disabled {
display: none;
}

/* Optional: previous/next arrows spacing */
#kaspa-nodes_paginate .paginate_button.previous,
#kaspa-nodes_paginate .paginate_button.next {
    font-weight: bold;
    font-size: 14px;
    background: transparent;
}


@media screen and (max-width: 750px) {
    .knh-current small{top:0;}
    #kaspa-stats {flex-direction: column; gap: 15px}
    #kaspa-stats p{margin-bottom: 0;}
       .chart-wrapper {
        padding-left: 0;
        border-left: unset;
        border-right: unset;
        padding-right: 0;
        background: transparent;
    }
    .knh-range-selector { flex-direction: column; display: flex; gap: 5px; }
    .knh-current{font-size: 2.5em;margin-top: 35px;}
    .knh-current strong { line-height: 1; margin-top: -20px;}
}