body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif !important;
  background-color: #0f0f0f;
  color: #e0e0e0;
  min-height: 100vh;
  line-height: 1.6;
}

i {
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900 !important;
  font-size: 100%;
  vertical-align: middle !important;
  padding-right: 5px !important;
}

* {
  font-family: 'Poppins', sans-serif !important;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.smaller-text {
  font-size: calc(100% - 1px);
}

#container {
  width: 93.5%;
  max-width: 93.5%;
  height: 360px;
  margin: 0 auto;
  padding: 10px 15px 15px 15px;
  border-radius: 16px;
  background-color: #1a1a1a;
}

h1 {
  text-align: center;
  font-weight: 700;
  background: #00bce7;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 2rem 0 -0.5rem;
  font-size: 2rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 188, 231, 0.1);
}

h2 {
  text-align: center;
  font-weight: 400;
  color: #e0e0e0;
  margin: 1.5rem auto;
  font-size: 14px;
  max-width: 800px;
  line-height: 1.7;
  padding: 0 1rem;
}

#info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 30px;
  margin: 48px auto;
  width: 95%;
  max-width: 95%;
  padding: 0 1rem;
}

.info-tile {
  background-color: #141414;
  border-radius: 24px;
  padding: 34px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.info-tile,
.info-tile:nth-child(1),
.info-tile:nth-child(2) {
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.09);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.info-tile:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.13);
  animation: pulse 1.5s infinite;
}

.info-tile::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 188, 231, 0.08) 0%,
    rgba(0, 188, 231, 0) 70%
  );
  transform: rotate(30deg);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.info-tile:hover::before {
  transform: rotate(0deg);
  background: radial-gradient(
    circle,
    rgba(0, 188, 231, 0.12) 0%,
    rgba(0, 188, 231, 0) 70%
  );
}

.info-tile:nth-child(1),
.info-tile:nth-child(2) {
  grid-column: span 2;
  height: 220px;
  padding: 25px;
}

.info-tile:nth-child(1)::before,
.info-tile:nth-child(2)::before {
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  transform: none;
}

.info-tile:nth-child(1):hover::before,
.info-tile:nth-child(2):hover::before {
  transform: none;
  background: radial-gradient(
    circle at center,
    rgba(0, 188, 231, 0.12) 0%,
    rgba(0, 188, 231, 0) 70%
  );
}

.info-tile-header {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.9px;
  color: #00bce7;
  margin-bottom: 24px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.info-tile-header::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #00bce7;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.info-tile:hover .info-tile-header::after {
  transform: scaleX(1);
}

.info-tile-value {
  font-size: 34px;
  font-weight: 800;
  color: #e0e0e0;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.info-tile:hover .info-tile-value {
  color: #00bce7;
  text-shadow: 0 2px 8px rgba(0, 188, 231, 0.3);
}

.info-tile-change {
  font-size: 15px;
  color: #e0e0e0;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.info-tile:hover .info-tile-change {
  color: #e0e0e0;
}

.info-tile-change strong {
  color: #e0e0e0;
  font-weight: 700;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 188, 231, 0.3);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 188, 231, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 188, 231, 0);
  }
}

.info-tile:hover {
  animation: pulse 1.5s infinite;
}

.button-container {
  position: fixed;
  right: 75px;
  top: 25px;
  z-index: 1000;
  transition: opacity 0.3s linear;
}

.button-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.timeframe-container {
  position: fixed;
  right: 75px;
  top: 145px;
  z-index: 999;
  transition: opacity 0.3s linear;
}

.timeframe-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.button-container button,
.timeframe-container button {
  display: block;
  padding: 12px 22px;
  font-size: 16px;
  color: #1e1e1e;
  background-color: #00bce7;
  border: none;
  cursor: pointer;
  will-change: transform, background-color, color, box-shadow;
  border-radius: 12px !important;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
  margin-bottom: 12px;
  width: 225px;
  text-align: center;
  font-weight: 400;
  transform-origin: center;
}

.button-container button.active,
.button-container button:hover,
.timeframe-container button.active,
.timeframe-container button:hover {
  background-color: #4dd0ee;
  color: #1e1e1e;
  box-shadow: 0 0 0 3px rgba(0, 188, 231, 0.3),
    0 4px 16px rgba(0, 188, 231, 0.1);
  transform: scale(1.02);
}

.button-container button:hover,
.button-container button:active,
.button-container button.active,
.button-container button:focus,
.timeframe-container button:hover,
.timeframe-container button:active,
.timeframe-container button:focus {
  border-radius: 12px !important;
}

@keyframes fixBorderRadius {
  from,
  to {
    border-radius: 12px !important;
  }
}

.button-container button:active,
.timeframe-container button:active {
  border-radius: 12px !important;
  transform: scale(1.02);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1e1e1e;
  min-width: 225px;
  z-index: 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1e1e1e;
  box-shadow: 0 4px 24px rgba(0, 188, 231, 0.1);
}

.dropdown-content button {
  background-color: #1e1e1e;
  color: #e0e0e0;
  padding: 14px 16px;
  text-decoration: none;
  display: block;
  border: none;
  width: 100%;
  text-align: left;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
  border-radius: 0 !important;
  margin-bottom: 0;
}

.dropdown-content button:hover {
  background-color: #2a2a2a;
  color: #4dd0ee;
  border-left: 3px solid #00bce7;
  padding-left: 13px;
  transform: scale(1.01);
  box-shadow: none;
  border-radius: 0 !important;
}

.dropdown-content button:not(:last-child) {
  margin-bottom: 8px;
}

.dropdown-content.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeframe-controls {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid #444444;
  min-width: 320px;
  z-index: 1001;
}

.timeframe-controls.show {
  display: block;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-group {
  margin-bottom: 12px;
}

.input-group label {
  display: block;
  color: #e0e0e0;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.input-group input[type='datetime-local'] {
  width: 100%;
  padding: 8px;
  background-color: #2a2a2a;
  border: 1px solid #444444;
  border-radius: 6px;
  color: #e0e0e0;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
}

.input-group input[type='datetime-local']:focus {
  outline: 2px solid #00bce7;
  border-color: #00bce7;
}

.timeframe-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.preset-btn {
  flex: 1 0 100%;
  padding: 8px 12px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
  width: auto !important;
  margin-bottom: 8px !important;
  background-color: #00bce7 !important;
  color: #1e1e1e !important;
}

.preset-btn:hover {
  background-color: #4dd0ee !important;
  transform: scale(1.02) !important;
}

.apply-btn,
.reset-btn {
  flex: 1;
  padding: 8px 12px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
  width: auto !important;
  margin-bottom: 0 !important;
}

.apply-btn {
  background-color: #00bce7 !important;
  color: #1e1e1e !important;
}

.apply-btn:hover {
  background-color: #4dd0ee !important;
  transform: scale(1.02) !important;
}

.reset-btn {
  background-color: #fd37a0 !important;
  color: #1e1e1e !important;
}

.reset-btn:hover {
  background-color: #ff4db3 !important;
  transform: scale(1.02) !important;
}

.highcharts-reset-zoom {
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.highcharts-background {
  fill: transparent !important;
}

.highcharts-grid-line {
  stroke: rgba(255, 255, 255, 0.08);
}

.highcharts-series path {
  filter: drop-shadow(0 4px 12px rgba(0, 188, 231, 0.1));
}

a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

a:hover {
  text-decoration: none;
  color: #00bce7;
}

a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -1px;
  left: 0;
  background-color: #00bce7;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.tables-container {
  display: none;
  justify-content: space-around;
  margin-top: 160px;
  margin-bottom: 20px;
  padding: 0 20px;
}

.scrollable-table-container {
  max-height: 1878px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #00bce7 #1e1e1e;
  overscroll-behavior: contain;
  border-radius: 12px;
}

.table-container {
  width: 46%;
  padding: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  background-color: #1e1e1e;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #e0e0e0;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.scrollable-table-container::-webkit-scrollbar {
  width: 8px;
}

.scrollable-table-container::-webkit-scrollbar-track {
  background: #1e1e1e;
  border-radius: 4px;
}

.scrollable-table-container::-webkit-scrollbar-thumb {
  background-color: #00bce7;
  border-radius: 4px;
  border: 2px solid #1e1e1e;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #444444;
}

th {
  background-color: #00bce7;
  color: #1e1e1e;
  position: sticky;
  top: 0;
  z-index: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: rgba(0, 188, 231, 0.1);
  box-shadow: -1px 0 0 #00bce7;
}

tbody tr {
  position: relative;
}

tbody tr:hover td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: #00bce7;
  border-radius: 2px 0 0 2px;
  z-index: 1;
}

tbody td:first-child {
  position: relative;
}

#datePicker {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border: 1px solid #444444;
  border-radius: 8px;
  padding: 10px;
  margin-right: 15px;
  font-size: 14px;
}

.time-display {
  padding-top: 4px;
  line-height: 1.3;
}

.primary-time {
  font-weight: 500;
  font-size: 1em;
}

.secondary-times {
  font-size: 0.9em;
  margin-top: 2px;
  padding-top: 2px;
}

#loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #0f0f0f;
  background: linear-gradient(135deg, #0f0f0f, #0f0f0f);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.spinner {
  border: 8px solid #1e1e1e;
  border-top: 8px solid #00bce7;
  filter: drop-shadow(0 0 8px rgba(0, 188, 231, 0.3));
  border-radius: 50%;
  width: 65px;
  height: 65px;
  animation: spin 1.25s linear infinite;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  backdrop-filter: blur(3px);
}

#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #1e1e1e;
  color: #e0e0e0;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  text-align: center;
  width: 90%;
  max-width: 500px;
  border: 1px solid #00bce7;
}

#popup h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #00bce7;
}

.cancel-button {
  background-color: #1e1e1e;
  border: 1px solid #fd37a0;
  color: #fd37a0;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.2s ease;
}

.cancel-button:hover {
  background-color: #fd37a0;
  color: #1e1e1e;
}

.cancel-button i {
  margin-right: 8px;
}

:focus {
  outline: 3px solid #00bce7 !important;
  outline-offset: 2px;
  box-shadow: 0 0 6px rgba(0, 188, 231, 0.7);
  border-radius: 6px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #00bce7 !important;
  outline-offset: 2px;
  box-shadow: 0 0 8px rgba(0, 188, 231, 0.7);
  border-radius: 6px;
}

:focus-visible {
  outline: 3px solid #00bce7;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(0, 188, 231, 0.3);
  border-radius: 4px;
}

button:hover,
a:hover,
input:hover,
textarea:hover,
select:hover {
  outline: none;
}

::-moz-focus-inner {
  border: 0;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

::selection {
  background-color: rgba(0, 188, 231, 0.3);
  color: #e0e0e0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

::-moz-selection {
  background-color: rgba(0, 188, 231, 0.3);
  color: #e0e0e0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 1200px) {
  #info {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .info-tile:nth-child(1),
  .info-tile:nth-child(2) {
    grid-column: span 1;
    height: auto;
  }
}

@media (max-width: 800px) {
  body {
    overflow-x: hidden;
  }

  #container {
    width: 96%;
    margin: 15px auto;
    padding: 15px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 14px;
  }

  #info {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 25px;
  }

  .info-tile:nth-child(1),
  .info-tile:nth-child(2) {
    grid-column: span 1;
  }

  .info-tile:nth-child(1),
  .info-tile:nth-child(2) {
    height: auto;
    padding: 25px;
  }

  .info-tile:nth-child(1)::before,
  .info-tile:nth-child(2)::before {
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    transform: rotate(30deg);
  }

  .info-tile:nth-child(1):hover::before,
  .info-tile:nth-child(2):hover::before {
    transform: rotate(0deg);
    background: radial-gradient(
      circle,
      rgba(0, 188, 231, 0.12) 0%,
      rgba(0, 188, 231, 0) 70%
    );
  }

  .info-tile {
    box-shadow: none;
    transform: scale(1.01);
    animation: none;
    padding: 25px;
  }

  .info-tile-header {
    font-size: 14px;
  }

  .info-tile-value {
    font-size: 32px;
  }

  .info-tile-change {
    font-size: 14px;
  }

  .info-tile::before {
    background: none;
    transform: none;
  }

  .button-container,
  .timeframe-container {
    position: static;
    text-align: center;
    margin-top: 20px;
    width: 100%;
  }

  .button-container button,
  .timeframe-container button,
  .dropdown-content button {
    font-size: 14px;
    padding: 10px 20px;
    margin: 10px auto;
    display: block;
    width: 92%;
    border-radius: 12px !important;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-content {
    width: 92%;
    left: 4%;
    right: 4%;
  }

  .timeframe-controls {
    position: static;
    width: 92%;
    margin: 10px auto;
    min-width: unset;
  }

  .apply-btn,
  .reset-btn,
  .preset-btn {
    flex: none !important;
    width: 92% !important;
    margin: 10px auto !important;
    display: block !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
  }

  .timeframe-buttons {
    flex-direction: column;
  }

  .tables-container {
    flex-direction: column;
    width: 100%;
    margin: 25px auto;
    padding: 0 10px;
  }

  .table-container {
    width: 100%;
    margin-bottom: 25px;
    padding: 15px;
  }

  .table-container > div:first-child {
    flex-direction: column !important;
    align-items: center !important;
  }

  .table-container h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  #datePicker {
    position: static !important;
    margin: 10px 0 0 0 !important;
    width: 200px;
  }

  .scrollable-table-container {
    max-height: 70vh;
    overflow: auto;
  }

  table {
    width: 100%;
    min-width: unset;
    font-size: 14px;
  }

  th,
  td {
    padding: 8px 4px;
    font-size: 12px;
    word-wrap: break-word;
  }

  th:first-child,
  td:first-child {
    min-width: 120px;
    position: sticky;
    left: 0;
    background-color: inherit;
    z-index: 2;
  }

  th:first-child {
    background-color: #00bce7;
  }

  tbody tr:hover {
    background-color: transparent !important;
    box-shadow: none !important;
  }

  tbody tr:hover td:first-child::before {
    display: none !important;
  }

  th:nth-child(2),
  td:nth-child(2) {
    min-width: 100px;
  }

  th:nth-child(3),
  td:nth-child(3) {
    min-width: 80px;
  }

  .time-display {
    line-height: 1.2;
  }

  .primary-time {
    font-size: 0.9em;
  }

  .secondary-times {
    font-size: 0.75em;
    margin-top: 1px;
  }
}
