/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Body and Layout */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

pre {
  background-color: #f4f4f4; /* Light gray background for better readability */
  padding: 10px; /* Adds space around the text */
  margin: 0; /* Remove any extra margins */
  white-space: pre-wrap; /* Wrap the content if it exceeds the width */
  word-wrap: break-word; /* Ensure words break to fit the container */
  font-family: "Courier New", Courier, monospace; /* Ensures monospace font */
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  height: 100vh;
  background: linear-gradient(to bottom, #1a2a3a, #2c3e50);
  color: #f8f9fa;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.sidebar-header {
  padding: 25px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
  background: linear-gradient(90deg, #64b5f6, #2196f3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
}

.sidebar ul {
  list-style: none;
  padding: 0 15px;
}

.sidebar ul li {
  margin: 8px 0;
}

.sidebar a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
  font-size: 15px;
}

.nav-icon {
  margin-right: 12px;
  font-size: 18px;
  opacity: 0.9;
}

.nav-text {
  flex: 1;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateX(3px);
}

/* Highlight active link */
.sidebar a.active {
  background: rgba(33, 150, 243, 0.2);
  color: #fff;
  border-left: 3px solid #2196f3;
}

.sidebar a.active::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background: #2196f3;
  border-radius: 0 3px 3px 0;
}

.sidebar-footer {
  padding: 15px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content - Full Width */
.main-content {
  margin-left: 280px;
  padding: 50px 80px;
  background: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  min-height: 100vh;
  width: calc(100% - 280px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section Styling */
section {
  margin-bottom: 80px;
  padding: 30px;
  border-bottom: 1px solid #eee;
}

section h2 {
  font-size: 32px;
  color: #1a2a3a;
  margin-bottom: 20px;
  font-weight: 700;
}

section p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

/* Links */
a {
  color: #2196f3;
  text-decoration: none;
}

/* Lists */
ul {
  padding-left: 20px;
  margin: 20px 0;
}

li {
  margin-bottom: 10px;
}

/* Mobile menu toggle button */
.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  background: #1a2a3a;
  color: white;
  border: none;
  border-radius: 8px;
  width: 45px;
  height: 45px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: #2196f3;
}

/* Hamburger icon */
.hamburger {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: #fff;
  left: 0;
  transition: all 0.3s ease-in-out;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* Hamburger animation */
.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Add overlay when sidebar is active on mobile */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: block;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-content {
    padding: 40px 50px;
  }

  section h2 {
    font-size: 28px;
  }

  section p {
    font-size: 17px;
  }
}

@media (max-width: 900px) {
  body {
    flex-direction: column;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    padding: 30px 25px;
  }

  section {
    padding: 20px 10px;
    margin-bottom: 50px;
  }

  section h2 {
    font-size: 26px;
  }

  section p {
    font-size: 16px;
    line-height: 1.7;
  }
}

@media (max-width: 600px) {
  .sidebar {
    width: 85%;
    max-width: 320px;
  }

  .main-content {
    padding: 20px 15px;
  }

  section {
    padding: 15px 5px;
    margin-bottom: 40px;
  }

  section h2 {
    font-size: 24px;
  }

  section p {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 400px) {
  .sidebar h2 {
    font-size: 20px;
  }

  .sidebar a {
    font-size: 14px;
    padding: 10px 12px;
  }

  .nav-icon {
    font-size: 16px;
  }

  section h2 {
    font-size: 22px;
  }

  section p {
    font-size: 15px;
  }

  .menu-toggle {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}
