/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #4b5563;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
}

/* Baris 1: Logo */
.header-row-1 {
  display: flex;
  justify-content: center;
  
}

/* Baris 2: Menu Navigasi */
.header-row-2 {
  display: flex;
  justify-content: center;
  
}

/* Baris 3: Admin Profile + Login */
.header-row-3 {
    display: flex;
    justify-content: center;
    
    gap: 1rem;
    
}

.logo h1 {
  color: #2563eb;
  font-size: 1.8rem;
  margin-bottom: 0;
}

.logo span {
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 400;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: #4b5563;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
  background-color: #eff6ff;
}

.login-btn {
  background-color: #2563eb;
  color: #ffffff;
}

.login-btn:hover {
  color: #ffffff;
  background-color: #1d4ed8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: #1d4ed8;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-outline:hover {
  background-color: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-full {
  width: 100%;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-disabled {
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.btn-success {
  background-color: #10b981;
  color: #ffffff;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}

/* Admin Profile */
.admin-profile {
  margin-left: 0;
  border-left: none;
  padding-left: 0;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #4b5563;
  transition: all 0.3s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.profile-link:hover {
  background-color: #eff6ff;
  color: #2563eb;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.profile-text {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #8ebcf8 0%, #ffffff 100%);
  padding: 4rem 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h2 {
  font-size: 3rem;
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.code-preview {
  background: #1f2937;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.code-preview:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.code-header {
  background: #374151;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ef4444;
}
.dot.yellow {
  background: #f59e0b;
}
.dot.green {
  background: #10b981;
}

.code-content {
  padding: 1.5rem;
  font-family: "Monaco", "Menlo", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.keyword {
  color: #60a5fa;
}
.function {
  color: #3b82f6;
}
.method {
  color: #10b981;
}
.string {
  color: #f59e0b;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background: #ffffff;
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #eff6ff;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid #dbeafe;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #2563eb;
  margin-bottom: 1rem;
}

/* Popular Modules */
.popular-modules {
  padding: 4rem 0;
  background: #f9fafb;
}

.popular-modules h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.module-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.module-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.module-level {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.module-level.beginner {
  background: #dcfce7;
  color: #166534;
}

.module-level.intermediate {
  background: #fef3c7;
  color: #92400e;
}

.module-level.advanced {
  background: #fecaca;
  color: #991b1b;
}

.module-duration {
  color: #6b7280;
  font-size: 0.875rem;
}

.module-card h3 {
  color: #2563eb;
  margin-bottom: 1rem;
}

.module-stats {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #8ebcf8 0%, #ffffff 100%);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: #6b7280;
}

/* Auth Sections */
.auth-section {
  padding: 2rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.auth-form {
  max-width: 400px;
}

.auth-form h2 {
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.auth-form p {
  color: #6b7280;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #4b5563;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.forgot-link {
  color: #2563eb;
  font-size: 0.875rem;
}

.auth-divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.auth-divider span {
  background: #ffffff;
  padding: 0 1rem;
  color: #6b7280;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  background: #ffffff;
  color: #4b5563;
  transition: all 0.3s ease;
}

.btn-social:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
}

.social-icon {
  font-weight: bold;
  font-size: 1.2rem;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
}

.auth-footer a {
  color: #2563eb;
  font-weight: 600;
}

.welcome-card {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3),
    0 10px 10px -5px rgba(37, 99, 235, 0.2);
}

.welcome-card h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
}

.benefits {
  margin-top: 2rem;
  text-align: left;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.benefit-icon {
  font-size: 1.2rem;
}

/* Filter Section */
.filter-section {
  padding: 2rem 0;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.filters {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  color: #4b5563;
}

.filter-group select {
  padding: 0.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
}

/* Learning Paths */
.learning-paths {
  padding: 4rem 0;
  background: #ffffff;
}

.learning-paths h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.path-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.path-card:hover {
  border-color: #2563eb;
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.path-card.featured {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.path-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #2563eb;
  color: #ffffff;
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.path-info {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.path-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.path-modules span {
  background: #f3f4f6;
  color: #4b5563;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

/* Module Details */
.modules-section {
  padding: 4rem 0;
  background: #f9fafb;
}

.modules-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.module-image {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tech-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #ffffff;
  font-size: 1.2rem;
}

.tech-icon.html {
  background: #e34f26;
}
.tech-icon.css {
  background: #1572b6;
}
.tech-icon.js {
  background: #f7df1e;
  color: #000;
}
.tech-icon.python {
  background: #3776ab;
}
.tech-icon.react {
  background: #61dafb;
  color: #000;
}
.tech-icon.node {
  background: #339933;
}
.tech-icon.db {
  background: #336791;
}

.module-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
}

.detail {
  text-align: center;
  font-size: 0.875rem;
}

.detail strong {
  display: block;
  color: #2563eb;
  font-size: 1.2rem;
}

.module-progress {
  margin: 1rem 0;
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: #2563eb;
  transition: width 0.3s ease;
}

.progress-bar.locked .progress-fill {
  background: #9ca3af;
}

.module-progress span {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Quiz Sections */
.progress-overview {
  padding: 2rem 0;
  background: #f9fafb;
}

.progress-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.progress-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.progress-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.progress-icon {
  font-size: 2rem;
}

.progress-number {
  font-size: 2rem;
  font-weight: bold;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.progress-number span {
  font-size: 1rem;
  color: #6b7280;
}

.quick-practice {
  padding: 4rem 0;
  background: #ffffff;
}

.quick-practice h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.practice-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-card:hover {
  border-color: #2563eb;
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.practice-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.practice-type {
  background: #f3f4f6;
  color: #4b5563;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.practice-difficulty {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.practice-difficulty.easy {
  background: #dcfce7;
  color: #166534;
}

.practice-difficulty.medium {
  background: #fef3c7;
  color: #92400e;
}

.practice-difficulty.hard {
  background: #fecaca;
  color: #991b1b;
}

.practice-meta {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.quiz-categories {
  padding: 4rem 0;
  background: #f9fafb;
}

.quiz-categories h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.category-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.category-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #ffffff;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.category-icon.html {
  background: #e34f26;
}
.category-icon.css {
  background: #1572b6;
}
.category-icon.js {
  background: #f7df1e;
  color: #000;
}
.category-icon.python {
  background: #3776ab;
}

.category-stats {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.category-progress {
  margin: 1rem 0;
}

.recent-activities {
  padding: 4rem 0;
  background: #ffffff;
}

.recent-activities h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.activities-list {
  max-width: 800px;
  margin: 0 auto;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1),
    0 4px 6px -2px rgba(37, 99, 235, 0.05);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.activity-icon.completed {
  background: #dcfce7;
}

.activity-icon.failed {
  background: #fecaca;
}

.activity-content {
  flex: 1;
}

.activity-content h4 {
  margin-bottom: 0.25rem;
}

.activity-content p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.activity-points {
  color: #2563eb; /* Biru elegan */
  font-weight: bold;
}

.leaderboard {
  padding: 4rem 0;
  background: #f9fafb;
}

.leaderboard h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.leaderboard-table {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leaderboard-table:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #2563eb;
  color: #ffffff;
  font-weight: bold;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
  transition: background-color 0.3s ease;
}

.leaderboard-row:hover {
  background: #eff6ff;
}

.leaderboard-row.top {
  background: #eff6ff;
}

.leaderboard-row.current {
  background: #dbeafe;
  font-weight: bold;
}

.rank {
  font-weight: bold;
}

/* Community Sections */
.community-stats {
  padding: 2rem 0;
  background: #f9fafb;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #6b7280;
  font-weight: 600;
}

.forum-nav {
  padding: 2rem 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.forum-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forum-tabs {
  display: flex;
  gap: 1rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: #6b7280;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
}

.popular-topics {
  padding: 4rem 0;
  background: #f9fafb;
}

.popular-topics h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.topic-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.topic-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.topic-tag.javascript {
  background: #fef3c7;
  color: #92400e;
}

.topic-tag.react {
  background: #dbeafe;
  color: #1e40af;
}

.topic-tag.css {
  background: #dcfce7;
  color: #166534;
}

.topic-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.forum-categories {
  padding: 4rem 0;
  background: #ffffff;
}

.forum-categories h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  background: #f9fafb;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.category-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-content h3 {
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.category-stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.category-latest {
  text-align: right;
  font-size: 0.875rem;
}

.latest-post strong {
  color: #4b5563;
}

.recent-discussions {
  padding: 4rem 0;
  background: #f9fafb;
}

.recent-discussions h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.discussions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.discussion-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discussion-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.discussion-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.discussion-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.discussion-header h4 {
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.discussion-tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  background: #f3f4f6;
  color: #4b5563;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag.react {
  background: #dbeafe;
  color: #1e40af;
}

.tag.deployment {
  background: #fef3c7;
  color: #92400e;
}

.tag.javascript {
  background: #fef3c7;
  color: #92400e;
}

.tag.debugging {
  background: #fecaca;
  color: #991b1b;
}

.tag.showcase {
  background: #e0e7ff;
  color: #3730a3;
}

.tag.portfolio {
  background: #f3e8ff;
  color: #6b21a8;
}

.tag.python {
  background: #dbeafe;
  color: #1e40af;
}

.tag.data-science {
  background: #dcfce7;
  color: #166534;
}

.tag.career {
  background: #fef3c7;
  color: #92400e;
}

.tag.interview {
  background: #fecaca;
  color: #991b1b;
}

.discussion-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.discussion-meta .author strong {
  color: #4b5563;
}

.discussion-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 1.2rem;
  color: #ffffff;
}

.stat small {
  color: #6b7280;
  font-size: 0.75rem;
}

.load-more {
  text-align: center;
  margin-top: 3rem;
}

.community-guidelines {
  padding: 4rem 0;
  background: #ffffff;
}

.guidelines-card {
  max-width: 800px;
  margin: 0 auto;
  background: #eff6ff;
  padding: 3rem;
  border-radius: 1rem;
  border: 2px solid #dbeafe;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guidelines-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.guidelines-card h3 {
  text-align: center;
  color: #2563eb;
  margin-bottom: 2rem;
}

.guidelines-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.guideline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.guideline-icon {
  font-size: 1.5rem;
}

/* Admin Styles */
.admin-body {
  background: #f9fafb;
}

.admin-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.admin-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-logo h1 {
  color: #2563eb;
  font-size: 1.5rem;
  margin-bottom: 0;
}

.admin-logo span {
  color: #6b7280;
  font-size: 0.875rem;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: calc(100vh - 80px);
}

.admin-sidebar {
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  padding: 2rem 0;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #6b7280;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: #eff6ff;
  color: #2563eb;
  transform: translateX(5px);
}

.nav-icon {
  font-size: 1.2rem;
}

.admin-main {
  padding: 2rem;
  overflow-y: auto;
}

.admin-section {
  max-width: 1200px;
}

.admin-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-header-section h2 {
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.admin-header-section p {
  color: #6b7280;
  margin: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.users {
  background: #dbeafe;
}
.stat-icon.modules {
  background: #dcfce7;
}
.stat-icon.quizzes {
  background: #fef3c7;
}
.stat-icon.discussions {
  background: #f3e8ff;
}

.stat-content h3 {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #2563eb;
  margin-bottom: 0.25rem;
}

.stat-change {
  font-size: 0.875rem;
}

.stat-change.positive {
  color: #10b981;
}
.stat-change.negative {
  color: #ef4444;
}
.stat-change.neutral {
  color: #6b7280;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.admin-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.admin-card h3 {
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1),
    0 4px 6px -2px rgba(37, 99, 235, 0.05);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.activity-icon.new-user {
  background: #dbeafe;
}
.activity-icon.new-module {
  background: #dcfce7;
}
.activity-icon.discussion {
  background: #fef3c7;
}
.activity-icon.quiz {
  background: #f3e8ff;
}

.activity-content strong {
  color: #4b5563;
  display: block;
  margin-bottom: 0.25rem;
}

.activity-content p {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.activity-content small {
  color: #9ca3af;
  font-size: 0.75rem;
}

.popular-modules {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.module-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1),
    0 4px 6px -2px rgba(37, 99, 235, 0.05);
}

.module-info strong {
  color: #4b5563;
  display: block;
}

.module-info p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.completion-rate {
  color: #10b981;
  font-weight: 600;
  font-size: 0.875rem;
}

.admin-table-container {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-table-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: #f9fafb;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.admin-table tr:hover {
  background: #eff6ff;
}

.module-info strong,
.quiz-info strong {
  color: #4b5563;
  display: block;
  margin-bottom: 0.25rem;
}

.module-info small,
.quiz-info small {
  color: #6b7280;
  font-size: 0.75rem;
}

.category-tag,
.level-tag,
.status-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.category-tag.web {
  background: #dbeafe;
  color: #1e40af;
}

.category-tag.python {
  background: #dcfce7;
  color: #166534;
}

.level-tag.beginner {
  background: #dcfce7;
  color: #166534;
}

.level-tag.intermediate {
  background: #fef3c7;
  color: #92400e;
}

.level-tag.advanced {
  background: #fecaca;
  color: #991b1b;
}

.status-tag.active {
  background: #dcfce7;
  color: #166534;
}

.status-tag.draft {
  background: #fef3c7;
  color: #92400e;
}

.status-tag.inactive {
  background: #f3f4f6;
  color: #6b7280;
}

.status-tag.approved {
  background: #dcfce7;
  color: #166534;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.user-info strong {
  color: #4b5563;
  display: block;
}

.user-info small {
  color: #6b7280;
  font-size: 0.75rem;
}

.admin-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.admin-filters select,
.admin-filters input {
  padding: 0.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
}

.moderation-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.moderation-item {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #fbbf24;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.moderation-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.moderation-item.approved {
  border-left-color: #10b981;
}

.moderation-content .discussion-header h4 {
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.report-tag {
  background: #fecaca;
  color: #991b1b;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.moderation-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: #1f2937;
  color: #ffffff;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #d1d5db;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #60a5fa;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #d1d5db;
}

/* ===== MOBILE RESPONSIVE ===== */

/* Header utama */
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Logo section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo h1 {
  color: #2563eb;
  font-size: clamp(1.5rem, 4vw, 1.8rem); /* Responsif */
  margin-bottom: 0;
  white-space: nowrap;
}

.logo span {
  color: #4b5563;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 400;
}

/* Navigation */
.nav-main {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: #4b5563;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
  background-color: #eff6ff;
}

/* Header Actions - bagian kanan */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== TOMBUT MASUK YANG RESPONSIF ===== */
.login-btn {
  background-color: #2563eb;
  color: #ffffff;
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: clamp(0.875rem, 2vw, 1rem);
  white-space: nowrap;
  min-width: max-content;
}

.login-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Admin Profile */
.admin-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #4b5563;
  transition: all 0.3s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  white-space: nowrap;
}

.profile-link:hover {
  background-color: #eff6ff;
  color: #2563eb;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  flex-shrink: 0;
}

.profile-text {
  font-weight: 600;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* ===== MEDIA QUERIES UNTUK RESPONSIVENESS ===== */

/* Tablet */
@media (max-width: 1024px) {
  .header .container {
    gap: 0.75rem;
  }
  
  .nav-main {
    gap: 0.25rem;
  }
  
  .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .header-actions {
    gap: 0.75rem;
  }
}

/* Mobile Medium */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .logo-section {
    justify-content: center;
  }
  
  .nav-main {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .header-actions {
    order: 2;
    justify-content: center;
    width: 100%;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    flex: 1;
    min-width: 120px;
    text-align: center;
  }
  
  .login-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    min-width: 100px;
  }
  
  .profile-text {
    display: none; /* Sembunyikan teks di mobile kecil */
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .header .container {
    padding: 0 15px;
    gap: 0.75rem;
  }
  
  .nav-main {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  
  .nav-link {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .header-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .login-btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .admin-profile {
    justify-content: center;
  }
  
  .profile-link {
    padding: 0.4rem 0.6rem;
  }
}

/* Very Small Mobile */
@media (max-width: 360px) {
  .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
  
  .login-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  .logo h1 {
    font-size: 1.4rem;
  }
}

@supports not (clamp(1rem, 2vw, 1.5rem)) {
  .login-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  @media (max-width: 768px) {
    .login-btn {
      padding: 0.6rem 1.2rem;
      font-size: 0.9rem;
    }
  }
  
  @media (max-width: 480px) {
    .login-btn {
      padding: 0.5rem 1rem;
      font-size: 0.85rem;
    }
  }
}