﻿:root {
  --bg: #090a12;
  --panel: #111425;
  --panel-2: #141930;
  --fg: #f7f9ff;
  --muted: #b9bfd8;
  --neon-cyan: #21f0ff;
  --neon-pink: #ff4ad6;
  --line: rgba(124, 148, 255, 0.38);
  --terminal-bg: #05060d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Meiryo", sans-serif;
  color: var(--fg);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 74, 214, 0.22), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(33, 240, 255, 0.18), transparent 45%),
    var(--bg);
}

.container {
  width: min(940px, 92%);
  margin: 28px auto 36px;
}

.hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}

.hero-icon {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 22px rgba(33, 240, 255, 0.5);
}

h1 {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(33, 240, 255, 0.35);
}

.developer-credit {
  margin: 8px 0 18px;
  font-size: 2.25rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow:
    0 0 12px rgba(33, 240, 255, 0.35),
    0 0 18px rgba(255, 74, 214, 0.35);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.menu-toggle {
  width: auto;
  min-width: 120px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(110, 130, 220, 0.8);
  background: #111733;
  color: #eaf1ff;
  font-weight: 700;
}

.tool-menu {
  display: none;
  gap: 10px;
  margin-bottom: 16px;
}

.tool-menu.open {
  display: flex;
}

.menu-item {
  width: auto;
  min-width: 150px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(110, 130, 220, 0.8);
  background: #10162f;
  color: #eaf1ff;
  font-weight: 700;
}

.menu-item.active {
  background: linear-gradient(90deg, #13d8ff, #ff4ad6);
  color: #11142c;
  border-color: transparent;
}

.tool-page {
  display: none;
}

.tool-page.active {
  display: block;
}

.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 25, 48, 0.92), rgba(12, 16, 30, 0.94));
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 0 14px rgba(255, 74, 214, 0.14),
    0 0 12px rgba(33, 240, 255, 0.12);
}

.section-card {
  margin-top: 16px;
}

.inline-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #f6f8ff;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(84, 101, 179, 0.7);
  border-radius: 10px;
  background: #0b1020;
  color: #fbfcff;
  padding: 11px 12px;
  font-size: 0.98rem;
  outline: none;
}

select {
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 1px rgba(33, 240, 255, 0.35), 0 0 16px rgba(33, 240, 255, 0.24);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.code-editor {
  min-height: 210px;
  font-family: "Consolas", "Courier New", monospace;
  line-height: 1.5;
}

.code-editor.lang-txt {
  border-color: rgba(84, 101, 179, 0.8);
  box-shadow: inset 0 0 0 1px rgba(84, 101, 179, 0.25);
}

.code-editor.lang-json {
  border-color: rgba(75, 236, 151, 0.8);
  box-shadow: inset 0 0 0 1px rgba(75, 236, 151, 0.28), 0 0 14px rgba(75, 236, 151, 0.15);
  color: #d6ffe4;
}

.code-editor.lang-python {
  border-color: rgba(255, 215, 99, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 99, 0.28), 0 0 14px rgba(255, 215, 99, 0.15);
  color: #fff1c8;
}

button {
  width: 100%;
  background: linear-gradient(90deg, #13d8ff, #ff4ad6);
  color: #11142c;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#hostingStartButton {
  background: linear-gradient(90deg, #1df2ff, #6dffcb);
}

#hostingStopButton {
  background: linear-gradient(90deg, #ff6a9a, #ff3d67);
  color: #fff9ff;
}

#hostingRestartButton {
  background: linear-gradient(90deg, #ffd76b, #ff8e67);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.status-item {
  border: 1px solid rgba(84, 101, 179, 0.7);
  border-radius: 10px;
  background: rgba(9, 13, 27, 0.85);
  padding: 10px 12px;
}

.status-item span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.status-item strong {
  display: block;
  font-size: 0.98rem;
  color: #f4f8ff;
}

.helper-text {
  margin: 2px 0 0;
  color: #d9e0ff;
  font-size: 0.92rem;
}

.terminal-wrap {
  margin-top: 22px;
}

h2,
h3 {
  margin: 0;
  font-size: 1.05rem;
}

.terminal {
  margin: 0;
  border: 1px solid rgba(93, 113, 198, 0.7);
  border-radius: 12px;
  background: var(--terminal-bg);
  color: #eaf1ff;
  min-height: 270px;
  max-height: 500px;
  overflow: auto;
  padding: 13px 14px;
  white-space: pre-wrap;
  line-height: 1.52;
  font-size: 0.94rem;
  font-family: "Consolas", "Courier New", monospace;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}

@media (max-width: 640px) {
  .container {
    width: 95%;
    margin: 16px auto 24px;
  }

  h1 {
    font-size: 1.35rem;
  }

  .developer-credit {
    font-size: 1.6rem;
  }

  .menu-toggle {
    width: 100%;
  }

  .tool-menu.open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-icon {
    width: 46px;
    height: 46px;
  }

  .button-row {
    grid-template-columns: 1fr;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .terminal {
    min-height: 230px;
    font-size: 0.88rem;
  }
}
