* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #9158b0;
    color: white;
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #652d96;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: #795994;
}

.content {
    margin-left: 250px;   /* ruang untuk sidebar kiri */
    margin-right: 270px;  /* ruang untuk TOC kanan */
    flex: 1;
    padding: 40px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page h1 {
    color: #4E56C0;
    margin-bottom: 20px;
    border-bottom: 2px solid #383d79;
    padding-bottom: 10px;
}

.page h2 {
    color: #5258a0;
    margin: 30px 0 15px 0;
}

.page-info {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
    border-left: 4px solid #9166c3;
}

.page img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    margin: 20px 0;
}

.page a {
    color: #D78FEE;
    text-decoration: none;
    font-weight: bold;
}

.page a:hover {
    text-decoration: underline;
}

.toc {
    width: 250px;
    background-color: #f0ecf1;
    padding: 20px;
    position: fixed;
    right: 0;
    height: 100vh;
    overflow-y: auto;
    border-left: 1px solid #bdc3c7;
}

.toc h2 {
    margin-bottom: 20px;
    color: #481386;
}

.toc ul {
    list-style: none;
    padding-left: 20px;
}

.toc li {
    margin-bottom: 8px;
}

.toc span {
    color: #D78FEE;
    text-decoration: none;
    font-size: 14px;
    cursor: default;          /* pointer mouse jadi default, bukan tangan */
    display: inline-block;
}

.toc span:hover {
    text-decoration: none;    /* tidak ada efek hover */
}


#toc-content ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

#toc-content li {
    padding: 4px 0;
    cursor: default;
    transition: color 0.2s;
}

#toc-content li.active-heading span {
    color: #9B5DE0;       /* Warna highlight (biru) */
    font-weight: bold;
    text-decoration: underline;
}

table {
    border-collapse: collapse;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 8px rgba(95, 53, 109, 0.1);
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    border: 1px solid #ddd;
    padding: 15px;
    vertical-align: top;
}

th {
    background-color: #2c3e50;
    color: white;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .content {
        margin-left: 200px;
        padding: 20px;
    }
    
    .toc {
        width: 200px;
    }
}