/* ===== BASE ===== */
:root {
  --bg: #0b0f1a;
  --card: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.12);
  --text: #eef0ff;
  --muted: #aab0c4;
  --accent: #6b8cff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont;
  background: radial-gradient(circle at top, #151d33, #070a12);
  color: var(--text);
  font-size: 16px; /* 🔥 base font increase */
}

/* ===== LAYOUT ===== */
.shell {
  max-width: 1200px;
  margin: auto;
  padding: 48px 28px;
}

.hidden {
  display: none;
}

/* ===== DASHBOARD ===== */
.dashboard-header h1 {
  font-size: 38px; /* 🔥 bigger heading */
  font-weight: 700;
  margin: 0;
}

.dashboard-header p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 16px;
}

.cards {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* ===== CARD ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: blur(16px);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  border-color: rgba(107,140,255,.4);
}

.card .icon {
  font-size: 44px;
  margin-bottom: 18px;
}

.card h2 {
  margin: 0;
  font-size: 22px;
}

.card p {
  color: var(--muted);
  margin: 10px 0 22px;
  font-size: 15px;
}

.card span {
  color: var(--accent);
  font-weight: 600;
}

/* ===== EXPLORER ===== */
.explorer {
  animation: fadeUp .35s ease;
}

.explorer-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}

/* ===== TREE ===== */
.tree {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  font-size: 16px; /* 🔥 tree text bigger */
}

/* ===== TREE NODES ===== */
.node {
  margin-left: 18px;
  border-left: 1px dashed rgba(255,255,255,0.15);
  padding-left: 14px;
}

.node-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background .2s ease;
}

.node-header:hover {
  background: rgba(255,255,255,0.08);
}

.toggle {
  font-size: 14px;
  opacity: .7;
  cursor: pointer;
}

.node-name {
  flex: 1;
  cursor: pointer;
  font-size: 16px; /* 🔥 bigger node name */
  font-weight: 500;
}

.node-name:hover {
  text-decoration: underline;
}
/* ===== EXPLORER LAYOUT ===== */
.explorer {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, #151d33, #070a12);
}

/* Scrollable content */
.explorer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== TREE CONTAINER ===== */
.tree {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(14px);
}

/* ===== MOVE CARD ===== */
.move-card {
  position: sticky;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,20,40,0.9),
    rgba(10,15,30,0.98)
  );
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

/* Card text */
.move-card #cardText {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #eef0ff;
}

/* Input */
.move-card input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 16px;
  outline: none;
}

.move-card input::placeholder {
  color: rgba(255,255,255,0.5);
}

.move-card input:focus {
  border-color: #6b8cff;
  background: rgba(255,255,255,0.12);
}

/* Button */
.move-card button {
  margin-top: 14px;
  width: 100%;
  padding: 14px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6b8cff, #4f6fff);
  color: white;
  transition: transform .15s ease, box-shadow .15s ease;
}

.move-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(107,140,255,0.5);
}

button {
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s ease, transform .15s ease;
}

button:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.children {
  margin-top: 8px;
  animation: fadeUp .25s ease;
}

/* ===== ANIM ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
