body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #a0e0e4, #fcc0c5, #f582a8);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    max-width: 500px;
}

h1 {
    color: #f582a8;
    margin-bottom: 1rem;
}

.dropzone {
    border: 2px dashed #fcc0c5;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: border 0.3s ease;
    background-color: rgba(255, 255, 255, 0.5);
}

.dropzone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone p {
    font-size: 1.1rem;
    color: #888;
    margin: 0;
}

.actions {
    margin-top: 1rem;
}

button {
    background-color: #a0e7e5;
    border: none;
    padding: 0.75rem 1.5rem;
    color: #141414; /* Mengubah warna teks tombol menjadi hitam */
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #81cbd1;
}

.progress {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar {
    height: 10px;
    width: 0;
    background-color: #f582a8;
    transition: width 0.4s ease;
    border-radius: 5px;
}

#progressText {
    margin-top: 0.5rem;
}

.info, .result {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #333;
}

/* Mengatur tata letak tombol menjadi 2 kolom dan 3 baris */
.extra-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom dengan lebar yang sama */
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.extra-actions button {
    width: 100%;
    box-sizing: border-box;
}

/* Mengatur tombol 'Edit Halaman' agar menempati 2 kolom di baris ketiga */
#editPageBtn {
    grid-column: span 2; /* Membuat tombol ini menempati 2 kolom */
}

/* New styles for metadata inputs */
.meta-input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#pagePreviews img {
    width: 100px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

#pagePreviews img:hover {
    transform: scale(1.05);
    border-color: #f582a8;
}

.app-footer {
    padding: 10px;
    text-align: center;
    font-size: 0.8em; /* Ukuran font lebih kecil */
    color: #666; /* Warna abu-abu agar tidak terlalu mencolok */
    margin-top: 20px; /* Jarak dari konten di atasnya */
    border-top: 1px solid #eee; /* Garis pemisah opsional */
  }
  
  .copyright-text {
    margin: 0; /* Hapus margin default paragraf */
    line-height: 1.5;
  }