/* ---------------------------------------------------
   General Background
--------------------------------------------------- */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;

  background-color: #faf7f2;
  background-image: url("../img/washi-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;

  color: #2d2622;
}

/* ---------------------------------------------------
   Drafting Geometry Overlay (SVG-based)
--------------------------------------------------- */

#geometry-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;

  background-image:
    url("../img/geometry.svg"),
    radial-gradient(circle at 60% 20%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 60%);

  background-repeat: no-repeat;

  background-size:
    1200px,
    1200px;

  background-position:
    18% 5%,
    55% 10%;
}

/* ---------------------------------------------------
   Layout Structure (FIXED)
--------------------------------------------------- */

#header {
  padding: 2rem 3rem 1.2rem 3rem;
}

#header h1 {
  margin-bottom: 0.3rem;
}

#header h2 {
  margin-top: 0.1rem;
  font-style: italic;
  color: #444;
}

#container {
  display: flex;
  flex-direction: row;
  gap: 2rem;

  padding: 0 3rem 3rem 3rem;

  height: calc(100vh - 200px);
  overflow: hidden;
}

/* Sidebar */
#sidebar {
  width: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  border-right: 1px solid #ddd;
  padding: 0.5rem 0.5rem 0.5rem 0;
  max-height: 100%;
}

#sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#sidebar li {
  padding: 0.4rem 0.3rem;
  margin-bottom: 0.2rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #444;
  border-radius: 4px;
}

#sidebar li:hover {
  background-color: rgba(0,0,0,0.05);
  color: #111;
}

#sidebar li.active {
  background-color: rgba(0,0,0,0.10);
  font-weight: 600;
  color: #000;
}

/* Content Pane */
#content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 40px;
}

@media (max-width: 800px) {
  #container {
    flex-direction: column;
    height: auto;
  }
  #content {
    padding: 1.5rem;
  }
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */

#footer {
  margin-top: 4rem;
  padding: 2rem 3rem 3rem 3rem;
  font-size: 0.85rem;
  color: #666;
}

.footer-inner {
  max-width: 1000px;
  border-top: 1px solid rgba(0,0,0,0.15);
  padding-top: 1rem;
  line-height: 1.6;
}

.footer-link {
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding: 0 0.1rem;
}

.footer-link:hover {
  color: #000;
  border-bottom-color: #000;
}

.footer-sep {
  margin: 0 0.4rem;
  color: #999;
}

.footer-label {
  color: #555;
  font-weight: 400;
}