body {
  margin: 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  background: #000000;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  color: #ffffff;
}

.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

.header {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 16px;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  margin-bottom: 24px;
  text-align: center;
}

.header-info {
  font-size: 14px;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.header-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
}

.header-link:hover {
  text-decoration: underline;
}

.header-token-input {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: #ffffff;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.header-token-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.header-token-input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.app-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 900px;
}

.app-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
  letter-spacing: -0.5px;
}

.input-toggle {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #e2e8f0;
  cursor: pointer;
}

.toggle-radio {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #60a5fa;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.toggle-radio:checked {
  background: #60a5fa;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.toggle-radio:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.form-input,
.form-input-url {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 16px;
  color: #ffffff;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.form-input-url {
  flex: 2;
}

.form-input::placeholder,
.form-input-url::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-input:focus,
.form-input-url:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow:
    0 0,
    0,
    3px rgba(96, 165, 250, 0.3);
}

.form-button {
  padding: 12px 24px;
  background: rgb(74, 74, 211);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.form-button:hover:not(:disabled) {
  transform: scale(1.01);
}

.form-button:disabled {
  background: rgb(74, 74, 211);
  cursor: not-allowed;
  transform: none;
}

.error {
  color: #f87171;
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
}

.tree-container {
  position: relative;
  animation: fadeIn 0.5s ease-in-out;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 20px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    opacity 0.3s ease;
}

.copy-button.copied {
  background: #10b981;
  opacity: 0.9;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.copy-button.copied:hover {
  background: #10b981;
  transform: none;
}

.copy-icon {
  font-size: 16px;
}

.tree {
  background: #1e293b;
  color: #e2e8f0;
  padding: 24px;
  border-radius: 12px;
  max-height: 500px;
  overflow: auto;
  font-family: "Fira Code", "Courier New", Courier, monospace;
  font-size: 14px;
  text-align: left;
  white-space: pre;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tree::-webkit-scrollbar {
  width: 8px;
}

.tree::-webkit-scrollbar-track {
  background: #1e293b;
  border-radius: 4px;
}

.tree::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

.tree::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.footer {
  margin-top: 0;
  padding: 16px;
  width: 100%;
  text-align: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.footer-link:hover {
  transform: scale(1.1);
}

.github-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-image: url("https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png");
  background-size: cover;
  background-repeat: no-repeat;
  text-indent: -9999px;
  border-radius: 20px;
  transition: transform 0.2s ease;
}

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

@media (max-width: 768px) {
  .app-container,
  .header {
    padding: 20px;
    border-radius: 12px;
  }

  .form {
    flex-direction: column;
  }

  .input-toggle {
    flex-direction: column;
    gap: 12px;
  }

  .form-input,
  .form-input-url,
  .header-token-input {
    width: 100%;
    font-size: 14px;
  }

  .form-button {
    width: 100%;
    font-size: 15px;
  }

  .app-title {
    font-size: 24px;
  }

  .toggle-label {
    font-size: 14px;
  }

  .copy-button {
    padding: 6px 12px;
    font-size: 13px;
    top: 8px;
    right: 20px;
  }

  .tree {
    font-size: 13px;
    padding: 16px;
  }

  .footer {
    padding: 12px;
  }

  .github-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .app-title {
    font-size: 20px;
  }

  .header-info {
    font-size: 12px;
  }

  .toggle-radio {
    width: 16px;
    height: 16px;
  }

  .form-input,
  .form-input-url {
    font-size: 13px;
  }

  .form-button {
    font-size: 14px;
  }

  .tree {
    font-size: 12px;
  }
}
