:root {
  --main-color: #008000;
  --hover-color: #5733ff;
  --background-color: #fff;
  --border-color: #ccc;
  --text-color: #333;
  --highlight-color: #007bff;
  --ast-border-color: #ccc; /* Assuming same as border-color */
  --ast-comment-inputs-background: #fff; /* Assuming same as background-color */
}

.full-currency-converter-box {
  padding: 60px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1)
    0px 0px 0px 1px inset;
  margin-bottom: 30px;
  position: relative;
  padding-top: 50px;
}

.graph-navbar-elements {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff; /* Change as needed */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  width: 80%; /* Adjust as needed */
  padding: 10px 0;
  border-radius: 5px;
}

.graph-navbar-elements a {
  color: black; /* Change as needed */
  padding: 10px;
  font-size: 16px; /* Adjust as needed */
}

.navbar-sub-div:hover {
  background-color: #cdcdcd;
  border-radius: 4px;
  padding: 5px;
}

.navbar-sub-div {
  display: flex;
}
.navbar-sub-div img {
  background-color: transparent;
  width: 25px;
  height: 25px;
  margin-top: 7px;
}

.currency-converter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
}
#cc-from-currency {
  margin-left: 8px;
}

select,
#cc-amount {
  width: 100%;
  border-width: 2px;
  border-style: solid;
  border-color: rgb(196, 189, 189);
  border-radius: 6px;
  box-shadow: rgba(0, 17, 51, 0.05) 0px 3px 15px;
  padding: 12px;
  color: rgb(20, 30, 55);
  background: none;
  height: 55px;
  font-size: 20px;
}
#cc-reverse {
  margin-top: 30px;
  margin-left: 10px;
  margin-right: -10px;
  background-color: transparent;
  color: #061eff;
  font-size: 21px;
  border-radius: 70px;
  font-weight: 900;
}

label {
  font-weight: bold;
  font-size: 17px;
}

.rate-print-button button,
#graph-show-button {
  background-color: var(--main-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

#cc-print {
  background-color: white;
  color: var(--main-color);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid var(--main-color);
  transition: all 0.2s ease-in-out 0s;
}

.graph-button {
  display: flex;
  justify-content: end;
}

.rate-print-button button:hover {
  background-color: #008000;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.rate-showing {
  margin-top: 20px;
}

.bank-adjust {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

#cc-preview-rate {
  margin-left: 10px;
}

#cc-result {
  color: #00bf63;
  font-weight: 600;
}

/* Historical Chart Styles */
.historical-chart-section {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.chart-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.chart-controls label {
  font-weight: bold;
}

.chart-controls select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.simple-chart {
  background: white;
  border-radius: 4px;
}

.chart-point:hover {
  transform: scale(1.5);
  background: #005500 !important;
}

/* FAQ Styles */
.faq-section {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.faq-title {
  text-align: center;
  font-size: 21px;
  margin-bottom: 20px;
  color: #333;
}

.faq-container {
  border-top: 1px solid #ddd;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font-size: 1.01em;
  color: #333;
  cursor: pointer;
  text-align: left;
}

.faq-question:hover {
  background-color: none;
}

.faq-icon {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  margin-top: 10px;
  color: #555;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  display: block;
}

/* Remove exchange rate related styles */
#cc-increased-rate {
  display: none;
}

/* Table and Pagination Part */

.cc-table-container {
  display: none;
}

#noResults {
  text-align: center;
  color: red;
}
.cc-table-container {
  margin: 20px 0;
}
.cc-currency-table {
  width: 100%;
  border-collapse: collapse;
}
.cc-currency-table th,
.cc-currency-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
#searchBar {
  margin-bottom: 10px;
  padding: 8px;
  width: 100%;
}
/* Reserve space for table rows */
.cc-currency-table tbody tr {
  min-height: 50px; /* Adjust as needed */
}

/* Improve button layout */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  gap: 10px; /* Add space between buttons */
}

.pagination-button {
  background-color: #008000;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.pagination-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.pagination-button:hover:not(:disabled) {
  background-color: #005177;
}

#pageIndicator {
  margin: 0 10px;
  font-size: 16px;
}

#toCurrency {
  margin-left: 20px;
}

/* Table and Pagination Part END */

/* Update table headers for single rate column */
.cc-currency-table th:last-child,
.cc-currency-table td:last-child {
  text-align: center;
}

@media only screen and (max-width: 600px) {
  .currency-converter-box {
    display: inline-block;
    align-items: center;
  }

  #cc-from-currency {
    margin-left: 0px;
  }
  #toCurrency {
    margin-left: 0px;
  }

  /* #cc-reverse {
    margin-top: 30px;
    background-color: transparent;
    color: #35bf35;
    font-size: 21px;
    border-radius: 70px;
    font-weight: 900;
    border: 1px solid;
  } */
  .navbar-sub-div {
    margin-left: 10px;
  }

  .graph-navbar-elements {
    width: 100%;
  }

  .navbar-sub-div img {
    margin-top: 9px;
    margin-left: -4px;
  }
}

/* HTML: <div class="loader"></div> */
#cc-loader,
#loader {
  width: 50px;
  aspect-ratio: 1;
  background: url("https://i.ibb.co/GQLw0kM/fav-1.png") center center / contain no-repeat;
  animation: fade 2s infinite;
}

@keyframes fade {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
.rate-print-button button:hover {
  background-color: #4ac363;
  border-color: #ccc;
}
