:root {
  --primary-green: #14cb5a;
  --secondary-green: #00a84a;
  --accent-green: #0f8a3d;
  --light-green: rgba(20, 203, 90, 0.1);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

h2 {
  scroll-margin-top: 120px;
}

section {
  scroll-margin-top: 80px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

/* Student Header Banner */
.student-banner {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--secondary-green)
  );
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.student-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  opacity: 0.3;
}

.student-banner h1 {
  font-size: 2.5rem;
  margin: 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.student-banner .student-role {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

/* Main Container */
.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Sidebar Styles */
.sidebar {
  flex: 0 0 300px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 2rem;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sidebar h3 {
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--light-green);
  padding-bottom: 0.5rem;
}

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

.sidebar > ul > li {
  margin-bottom: 1rem;
}

.sidebar > ul > li > ul {
  margin-left: 1rem;
  margin-top: 0.5rem;
}

.sidebar a {
  color: #555;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar a:hover {
  background: var(--light-green);
  color: var(--primary-green);
  border-left-color: var(--primary-green);
  transform: translateX(2px);
}

.sidebar > ul > li:first-child {
  font-weight: 500px;
  color: var(--accent-green);
  padding: 0.5rem 0.75rem;
  background: var(--light-green);
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Main Content */
.main-content {
  flex: 1;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.content-header {
  background: linear-gradient(
    135deg,
    var(--light-green),
    rgba(0, 168, 74, 0.05)
  );
  padding: 2rem;
  border-bottom: 1px solid rgba(20, 203, 90, 0.2);
}

.content-header h1 {
  color: var(--primary-green);
  margin: 0 0 0.5rem 0;
  font-size: 2.2rem;
}

.content-header p {
  color: #666;
  margin: 0;
  font-size: 1.1rem;
}

.content-body {
  padding: 2rem;
}

/* Section Styles */
.documentation-section {
  margin-bottom: 3rem;
  padding: 2rem;
  border: 1px solid rgba(20, 203, 90, 0.15);
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, #fafafa 0%, #f8f9fa 100%);
  position: relative;
}

.documentation-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--secondary-green)
  );
  border-radius: 0 4px 4px 0;
}

.documentation-section h2 {
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.documentation-section h2::before {
  content: "🌱";
  font-size: 1.2rem;
}

.documentation-section h3 {
  color: var(--accent-green);
  margin: 1.5rem 0 1rem 0;
  font-size: 1.4rem;
}

.documentation-section h4 {
  color: var(--primary-green);
  margin: 1.2rem 0 0.8rem 0;
  font-size: 1.2rem;
}

.documentation-section p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: #555;
}

.documentation-section ul,
.documentation-section ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.documentation-section li {
  margin-bottom: 0.7rem;
  line-height: 1.6;
}

.documentation-section li strong {
  color: var(--accent-green);
}

/* Code Highlighting */
.documentation-section code {
  background: #f1f3f4;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: #d73a49;
  border: 1px solid rgba(215, 58, 73, 0.2);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(20, 203, 90, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-card h4 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* Highlight Boxes */
.highlight-box {
  background: linear-gradient(
    135deg,
    var(--light-green),
    rgba(0, 168, 74, 0.05)
  );
  border: 1px solid rgba(20, 203, 90, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.highlight-box::before {
  content: "✓";
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-green);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500px;
}

.highlight-box h4 {
  color: var(--secondary-green);
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Link Section */
.link-section {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--secondary-green)
  );
  color: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  margin-top: 2rem;
}

.link-section h3 {
  margin-bottom: 1rem;
  color: white;
}

.link-section a {
  color: white;
  text-decoration: none;
  font-weight: 500px;
  padding: 0.75rem 1.5rem;
  border: 2px solid white;
  border-radius: 25px;
  display: inline-block;
  margin: 0.5rem;
  transition: var(--transition);
}

.link-section a:hover {
  background: white;
  color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(20, 203, 90, 0.3);
  z-index: 1000;
}

.back-to-top:hover {
  background: var(--secondary-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 203, 90, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-container {
    flex-direction: column;
    padding: 1rem;
  }

  .sidebar {
    position: static;
    flex: none;
    order: 2;
    margin-top: 2rem;
  }

  .student-banner h1 {
    font-size: 2rem;
  }

  .documentation-section {
    padding: 1.5rem;
  }

  .content-header,
  .content-body {
    padding: 1.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-green);
}
