body {
  background-color: #000000;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p {
  text-align: center;
  margin-bottom: 2rem;
}

label {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

/* Flex container to center both inputs together */
.controls-container {
  display: flex;
  justify-content: center; /* center whole group */
  align-items: flex-end;   /* align items at bottom */
  gap: 40px;               /* space between inputs */
  margin-bottom: 2rem;
}

/* Child containers for each input */
.autocomplete-container,
.period-container {
  display: flex;
  flex-direction: column;
  width: 250px;
  position: relative;
}

/* Cryptocurrency input */
#cryptoInput {
  width: 100%;
  padding: 8px;
  font-size: 1em;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  color: black;
}

/* Time period selector */
#periodSelect {
  width: 100%;
  padding: 8px;
  font-size: 1em;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: white;
  color: black;
}

/* Autocomplete dropdown */
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10000;
  list-style: none;
  margin: 0;
  padding: 0;
  color: black;
  border-radius: 0 0 4px 4px;
  margin-top: 0.5rem;
}

.autocomplete-list li {
  padding: 8px;
  cursor: pointer;
}

.autocomplete-list li:hover {
  background-color: #e0e0e0;
}

/* Highlighted suggestion (when using keyboard) */
.autocomplete-list li.active {
  background-color: #c0c0c0;
}

/* Centered image below */
.centered-image {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
}

.centered-image img {
  max-width: 200%; /* More responsive approach */
  max-height: 80vh; /* Limits height to 80% of viewport height */
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain; /* Ensures whole image is visible */
}

/* For larger screens only */
@media (min-width: 1200px) {
  .centered-image img {
    max-width: 2000px; /* Larger fixed width for big screens */
  }
}

/* Optional: smooth appearance */
.autocomplete-list.show {
  animation: fadeIn 0.15s ease-in;
}

.content {
  display: block;
  padding: 20px;
}

.tab-content {
  display: none;
}

.tab-content:not(.hidden) {
  display: block;
}

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

#reportSelect {
  width: 300px;
  padding: 8px;
  font-size: 1em;
  border-radius: 4px;
  border: 1px solid #444;
  background-color: #333;
  color: white;
}

#reportSelect option {
  background-color: #333;
  color: white;
}

#reportViewer {
  width: 100%;
  height: calc(100vh - 110px); /* Increase the height, makes iframe taller */
  margin-top: 8px;             /* Reduce the gap above the iframe */
  background-color: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid #444;
  display: block;
}
.content {
  display: block;
  padding: 0 20px 20px 20px; /* Remove top padding */
}

.content, #reportTab {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

#reportTab h2 {
  padding: 3px;
  margin-top: 2;             /* No space above */
  margin-bottom: 0.7rem;     /* Minimal space below */
  text-align: center;
}
.report-controls {
  display: flex;
  align-items: center;      /* Vertically align h2 and select */
  justify-content: center;  /* Center both together horizontally */
  gap: 20px;                /* Space between the h2 and select */
  margin-bottom: 1rem;
}

/* Optional: minimize margin in h2 for best alignment */
.report-controls h2 {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;   /* You can adjust the font size as needed */
}

/* Style the iframe contents (for HTML reports that support it) */
#reportViewer body {
  background-color: #1e1e1e !important;
  color: white !important;
}

/* Tab buttons styling */
.sidebar {
  background-color: #000000;
  padding: 15px;
  display: flex;
  gap: 10px;
}

.tab-button {
  padding: 10px 20px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.2s;
}

.tab-button:hover {
  background-color: #444;
}

.tab-button.active {
  background-color: #555;
  font-weight: bold;
}

.hidden {
  display: none;
}
