/* Reset dan Font Dasar */
body, html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    height: 100%;
}

/* Penonaktifan Animasi Teks & Transisi (Wajib Statis) */
* {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Tata Letak Utama: Sidebar Kiri, Konten Kanan */
.app-wrapper {
    display: flex;
    flex-direction: row; 
    min-height: 100vh;
}

/* Sidebar Navigasi Kiri (Diperkecil) */
.sidebar {
    width: 18-px; /* Ukuran diperkecil dari sebelumnya 260px */
    background-color: #1a252f;
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1); /* Bayangan jatuh ke arah kanan */
}

/* Area Konten Utama */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Wadah Modul di Tengah */
.container {
    flex: 1;
    padding: 30px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.content-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Desain Logo di Sidebar */
.sidebar-logo {
    padding: 25px 15px;
    background-color: #151e27;
    text-align: center;
    border-bottom: 2px solid #2c3e50;
}

.sidebar-logo h2 {
    margin: 0;
    color: #1abc9c;
    font-size: 20px;
    letter-spacing: 1px;
}

.sidebar-logo p {
    margin: 5px 0 0 0;
    font-size: 11px;
    color: #bdc3c7;
}

/* Menu Navigasi */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding-top: 15px;
}

.sidebar-nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 15px;
    font-weight: bold;
    font-size: 14px;
    border-left: 4px solid transparent;
}

.sidebar-nav a:hover, .sidebar-nav a:active {
    background-color: #2c3e50;
    border-left: 4px solid #1abc9c;
    color: #1abc9c;
}

/* Badge / Label Statis pada Judul */
.badge {
    font-size: 0.45em;
    background: #3498db;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    vertical-align: middle;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid Layout: Kiri Form, Kanan Teori */
.module-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    margin-top: 20px;
}

.theory-panel {
    background-color: #f8f9fa;
    border-left: 4px solid #34495e;
    padding: 20px;
    border-radius: 4px;
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
}

.theory-panel h4 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Formulir dan Tombol */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

button {
    background-color: #2c3e50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    width: 100%;
}

button:hover {
    background-color: #1a252f;
}

/* Kotak Hasil & Desain Mock-Terminal Log */
.result-box {
    margin-top: 25px;
    padding: 20px;
    background-color: #e8f8f5;
    border: 1px solid #1abc9c;
    border-radius: 4px;
    display: none;
}

.trace-log {
    font-family: 'Consolas', 'Courier New', monospace;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 0 0 6px 6px;
    margin-top: 10px;
    border-top: 25px solid #333333;
    position: relative;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.5;
}

.trace-log::before {
    content: "● ● ●";
    position: absolute;
    top: -21px;
    left: 15px;
    color: #666;
    font-size: 14px;
    letter-spacing: 4px;
}

/* Footer Statis */
.main-footer {
    background-color: #ecf0f1;
    color: #7f8c8d;
    text-align: center;
    padding: 20px;
    font-size: 0.85em;
    border-top: 1px solid #bdc3c7;
}

.main-footer p {
    margin: 5px 0;
}

/* Responsif untuk Layar Kecil */
@media (max-width: 850px) {
    .app-wrapper {
        flex-direction: column; 
    }
    .sidebar {
        width: 100%;
    }
    .module-layout {
        grid-template-columns: 1fr;
    }
}