/* === Global styles === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  color: #fff;
  background: url("./assets/images/background.jpg") center/cover no-repeat;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

/* === Navbar === */
.navbar {
  position: relative;
  top: 0; left: 0; right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 1.2rem;
  z-index: 1000;
}

.navbar__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}

.navbar__logo img {
  height: 96px;
  margin-bottom: 0.5rem;
}

.navbar__menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 0.5rem 0;
}

.navbar__link {
  color: #ddd;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar__link:hover {
  color: #00aaff;
  text-shadow:
    0 0 5px rgba(0, 170, 255, 0.8),
    0 0 10px rgba(0, 170, 255, 0.6),
    0 0 15px rgba(0, 170, 255, 0.4);
}

.navbar__link::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 0;
  height: 2px;
  width: 0;
  background-color: rgba(0, 170, 255, 0.7);
  transition: width 0.4s ease;
}

.navbar__link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .navbar__container { padding: 0.5rem; }
  .navbar__menu { gap: 1rem; }
  .navbar__link { font-size: 1rem; padding: 0.3rem 0.5rem; }
  .navbar__logo img { height: 72px; }
}

/* === Price Cards === */
.price-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.card {
  background-color: #1c2530;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  flex: 1 1 100%;
  max-width: 300px;
  margin: 0 auto;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

h2{
  text-align: center;
  font-size: 1.2rem;
}
.card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #aaa;
}

.card span {
  font-size: 1.5em;
  font-weight: bold;
  color: #00ffcc;
}

.selected-price {
  margin: 1rem auto;
  width: 280px;
  background: #1e1e1e;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.3em;
  margin-top: 10px;
  text-align: center;
}

.card2{
  margin: auto;
  text-align: center;
}

/* === Forms, buttons & generic results === */
input,
select {
  padding: 10px;
  font-size: 1em;
  margin-bottom: 15px;
  border-radius: 5px;
  border: none;
  width: 100%;
  max-width: 400px;
  background-color: #202c3d;
  color: #fff;
}

button {
  padding: 10px;
  font-size: 16px;
  margin: 5px 0;
  border: none;
  border-radius: 6px;
  background-color: #00d9ff;
  color: #111;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #00aacc;
}

.chart {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 30px;
}

#chartCanvas {
  width: 100% !important;
  height: 300px !important;
  background: #1c1c1c;
  border-radius: 10px;
}

#result,
#result2 {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.5;
  white-space: pre-wrap;
  background: #101b25;
  padding: 10px;
  border-radius: 8px;
}

/* === Fee Calculator === */
.fee-widget-card {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 12px;
  color: #eee;
}

.fee-widget-card h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #00ffcc;
}

.fee-widget-card .inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fee-widget-card .inputs button {
  margin: 0 auto;      
  display: block;      
  max-width: 300px;    
}


.fee-widget-card .inputs select,
.fee-widget-card .inputs input {
  flex: 1 1 160px;
  min-width: 140px;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.button-wrapper button {
  width: 100%;
  max-width: 300px;
}

.fee-widget-card .results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.fee-widget-card .results-grid > div {
  background: #1a1a1a;
  padding: 0.8rem;
  border-radius: 8px;
  text-align: center;
}

.fee-widget-card .results-grid strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #00ffcc;
}

/* === Token Lock Inspector === */
.container > h3 {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #00ffcc;
  font-size: 1.5rem;
}

.container > h3 + .card {
  max-width: 600px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background-color: #1c2530;
}

.container > h3 + .card input,
.container > h3 + .card button {
  width: 100%;
  max-width: 400px;
}

#btnCheckLock {
  display: block;
  margin: 0.5rem auto;
}

/* === Responsive tweaks === */
@media (max-width: 800px) {
  .fee-widget-card .inputs {
    flex-direction: column;
  }
  .fee-widget-card .inputs {
  display: flex;
  flex-direction: row;
}

  .fee-widget-card .results-grid {
    grid-template-columns: 1fr 1fr;
  }
  .button-wrapper button {
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .fee-widget-card .results-grid {
    grid-template-columns: 1fr;
  }
  .container > h3 + .card {
    padding: 1rem;
  }
}

@media (max-width: 400px) {
  .container > h3 {
    font-size: 1.3rem;
  }
}
