:root {
  --bg-color: #050609;
  --header-bg: #000000;
  --text-color: #d8d8d8;
  --button-bg: #000;
  --button-hover: #050609;
  --footer-color: #cccccc;
}

body {
    background: #050609;
    visibility: hidden;
    opacity: 0;
}

.main-content-wrapper {
    padding-top: 80px;
    padding-bottom: 30px;
}

.use-button {
  background-color: var(--button-bg);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.use-button:hover {
  background-color: var(--button-hover);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

header .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .left img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

header .left h2 {
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
  white-space: nowrap;
  user-select: none;
}

header .right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

header .right button {
  background-color: var(--button-bg);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

header .right button i {
  font-size: 1.1rem;
}

header .right button:hover {
  background-color: var(--button-hover);
}

.footer-text {
  font-size: 13px;
  color: var(--footer-color);
  opacity: 0.7;
  text-align: center;
  user-select: none;
  padding: 20px 10px 0 10px;
}

@media (max-width: 480px) {
  html,
  body {
    padding: 15px;
    padding-top: 60px;
  }

  header {
    height: 55px;
    padding: 0 15px;
  }

  header .left h2 {
    font-size: 1.1rem;
  }

  header .left img {
    width: 35px;
    height: 35px;
  }

  header .right button {
    padding: 8px;
    width: 40px;
    justify-content: center;
  }

  header .right button .btn-text {
    display: none;
  }
}

@media (max-width: 767px) {
    .result-console-extended {
        margin-top: 0; 
        height: auto; 
    }
}

@media (min-width: 768px) {
    .result-console-extended {
        margin-top: -4.5rem;
        height: calc(100% + 4.5rem);
    }
}

.adv-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
    transition:
        max-height 0.3s ease-out,
        opacity 0.3s ease-out,
        padding 0.3s ease-out,
        margin-top 0.3s ease-out;
}

.adv-panel.open {
    max-height: 500px;
    opacity: 1;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    margin-top: 0.75rem;
    pointer-events: auto;
}

#adv-toggle {
    display: inline-flex;
    margin-bottom: 0;
}

#adv-toggle[aria-expanded="true"] {
    margin-bottom: 0.75rem;
    transition: margin-bottom 0.3s ease-out;
}