/* ===============================
   HELLO GIT – DOC DESIGN SYSTEM
   =============================== */

:root {
  --primary: #0d6efd;
  --bg: #f8f9fa;
  --text: #212529;
  --border: #dee2e6;
  --sidebar: #0b5ed7;
  --muted: #6c757d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu;
  background: var(--bg);
  color: var(--text);
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  height: 100vh;
  background: linear-gradient(180deg, var(--sidebar), #084298);
  color: white;
  padding: 15px;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sidebar h4 {
  text-align: center;
  margin-bottom: 10px;
}

.sidebar input {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: none;
  margin-bottom: 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 5px;
  font-size: 15px;
}

.nav-link:hover {
  background: rgba(255,255,255,0.2);
}

.nav-link.active {
  background: white;
  color: var(--primary);
  font-weight: 600;
}

/* ---------- PROGRESS ---------- */
.progress-box {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px;
  margin-top: 15px;
  font-size: 14px;
}

/* ---------- MAIN ---------- */
.main {
  margin-left: 270px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar button {
  background: none;
  border: none;
  font-size: 22px;
  display: none;
}

/* ---------- IFRAME ---------- */
iframe {
  flex: 1;
  border: none;
  background: white;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
  }
  .topbar button {
    display: block;
  }
}
