:root {
  --bg-color: #0d1117;
  --sidebar-bg: #161b22;
  --text-color: #c9d1d9;
  --accent-color: #58a6ff;
  --accent-hover: #79c0ff;
  --btn-inactive: #21262d;
  --btn-text: #c9d1d9;
  --border-color: #30363d;

  --highlight-bg: #1f2428;
  --table-header-bg: #21262d;
  --table-border: #30363d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  height: 100vh;
  overflow: hidden;
}

.container {
  display: grid;
  grid-template-columns: 250px 1fr;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  background-color: var(--sidebar-bg);
  padding: 15px;
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-group h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.reset-container {
  margin-bottom: 5px;
}

.reset-btn {
  width: 100%;
  padding: 12px;
  background-color: #3e2020;
  color: #ffffff;
  border: 1px solid #ff7b72;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toggle-btn {
  padding: 12px 5px;
  background-color: var(--btn-inactive);
  color: var(--btn-text);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.1s ease;
  text-align: center;
  line-height: 1.2;
}

.toggle-btn:hover {
  background-color: #30363d;
}

.toggle-btn.active {
  background-color: #1f6feb;
  border-color: #58a6ff;
  color: #ffffff;
  font-weight: bold;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Content */
.content {
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.content h1 {
  display: none;
}

/* Table */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}

.guide-table tbody tr {
  border-bottom: none;
}

.guide-table td {
  padding: 8px 20px;
  /* Increased side padding */
  vertical-align: top;
  color: var(--text-color);
  line-height: 1.6;
}

.guide-table tr.no-border {
  border-bottom: none;
}

/* Single Column Utilities */
.phase-strong {
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1rem;
  margin-right: 10px;
  display: inline-block;
  border-left: 4px solid var(--accent-color);
  padding-left: 8px;
  margin-bottom: 4px;
}

.phase-row {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-row {
  padding-left: 12px;
}

.separator {
  border: 0;
  border-top: 1px dashed var(--border-color);
  margin: 10px 0;
}

/* Detailed List */
.detail-list {
  list-style: none;
  margin-top: 8px;
  padding-left: 5px;
  font-size: 0.9rem;
}

.detail-list li {
  margin-bottom: 2px;
  padding-left: 10px;
  border-left: 2px solid #333;
}

/* Colors and Icons */
.marker-red {
  color: #ff7b72;
  font-weight: bold;
}

.marker-yellow {
  color: #d29922;
  font-weight: bold;
}

.marker-purple {
  color: #d2a8ff;
  font-weight: bold;
}

.marker-green {
  color: #3fb950;
  font-weight: bold;
}

.highlight {
  color: #e0e0e0;
  font-weight: bold;
  text-decoration: underline decoration-sky-500;
}

.highlight-blue {
  color: #58a6ff;
  font-weight: bold;
}

.highlight-cyan {
  color: #39c5bb;
  font-weight: bold;
}

.highlight-red {
  color: #ff7b72;
  font-weight: bold;
}

.highlight-purple {
  color: #d2a8ff;
  font-weight: bold;
}

.check-point {
  margin-bottom: 4px;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-point .label {
  color: #ffffff;
  font-size: 0.95rem;
  min-width: 80px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.note {
  font-size: 0.9rem;
  color: #ffffff;
}

.margin-top-s {
  margin-top: 8px;
}

.inline-icon {
  height: 1.4em;
  width: auto;
  vertical-align: middle;
  margin: 0 1px;
  border-radius: 3px;
  position: relative;
  top: -0.15em;
}

.toggle-btn .inline-icon {
  top: 0;
}

.vertical-align-middle {
  vertical-align: middle;
}

/* Utility */
.conditional-content {
  display: none;
}

.conditional-content.active {
  display: inline;
}

div.conditional-content.active {
  display: block;
}

tr.conditional-content.active {
  display: table-row;
}

/* Animation */
.conditional-content.active {
  animation: quickFade 0.2s ease-out;
}

@keyframes quickFade {
  from {
    opacity: 0.5;
    transform: translateX(-2px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 190px 1fr;
  }

  .guide-table {
    font-size: 0.95rem;
  }
}

/* Copyright Footer */
.developer-credit {
  margin-top: auto;
  text-align: center;
  padding-top: 20px;
}

.developer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8b949e;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.developer-credit a:hover {
  color: #ffffff;
}

.x-logo {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.copyright {
  text-align: center;
  font-size: 0.7rem;
  color: #484f58;
  padding-top: 5px;
  padding-bottom: 5px;
}