body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Mengatur layout utama menjadi kolom */
    min-height: 100vh;
}
h1 { 
    text-align: center; 
    color: #333; 
}
/* --- Gaya untuk Navigasi --- */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

/* Tombol Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #333;
}

/* Konten Utama */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 70px; 
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    width: 100%;
}

.container {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.converter-box { 
    background-color: white; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}

.form-group { 
    margin-bottom: 20px; 
}

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

input[type="file"], 
select { 
    width: 100%; 
    padding: 10px; 
    border-radius: 4px; 
    border: 1px solid #ddd; 
    box-sizing: border-box; /* Menjamin padding tidak menambah lebar */
}

.quality-slider { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

input[type="range"] { 
    flex-grow: 1; 
}

button { 
    width: 100%; 
    padding: 15px; 
    background-color: #007bff; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    font-size: 16px; 
    cursor: pointer; 
    transition: background-color 0.3s; 
}

button:hover { 
    background-color: #0056b3; 
}

button:disabled { 
    background-color: #cccccc; 
    cursor: not-allowed; 
}

#status { 
    text-align: center; 
    margin-top: 20px; 
    font-weight: bold; 
    height: 20px; /* Memberi ruang agar layout tidak bergeser */
}

#estimation-list { 
    list-style: none; 
    padding: 0; 
    margin-top: 20px; 
}

#estimation-list li { 
    background-color: #e9ecef; 
    padding: 10px; 
    border-radius: 4px; 
    margin-bottom: 5px; 
    font-size: 14px; 
    display: flex;
    justify-content: space-between;
}

/* Footer */
aside {
    width: 100%;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
}

aside a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

aside a:hover {
    text-decoration: underline;
}

/* Media Query untuk Mobile */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        padding: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}