/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  background: #121212;
  color: #fff;
  margin: 0;
  padding: 20px;
  text-align: center;
}

header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  background: #1e1e1e;
  border-bottom: 1px solid #4caf50;
  margin-bottom: 20px;
}

nav {
  display: flex;
  align-items: center;
}
nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
nav ul li {
  margin-left: 20px;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
}

header .logo img {
  width: 200px;
}
/* Market Trend Element */
#market-trend {
  font-size: 16px;
  font-weight: bold;
  color: #4caf50;
}
/* Price ticker container */
#crypto-prices {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 12px;
  width: 80%;
}
/* Extra coins dropdown - vertical sliding panel */
#crypto-extra {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1e1e1e;
  border: 1px solid #4caf50;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
  font-size: 13px;
}
#crypto-extra.show {
  max-height: 500px; /* adjust if necessary */
  opacity: 1;
}
/* Toggle Arrow */
#toggle-extra {
  background: none;
  border: none;
  color: #4caf50;
  cursor: pointer;
  font-size: 16px;
  margin-left: 10px;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* Tab Navigation */
.tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tablink {
  background: #1e1e1e;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  color: #ffffff;
  min-width: 120px;
}

.tablink:hover, .tablink.active {
  background: #4caf50;
  color: white;
  transform: scale(1.05);
}

/* Tab Content */
.tabcontent {
  display: none;
  padding: 25px;
  background: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 128, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

.tabcontent.active {
  display: block;
}

/* Calculator Input and Select */
.calculator input,
.calculator select {
  width: 90%;
  max-width: 400px;
  padding: 14px;
  margin: 12px 0;
  font-size: 1rem;
  border: 2px solid #4caf50;
  border-radius: 8px;
  background: #222!important;
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 255, 128, 0.2);
}

.calculator input:focus,
.calculator select:focus {
  outline: none;
  border-color: #00ff99;
  box-shadow: 0 0 15px rgba(0, 255, 128, 0.5);
}

/* Dropdown Styling */
.calculator select {
  appearance: none;
  background: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff' width='18' height='18'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

/* Calculate Button */
.calculator button {
  width: 90%;
  max-width: 400px;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #4caf50, #00ff99);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(0, 255, 128, 0.3);
}

.calculator button:hover {
  background: linear-gradient(135deg, #00ff99, #4caf50);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 255, 128, 0.5);
}

.calculator button:active {
  transform: scale(0.98);
}

/* Result Box */
.result {
  margin-top: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #4caf50;
}


/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Select2 Container */
.select2-container--default .select2-selection--single {
  background: #222 !important;
  border: 2px solid #4caf50 !important;
  border-radius: 8px !important;
  height: 48px !important;
  transition: all 0.3s ease !important;
}

/* Hover State */
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #00ff99 !important;
  box-shadow: 0 0 15px rgba(0, 255, 128, 0.5) !important;
}

/* Displayed Text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #ffffff !important;
  line-height: 44px !important;
  padding-left: 15px !important;
  font-size: 1rem !important;
  
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 8px !important;
  padding-right: 35px!important;
}

.select2-search--dropdown .select2-search__field {
  width: 94%!important;
}
.select2 {
  width: 400px!important;
}

/* Dropdown Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  right: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #fff transparent transparent transparent !important;
  border-width: 6px 6px 0 6px !important;
}

/* Dropdown Menu */
.select2-container--default .select2-dropdown {
  background: #222 !important;
  border: 2px solid #4caf50 !important;
  border-radius: 8px !important;
  overflow: hidden;
}

/* Dropdown Options */
.select2-container--default .select2-results__option {
  padding: 12px 15px !important;
  font-size: 1rem !important;
  color: #fff !important;
}

/* Hovered Option */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: #4caf50 !important;
  color: #fff !important;
}

/* Selected Option */
.select2-container--default .select2-results__option[aria-selected=true] {
  background: #00ff99 !important;
  color: #121212 !important;
}

/* Search Field */
.select2-search--dropdown .select2-search__field {
  background: #333 !important;
  border: 1px solid #4caf50 !important;
  color: #fff !important;
  margin: 10px;
  border-radius: 6px;
  padding: 8px;
}

/* Match native select animation */
.select2-container {
  transition: all 0.3s ease !important;
}

/* Scrollbar Styling */
.select2-results__options::-webkit-scrollbar {
  width: 8px;
  background: #333;
}

.select2-results__options::-webkit-scrollbar-thumb {
  background: #4caf50;
  border-radius: 4px;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
  background: #00ff99;
}

/* For Firefox */
.select2-results__options {
  scrollbar-width: thin;
  scrollbar-color: #4caf50 #333;
}

#crypto-extra {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1e1e1e;
  border: 1px solid #4caf50;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

#crypto-extra.show {
  max-height: 500px; /* adjust if necessary */
  opacity: 1;
}

.market-cap{
font-size: 10px; font-weight: bold; margin-bottom: 20px;
}
#date::-webkit-calendar-picker-indicator {
  filter: invert(1); /* Inverts the color to white */
}


/* styles.css */

/* Footer Styling */
#footer {
  color: white;
  padding: 20px 0;
  text-align: center;
}

#footer h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

#footer p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

#footer .footer-bottom {
  border-top: 1px solid #4caf50;
  padding-top: 10px;
  font-size: 12px;
  margin-top: 8px;
}

#footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-links {
  width: 45%; /* Adjust based on design preference */
  text-align: left;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 5px 0;
}

.footer-links a {
  color: #ecf0f1;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-right {
  width: 45%;
  text-align: left;
}

.footer-logo {
  width: 140px;
  height: auto;
  margin-bottom: 10px;
}

footer button {
  background: #27ae60;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Adjust layout for smaller screens */
@media (max-width: 768px) {
  #footer .footer-container {
      flex-direction: column;
      align-items: center;
  }

  .footer-links, .footer-right {
      width: 100%;
      text-align: center;
  }

  footer button {
      margin-top: 10px;
  }

  .tabs {
    flex-direction: column;
    align-items: center;
  }

  .tablink {
    width: 90%;
  }
  #amount
  {
    width: 81% !important;
  }
.logo{
  margin: -17px 18px -23px -25px;
}
.logo img {
  height: 80px;
  width: inherit!important;
}
header {
  padding: 8px 5px;
}
nav ul {
  display: none;
  flex-direction: column;
  width: 100%;
  background: #1e1e1e;
  position: absolute;
  top: 60px;
  left: 0;
  padding: 10px 0;
}
nav ul li {
  margin: 10px 0;
  text-align: center;
}
.menu-toggle {
  display: flex;
}
}
