:root {
  --primary: #2563eb;
  --secondary: #7c3aed;
  --accent: #ec4899;
  --text: #1f2937;
  --secondary-text: #6b7280;
  --hover: #1d4ed8;
  --card-bg: #ffffff;
  --bg: #f9fafb;
  --navbar: #ffffff;
  --sidebar: #f6f6f6;
  --main: #ffffff;
  --footer: #f3f4f6;
  --border: #e5e7eb;
  --sidebar-hover: #e5e7eb;
  --active-menu: #2563eb;
  --active-menu-bg: #e0e7ff;
  --button: #2563eb;
  --button-hover: #1d4ed8;
  --shadow: rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-family: poppins, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5rem;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--text);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "navbar navbar"
    "sidebar content";
}

header {
  grid-area: navbar;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 5px var(--shadow);
}

.navbar {
  display: flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background-color: var(--navbar);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.line {
  margin: 0 1rem 0 2rem;
  padding-bottom: 1rem;
  border-right: 1px solid var(--border);
  height: 1.5rem;
}

#toggle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: auto;
  padding: 0.5rem;
  border: none;
  border-radius: 100%;
  background: none;
  cursor: pointer;
  color: var(--text);
  transition: rotate 0.3s ease, background-color 1s ease, color 0.3s ease;
}

#toggle-button:hover {
  background-color: var(--border);
  color: var(--button-hover);
}

#toggle-button:active {
  background-color: var(--active-menu-bg);
}

.rotate {
  rotate: 180deg;
}

.navbar .logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  a {
    text-decoration: none;
    color: var(--primary);
  }
  span {
    color: var(--accent);
  }
}

/* #sidebar {
  display: none;
} */

.sidebar {
  display: flex;
  box-sizing: border-box;
  position: sticky;
  align-self: start;
  overflow: hidden;
  width: 0;
  white-space: nowrap;
  padding: 1rem 0 1rem 1.5rem;
  transition: all 0.3s ease-in-out;
}

.sidebar.active {
  grid-area: sidebar;
  display: flex;
  box-sizing: border-box;
  height: 100vh;
  width: 250px;
  padding: 1rem 1.5rem;
  margin-right: 1.5rem;
  background-color: var(--sidebar);
  border-right: 1px solid var(--border);
  box-shadow: 0 0 1rem var(--shadow);
  position: sticky;
  top: 0;
  align-self: start;
  transition: all 0.3s ease-in-out;
  text-wrap: nowrap;
  overflow-y: auto;
  scrollbar-color: var(--secondary-text);
  scrollbar-width: thin;
}

.sidebar .logo {
  padding: 0 1.5rem 1rem 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  a {
    text-decoration: none;
    color: var(--secondary-text);
  }
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li:last-child {
  padding-bottom: 4rem;
}

.sidebar li a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.5rem;
  margin: 0.5rem 0;
  border-radius: 0.5rem;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.sidebar li a:hover {
  background-color: var(--sidebar-hover);
  color: var(--hover);
}

.sidebar .sidebar-menu .active a {
  background-color: var(--active-menu-bg);
  border-radius: 0.5rem;
  font-weight: 500;
  color: var(--active-menu);
}

main {
  grid-area: content;
  padding: 1rem 1.5rem 1rem 0;
  overflow-y: auto;
}

/* HOME */
#home {
  .welcome-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 30px var(--shadow);
    padding: 2.5rem;
    border: 1px solid var(--border);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .welcome-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
  }

  .welcome-card h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
  }

  .welcome-card h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24rem;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
  }

  .welcome-card p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    max-width: 700px;
    margin: 1.5rem auto;
    line-height: 1.8;
  }

  .highlight-box {
    background: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.1),
      rgba(124, 58, 237, 0.1)
    );
    border-radius: 12px;
    padding: 1.8rem;
    margin: 2rem 0;
    border-left: 4px solid var(--accent);
  }

  .author-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .author-details {
    text-align: left;
    padding: 1.5rem;
    background-color: var(--active-menu-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
  }

  .author-details p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
  }

  .author-details p i {
    margin-right: 10px;
    color: var(--primary);
  }

  .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .info-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 5px 20px var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
  }

  .info-card:hover {
    transform: translateY(-5px);
  }

  .info-card h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }

  .info-card ul {
    padding-left: 1.5rem;
  }

  .info-card li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
  }

  .feature-list {
    margin-top: 2rem;
  }

  .feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    padding: 1rem;
    background-color: var(--active-menu-bg);
    border-radius: 8px;
  }

  .feature-list li i {
    color: var(--accent);
    margin-right: 10px;
    min-width: 24px;
  }

  .call-to-action {
    text-align: center;
    margin: 3rem 0;
  }

  .btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  }

  .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  }

  .footer-note {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    color: var(--secondary-text);
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
  }

  /* Feather Icons style */
  .feather {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
  }
}

/* PERTEMUAN 1 */
section header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px var(--shadow);
  margin-bottom: 2rem;
  text-align: center;

  h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}

#pert-1 #pengantar h2 {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

#pert-1 .card {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 10px var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  .card-body {
    padding: 1.25rem;
  }

  .card-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  .card-body {
    padding: 1.25rem;
  }
}

#pert-1 #pengantar h3 {
  color: var(--text-color);
  margin: 1rem;
  text-align: center;
}

#pert-1 #pengantar .card-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "judul1 judul2 judul3 judul4"
    "isi1 isi2 isi3 isi4";
  margin: 0 1rem 1rem 1rem;
  text-align: center;
  border: 1px solid var(--border);

  ul {
    list-style: none;
    border: 1px solid var(--border);
  }

  .judul1 {
    grid-area: judul1;
    border: 1px solid var(--border);
  }
  .judul2 {
    grid-area: judul2;
    border: 1px solid var(--border);
  }
  .judul3 {
    grid-area: judul3;
    border: 1px solid var(--border);
  }
  .judul4 {
    grid-area: judul4;
    border: 1px solid var(--border);
  }
}

#pert-1 #aplikasi .card-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto 1fr;
  text-align: center;
  p {
    margin-bottom: 1rem;
  }
}

#pert-1 #pixel {
  p {
    margin-bottom: 1rem;
  }

  ul {
    margin: 0 0 1rem 1rem;
  }

  .sw {
    text-align: center;
    margin-left: 1rem;
  }

  .table {
    margin: 0 3rem;
  }
}

#pert-1 #pixel tr {
  text-align: center;
  th {
    border: 1px solid var(--text);
  }
  td {
    border: 1px solid var(--text);
  }
}

#teknologi .card-body .crt {
  text-align: center;
  margin-bottom: 1rem;
}

#pert-1 #teknologi .card-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "judul1 judul2 judul3"
    "isi1 isi2 isi3";
  margin: 0 1rem 1rem 1rem;
  text-align: center;
  border: 1px solid var(--border);

  .judul1 {
    grid-area: judul1;
    border: 1px solid var(--border);
  }
  .judul2 {
    grid-area: judul2;
    border: 1px solid var(--border);
  }
  .judul3 {
    grid-area: judul3;
    border: 1px solid var(--border);
  }
  ul {
    list-style: none;
    border: 1px solid var(--border);
  }
}

/* PERTEMUAN 2 */
#pert-2 {
  header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
  }

  h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin: 1.2rem 0 0.8rem;
  }

  .card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
  }

  .pixel-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    margin: 15px 0;
  }

  .pixel {
    width: 25px;
    height: 25px;
    background: #ddd;
    border: 1px solid #999;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .pixel:hover {
    transform: scale(1.15);
    z-index: 10;
  }

  .color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
  }

  .color-box {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px;
    text-align: center;
  }

  .color-box:hover {
    transform: translateY(-5px);
  }

  .converter {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .converter-group {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .slider-container {
    margin: 12px 0;
  }

  label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text);
  }

  input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
  }

  .color-display {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    margin: 15px 0;
    border: 2px solid var(--border);
    transition: all 0.3s;
  }

  .formula {
    background: #e8f4fc;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: monospace;
    font-size: 1.1rem;
    border-left: 4px solid var(--primary);
  }

  .btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    margin: 10px 0;
    display: inline-block;
  }

  .btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .visualization {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
  }

  canvas {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 10px 0;
    background: white;
  }

  .explanation {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--accent);
  }

  .explanation h3 {
    color: var(--accent);
  }

  .value-display {
    font-weight: bold;
    color: var(--primary);
  }

  footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    color: #6b7280;
    border-top: 1px solid var(--border);
  }

  @media (max-width: 768px) {
    .grid {
      grid-template-columns: 1fr;
    }

    .pixel {
      width: 20px;
      height: 20px;
    }
  }
}

/* PERTEMUAN 3 */
#pert-3 {
  header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
  }

  h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin: 1.2rem 0 0.8rem;
  }

  .card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
  }

  .algorithm-section {
    margin-bottom: 2rem;
  }

  .input-group {
    margin-bottom: 15px;
  }

  .input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
  }

  .input-group input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-right: 10px;
  }

  .btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    margin: 10px 5px;
    display: inline-block;
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .btn-stop {
    background: red;
  }

  .btn-stop:hover {
    background: #dc2626;
  }

  .btn-polygon {
    background: var(--secondary);
  }

  .btn-polygon:hover {
    background: #6d28d9;
  }

  .visualization {
    margin: 20px 0;
    position: relative;
  }

  .canvas-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
  }

  .status-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 10;
    display: none;
  }

  canvas {
    display: block;
    margin: 0 auto;
    background: #f8f9fa;
  }

  .table-container {
    overflow-x: auto;
    margin: 20px 0;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
  }

  th,
  td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: center;
  }

  th {
    background-color: var(--primary);
    color: white;
  }

  tr:nth-child(even) {
    background-color: #f3f4f6;
  }

  .explanation {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--accent);
  }

  .explanation h3 {
    color: var(--accent);
  }

  .polygon-section {
    margin-top: 30px;
  }

  .polygon-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }

  footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    color: #6b7280;
    border-top: 1px solid var(--border);
  }

  @media (max-width: 768px) {
    .grid {
      grid-template-columns: 1fr;
    }

    .polygon-controls {
      flex-direction: column;
    }

    .btn {
      width: 100%;
      margin: 5px 0;
    }
  }
}

#pert-4 {
  header {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
  }

  h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin: 20px 0 10px;
  }

  .card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
  }

  .input-group {
    margin-bottom: 20px;
  }

  .input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
  }

  .input-group input {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    width: 80px;
    margin-right: 10px;
  }

  .btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    margin: 10px 5px;
    display: inline-block;
  }

  .btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .btn-accent {
    background: var(--accent);
  }

  .btn-accent:hover {
    background: #db2777;
  }

  .visualization {
    margin: 25px 0;
    position: relative;
  }

  .canvas-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    overflow: auto;
    text-align: center;
  }

  canvas {
    display: block;
    margin: 0 auto;
    background: #f8f9fa;
  }

  .table-container {
    overflow-x: auto;
    margin: 25px 0;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
  }

  th,
  td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: center;
  }

  th {
    background-color: var(--primary);
    color: white;
  }

  tr:nth-child(even) {
    background-color: #f3f4f6;
  }

  .explanation {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid var(--accent);
  }

  .explanation h3 {
    color: var(--accent);
    margin-top: 0;
  }

  .algorithm-section {
    margin-bottom: 30px;
  }

  .footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #6b7280;
    border-top: 1px solid var(--border);
  }

  .point {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #2563eb;
  }

  .point-center {
    background-color: #ec4899;
    width: 8px;
    height: 8px;
  }

  .legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
  }

  .legend-center {
    background-color: #ec4899;
  }

  .legend-circle {
    background-color: #2563eb;
  }

  .legend-ellipse {
    background-color: #10b981;
  }

  @media (max-width: 768px) {
    .card {
      padding: 15px;
    }

    .input-group input {
      width: 70px;
    }

    canvas {
      max-width: 100%;
    }
  }
}

#pert-5 {
  header {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px var(--shadow);
    color: white;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  h2 {
    font-size: 1.8rem;
    margin: 25px 0 15px;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
  }

  .subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--secondary-text);
  }

  .content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
  }

  .panel {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px var(--shadow);
    flex: 1;
    min-width: 300px;
    border: 1px solid var(--border);
  }

  .input-group {
    margin-bottom: 20px;
  }

  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
  }

  input[type="number"] {
    width: 100px;
    padding: 10px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    margin-right: 10px;
  }

  input[type="range"] {
    width: 100%;
    margin: 10px 0;
    accent-color: var(--primary);
  }

  .slider-value {
    display: inline-block;
    width: 50px;
    text-align: center;
    font-weight: bold;
    color: var(--accent);
  }

  .btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
    margin-right: 10px;
    margin-top: 10px;
  }

  .btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow);
  }

  .btn-reset {
    background: var(--accent);
    box-shadow: 0 5px 15px var(--shadow);
  }

  .btn-reset:hover {
    background: #db2777;
    box-shadow: 0 8px 20px var(--shadow);
  }

  canvas {
    width: 100%;
    background: var(--bg);
    border-radius: 10px;
    border: 2px solid var(--primary);
    margin-top: 15px;
  }

  .canvas-container {
    position: relative;
    margin-top: 20px;
  }

  .legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
    background: var(--sidebar);
    border-radius: 8px;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
  }

  .control-point {
    background: var(--secondary);
  }

  .bezier-curve {
    background: var(--primary);
  }

  .bezier-point {
    background: var(--accent);
  }

  .control-line {
    background: var(--hover);
  }

  .output {
    background: var(--sidebar);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
  }

  .formula {
    background: var(--active-menu-bg);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-family: "Courier New", monospace;
    overflow-x: auto;
    border-left: 4px solid var(--primary);
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--sidebar);
    border-radius: 10px;
    overflow: hidden;
  }

  th {
    background: var(--primary);
    padding: 12px;
    text-align: center;
    color: white;
  }

  td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  tr:hover {
    background: var(--active-menu-bg);
  }

  .explanation {
    background: var(--active-menu-bg);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid var(--primary);
  }

  .explanation h3 {
    color: var(--accent);
    margin-bottom: 15px;
  }

  .explanation p {
    margin-bottom: 15px;
  }

  .highlight {
    color: var(--accent);
    font-weight: bold;
  }

  .pascal {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: var(--sidebar);
    border-radius: 10px;
  }

  .pascal-row {
    display: flex;
    justify-content: center;
    margin: 5px 0;
  }

  .pascal-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: bold;
    margin: 0 5px;
    border-radius: 50%;
  }

  .pascal-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--accent);
  }

  .point-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .point-control {
    background: var(--active-menu-bg);
    padding: 15px;
    border-radius: 10px;
  }

  @media (max-width: 768px) {
    .content {
      flex-direction: column;
    }

    h1 {
      font-size: 2.2rem;
    }

    .panel {
      width: 100%;
    }

    .point-controls {
      grid-template-columns: 1fr;
    }
  }
}

#pert-6 {
  #graphCanvas {
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    margin: 20px auto;
  }

  .vertex {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
  }

  .vertex:hover {
    transform: scale(1.1);
  }

  .edge {
    position: absolute;
    height: 3px;
    background: #94a3b8;
    transform-origin: 0 0;
  }

  .graph-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
  }

  .color-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 5px;
  }

  .step-box {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #2563eb;
    ol {
      padding-left: 20px;
      margin: 0;
    }
  }
}

#pert-7 {
  header {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
  }

  h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin: 20px 0 10px;
  }

  .card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
  }

  .controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
  }

  .control-group {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .control-group h3 {
    margin-top: 0;
    color: var(--accent);
  }

  .input-group {
    margin-bottom: 15px;
  }

  .input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
  }

  .input-group input,
  .input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: white;
  }

  .input-group input[type="range"] {
    padding: 0;
  }

  .btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    margin: 10px 5px;
    display: inline-block;
  }

  .btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .btn-accent {
    background: var(--accent);
  }

  .btn-accent:hover {
    background: #db2777;
  }

  .visualization {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 25px 0;
  }

  .canvas-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    overflow: auto;
    text-align: center;
    width: 100%;
  }

  canvas {
    display: block;
    margin: 0 auto;
    background: #f8f9fa;
    max-width: 100%;
  }

  .explanation {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid var(--accent);
  }

  .explanation h3 {
    color: var(--accent);
    margin-top: 0;
  }

  .legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
  }

  .legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
  }

  .legend-center {
    background-color: #ec4899;
  }

  .legend-cube {
    background-color: #2563eb;
  }

  .legend-projection {
    background-color: #10b981;
  }

  .comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
  }

  .comparison-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .comparison-item h3 {
    margin-top: 0;
    text-align: center;
    color: var(--secondary);
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
  }

  th,
  td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
  }

  th {
    background-color: var(--primary);
    color: white;
  }

  tr:nth-child(even) {
    background-color: #f3f4f6;
  }

  @media (max-width: 768px) {
    .controls {
      grid-template-columns: 1fr;
    }

    .comparison {
      grid-template-columns: 1fr;
    }

    h1 {
      font-size: 2rem;
    }

    h2 {
      font-size: 1.6rem;
    }
  }
}

#pert-8 {
  header {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
  }

  h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin: 20px 0 10px;
  }

  .card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
  }

  .control-group {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .control-group h3 {
    margin-top: 0;
    color: var(--accent);
  }

  .input-group {
    margin-bottom: 15px;
  }

  .input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
  }

  .input-group input,
  .input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: white;
  }

  .input-group input[type="range"] {
    padding: 0;
  }

  .btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    margin: 10px 5px;
    display: inline-block;
  }

  .btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .btn-accent {
    background: var(--accent);
  }

  .btn-accent:hover {
    background: #db2777;
  }

  .btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
  }

  .visualization {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 25px 0;
  }

  .canvas-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    overflow: auto;
    text-align: center;
    width: 100%;
  }

  canvas {
    display: block;
    margin: 0 auto;
    background: #f8f9fa;
    max-width: 100%;
  }

  .legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
  }

  .legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
  }

  .legend-original {
    background-color: #2563eb;
  }

  .legend-transformed {
    background-color: #ec4899;
  }

  .legend-pivot {
    background-color: #10b981;
  }

  .explanation {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid var(--accent);
  }

  .explanation h3 {
    color: var(--accent);
    margin-top: 0;
  }

  .matrix-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
  }

  .matrix {
    border-collapse: collapse;
    margin: 0 10px;
  }

  .matrix td {
    width: 5rem;
    height: 40px;
    border: 1px solid var(--border);
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
  }

  .matrix-title {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
  }

  .formula {
    background: #e8f4fc;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: monospace;
    font-size: 1.1rem;
    border-left: 4px solid var(--primary);
  }

  @media (max-width: 768px) {
    .grid {
      grid-template-columns: 1fr;
    }

    h1 {
      font-size: 2rem;
    }

    h2 {
      font-size: 1.6rem;
    }
  }
}

#pert-9 {
  header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
  }

  h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }

  h3 {
    font-size: 1.4rem;
    color: var(--accent);
    margin: 20px 0 10px;
  }

  .intro {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
  }

  .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  @media (max-width: 768px) {
    .content {
      grid-template-columns: 1fr;
    }
  }

  .controls {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .control-group {
    margin-bottom: 20px;
  }

  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
  }

  select,
  input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 10px;
  }

  input[type="range"] {
    padding: 0;
  }

  .btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    width: 100%;
    margin-top: 10px;
  }

  .btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .visualization {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
  }

  canvas {
    display: block;
    margin: 0 auto;
    background: #f8f9fa;
    max-width: 100%;
  }

  .legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
  }

  .legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
  }

  .original-color {
    background-color: #2563eb;
  }

  .dilatasi-color {
    background-color: #ec4899;
  }

  .shear-color {
    background-color: #10b981;
  }

  .matrix {
    border-collapse: collapse;
    margin: 15px auto;
  }

  .matrix td {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    text-align: center;
    font-weight: bold;
  }

  .result {
    margin-top: 30px;
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
  }

  th,
  td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: center;
  }

  th {
    background-color: var(--primary);
    color: white;
  }

  tr:nth-child(even) {
    background-color: #f3f4f6;
  }

  .formula {
    background: #e8f4fc;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: monospace;
    border-left: 4px solid var(--primary);
  }

  .explanation {
    margin-top: 30px;
    padding: 20px;
    background: #fff8f0;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
  }
}

#pert-10 {
  header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
  }

  h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
  }

  h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 20px 0 10px;
  }

  .intro {
    background: var(--active-menu-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary);
  }

  .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
  }

  @media (max-width: 900px) {
    .content {
      grid-template-columns: 1fr;
    }
  }

  .panel {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--border);
  }

  .panel-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }

  .controls {
    margin-bottom: 20px;
  }

  .control-group {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--sidebar);
    border-radius: 8px;
  }

  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
  }

  input,
  select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 10px;
  }

  input[type="range"] {
    padding: 0;
    height: 8px;
    background: var(--sidebar);
  }

  .btn {
    background: var(--button);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: block;
    width: 100%;
    margin: 15px 0;
    box-shadow: 0 4px 8px var(--shadow);
  }

  .btn:hover {
    background: var(--button-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px var(--shadow);
  }

  .btn-reset {
    background: var(--accent);
  }

  .btn-reset:hover {
    background: #db2777;
  }

  .canvas-container {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
  }

  canvas {
    display: block;
    margin: 0 auto;
    background: var(--card-bg);
    max-width: 100%;
    box-shadow: 0 4px 10px var(--shadow);
    border: 1px solid var(--border);
  }

  .legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 20px 0;
    flex-wrap: wrap;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
  }

  .legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--border);
  }

  .window-color {
    background: rgba(52, 152, 219, 0.3);
  }

  .viewport-color {
    background: rgba(46, 204, 113, 0.3);
  }

  .original-color {
    background: var(--primary);
  }

  .clipped-color {
    background: var(--accent);
  }

  .result {
    margin-top: 30px;
    background: var(--active-menu-bg);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--accent);
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--card-bg);
  }

  th,
  td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: center;
  }

  th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
  }

  tr:nth-child(even) {
    background-color: var(--sidebar);
  }

  .formula {
    background: rgba(231, 76, 60, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-family: monospace;
    font-size: 1.1rem;
    border-left: 5px solid var(--accent);
    overflow-x: auto;
  }

  .explanation {
    margin-top: 30px;
    padding: 25px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 12px;
    border-left: 5px solid var(--secondary);
  }

  .info-box {
    background: rgba(243, 156, 18, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--accent);
  }

  .algorithm {
    margin: 20px 0;
    padding: 15px;
    background: rgba(155, 89, 182, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
  }

  .algorithm h4 {
    color: var(--secondary);
    margin-bottom: 10px;
  }

  .algorithm ol {
    padding-left: 25px;
  }

  .algorithm li {
    margin-bottom: 10px;
  }

  .slider-value {
    display: inline-block;
    width: 40px;
    text-align: right;
    font-weight: bold;
    color: var(--primary);
  }
}

#pert-11 {
  header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 20px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
  }

  h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin: 15px 0 10px;
  }

  .card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
  }

  .comparison-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
  }

  .comparison-item {
    flex: 1;
    min-width: 300px;
    text-align: center;
  }

  canvas {
    display: block;
    margin: 0 auto;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
  }

  .control-group {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .input-group {
    margin-bottom: 15px;
  }

  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
  }

  input,
  select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
  }

  input[type="range"] {
    padding: 0;
  }

  button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: block;
    width: 100%;
    margin-top: 10px;
  }

  button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
  }

  th,
  td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: left;
  }

  th {
    background-color: var(--primary);
    color: white;
  }

  tr:nth-child(even) {
    background-color: #f3f4f6;
  }

  .aa-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }

  .aa-type {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
  }

  .recommendation {
    background: #e6f7ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1890ff;
    margin-top: 20px;
  }

  .slider-value {
    display: inline-block;
    width: 40px;
    text-align: right;
    font-weight: bold;
  }

  .legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
  }

  .legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
  }

  .legend-aliased {
    background-color: #f5222d;
  }

  .legend-antialiased {
    background-color: #52c41a;
  }
}

#pert-12 {
  header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
  }

  h2 {
    font-size: 2rem;
    color: var(--primary);
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
    position: relative;
  }

  h2::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--secondary);
  }

  h3 {
    font-size: 1.6rem;
    color: var(--secondary);
    margin: 20px 0 12px;
    padding-left: 10px;
    border-left: 4px solid var(--accent);
  }

  .card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 35px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  }

  .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
  }

  .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
  }

  @media (max-width: 900px) {
    .grid {
      grid-template-columns: 1fr;
    }
  }

  canvas {
    display: block;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    margin: 15px 0;
    width: 100%;
  }

  .controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 25px 0;
  }

  .control-group {
    background: rgba(248, 249, 250, 0.7);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(229, 231, 235, 0.5);
  }

  .control-group h3 {
    margin-top: 0;
    color: var(--accent);
  }

  .input-group {
    margin-bottom: 18px;
  }

  label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text);
  }

  input,
  select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s;
  }

  input:focus,
  select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  }

  input[type="range"] {
    padding: 0;
    height: 8px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border: none;
  }

  button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: block;
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
  }

  button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent
    );
    transition: 0.5s;
  }

  button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
  }

  button:hover::before {
    left: 100%;
  }

  button:active {
    transform: translateY(1px);
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  th,
  td {
    border: 1px solid var(--border);
    padding: 15px;
    text-align: left;
  }

  th {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    text-align: center;
  }

  tr:nth-child(even) {
    background-color: rgba(243, 244, 246, 0.5);
  }

  .visualization {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid var(--border);
    background: #1a1e28;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  .coordinate-system {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 30px 0;
    flex-wrap: wrap;
  }

  .coordinate-item {
    text-align: center;
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .coordinate-canvas {
    width: 100%;
    height: 250px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 15px;
  }

  .slider-value {
    display: inline-block;
    width: 50px;
    text-align: right;
    font-weight: bold;
    color: var(--primary);
  }

  .legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 20px 0;
    flex-wrap: wrap;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
  }

  .legend-primary {
    background-color: var(--primary);
  }

  .legend-secondary {
    background-color: var(--secondary);
  }

  .legend-accent {
    background-color: var(--accent);
  }

  .csg-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
  }

  .csg-item {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
  }

  .csg-item:hover {
    transform: translateY(-5px);
  }

  .csg-canvas {
    width: 100%;
    height: 200px;
    background: white;
    border: 1px solid #eee;
    margin-top: 15px;
    border-radius: 8px;
  }

  .light-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
  }

  .light-type {
    background: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.1),
      rgba(124, 58, 237, 0.1)
    );
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .light-type h4 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.4rem;
  }

  .light-type p {
    color: var(--text);
    line-height: 1.6;
  }

  .code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-family: monospace;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .rendering-modes {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
  }

  .rendering-mode {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
  }

  .rendering-mode:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
  }

  .rendering-mode.active {
    border-color: var(--accent);
    background: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.05),
      rgba(124, 58, 237, 0.05)
    );
  }

  .rendering-mode h4 {
    color: var(--secondary);
    margin-bottom: 15px;
  }

  .rendering-mode p {
    color: var(--text);
    margin-bottom: 15px;
  }

  .object-list {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
  }

  .object-item {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  }

  footer {
    text-align: center;
    margin-top: 50px;
    padding: 25px;
    color: #6b7280;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
  }

  @media (max-width: 768px) {
    .csg-container {
      grid-template-columns: 1fr;
    }
  }
}

#pert-13 {
  header {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
    color: white;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .subtitle {
    font-size: 1.4rem;
    color: var(--secondary-text);
    margin-bottom: 20px;
  }

  .description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-text);
  }

  .card-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
  }

  @media (max-width: 900px) {
    .card-container {
      grid-template-columns: 1fr;
    }
  }

  .card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
  }

  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow);
  }

  .card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 20px;
    border-bottom: 2px solid var(--secondary);
    color: white;
  }

  .card-header h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
  }

  .card-body {
    padding: 25px;
  }

  .canvas-container {
    background: var(--active-menu-bg);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid var(--border);
  }

  canvas {
    display: block;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow);
  }

  .controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
  }

  .control-group {
    background: var(--active-menu-bg);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
  }

  .control-group h3 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.2rem;
  }

  .slider-container {
    margin-bottom: 15px;
  }

  label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
  }

  input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    outline: none;
    accent-color: var(--primary);
  }

  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: background 0.3s;
  }

  input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--secondary);
  }

  .value-display {
    display: inline-block;
    width: 40px;
    text-align: right;
    color: var(--primary);
    font-weight: 600;
  }

  button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 10px var(--shadow);
  }

  button:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow);
  }

  .btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    box-shadow: 0 4px 10px var(--shadow);
  }

  .btn-accent:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    box-shadow: 0 6px 15px var(--shadow);
  }

  .code-block {
    background: var(--active-menu-bg);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    overflow-x: auto;
    font-family: "Courier New", monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    border: 1px solid var(--border);
  }

  .code-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 600;
  }

  .color-palette {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
  }

  .color-box {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow);
    border: 1px solid var(--border);
  }

  .explanation {
    background: var(--active-menu-bg);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid var(--border);
  }

  .explanation h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
  }

  .explanation p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text);
  }

  .explanation ul {
    padding-left: 25px;
    margin-bottom: 15px;
  }

  .explanation li {
    margin-bottom: 8px;
    color: var(--text);
  }

  .image-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
  }

  .image-type {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s;
  }

  .image-type:hover {
    transform: translateY(-5px);
  }

  .image-type h4 {
    color: var(--primary);
    margin-bottom: 10px;
  }

  .image-type p {
    color: var(--secondary-text);
    font-size: 0.9rem;
  }

  .image-demo {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px var(--shadow);
  }

  footer {
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--secondary-text);
    font-size: 1rem;
  }

  .highlight {
    color: var(--accent);
    font-weight: bold;
  }

  select,
  input[type="file"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text);
  }

  input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    cursor: pointer;
  }
}

#pert-14 {
  header {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
  }

  .content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }

  @media (min-width: 992px) {
    .content {
      grid-template-columns: 1fr 1fr;
    }
  }

  .card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }

  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
  }

  .card-title {
    font-size: 1.5rem;
    color: #2563eb;
  }

  .canvas-container {
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
  }

  canvas {
    display: block;
    margin: 0 auto;
    background-color: #fff;
    max-width: 100%;
  }

  .controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
  }

  @media (min-width: 576px) {
    .controls {
      grid-template-columns: 1fr auto;
    }
  }

  .control-group {
    display: flex;
    flex-direction: column;
  }

  label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #4b5563;
  }

  input[type="range"] {
    width: 100%;
  }

  .btn-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
  }

  .btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    background-color: #2563eb;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
  }

  .btn-stop {
    background-color: #dc2626;
  }

  .btn-stop:hover {
    background-color: #b91c1c;
  }

  .btn-reset {
    background-color: #4b5563;
  }

  .btn-reset:hover {
    background-color: #374151;
  }

  .explanation {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    border-left: 4px solid #2563eb;
  }

  .explanation h3 {
    color: #2563eb;
    margin-bottom: 10px;
  }

  .code-block {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-family: "Courier New", monospace;
    overflow-x: auto;
  }

  .highlight {
    color: #ec4899;
  }

  .output-container {
    margin-top: 20px;
  }

  .output-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2563eb;
  }

  .slider-value {
    display: inline-block;
    width: 40px;
    text-align: right;
    font-weight: bold;
  }

  footer {
    text-align: center;
    padding: 20px;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
  }
}

#tugas-dashboard {
  header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
  }

  header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }

  header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
  }

  .container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
  }

  .dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  @media (max-width: 1100px) {
    .dashboard-grid {
      grid-template-columns: 1fr;
    }
  }

  .card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    padding: 1.5rem;
    border: 1px solid var(--border);
  }

  .card h2 {
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    font-size: 1.6rem;
  }

  .card h3 {
    color: var(--secondary);
    margin: 1.25rem 0 0.75rem;
    font-size: 1.3rem;
  }

  .controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  @media (max-width: 768px) {
    .controls {
      grid-template-columns: 1fr;
    }
  }

  .control-group {
    margin-bottom: 1.25rem;
  }

  .input-group {
    margin-bottom: 1rem;
  }

  .input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
  }

  .input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    font-size: 1rem;
  }

  .input-group input[type="range"] {
    padding: 0;
  }

  .slider-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .slider-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
  }

  .btn-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  .btn {
    background: var(--button);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
  }

  .btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .btn-accent {
    background: var(--accent);
  }

  .btn-accent:hover {
    background: #db2777;
  }

  .visualization {
    height: 400px;
    background: #f0f8ff;
    border-radius: 10px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
  }

  #simulationCanvas {
    width: 100%;
    height: 100%;
    display: block;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .stat-card {
    background: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.1),
      rgba(124, 58, 237, 0.1)
    );
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--border);
  }

  .stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
  }

  .stat-card .label {
    color: var(--secondary-text);
    font-size: 0.95rem;
  }

  .chart-container {
    height: 300px;
    margin-top: 1.5rem;
    position: relative;
  }

  #trajectoryChart,
  #velocityChart {
    width: 100%;
    height: 100%;
  }

  .legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
  }

  .legend-trajectory {
    background-color: var(--primary);
  }

  .legend-velocity {
    background-color: var(--accent);
  }

  .explanation {
    background: #f0f8ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border-left: 4px solid var(--accent);
    font-size: 1rem;
  }

  .explanation h3 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .explanation ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
  }

  .explanation li {
    margin-bottom: 0.5rem;
  }

  footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    color: var(--secondary-text);
    border-top: 1px solid var(--border);
  }
}
