:root {
    --primary-color: #00ADB5;
    --secondary-color: #393E46;
    --background-light: #F9F9F9;
    --text-dark: #222831;
    --text-light: #EEEEEE;
    --card-bg: #FFFFFF;
    --border-color: #E0E6E9;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.07);
    --border-radius: 16px;
    --transition-speed: 0.3s ease-out;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background-color: var(--background-light); color: var(--text-dark); display: flex; justify-content: center; align-items: center; min-height: 100vh; line-height: 1.7; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; padding: 30px 20px; }
.container { width: 100%; max-width: 900px; display: flex; flex-direction: column; gap: 30px; animation: fadeIn 0.8s ease-out forwards; opacity: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.tool-header { text-align: center; padding: 40px 25px; background: linear-gradient(45deg, #00ADB5 0%, #17A2B8 100%); color: #EEEEEE; border-radius: 16px; box-shadow: var(--shadow-subtle); }
.tool-header .title { font-family: 'Montserrat', sans-serif; font-size: clamp(2em, 5vw, 3em); font-weight: 700; margin-bottom: 8px; }
.tool-header .tagline { font-size: clamp(0.9em, 2vw, 1.1em); font-weight: 400; max-width: 600px; margin: 0 auto; }
.main-tool { padding: 30px; background-color: var(--card-bg); border-radius: var(--border-radius); box-shadow: var(--shadow-subtle); }
.info-box { background-color: #e6f7ff; border: 1px solid #91d5ff; color: #003a8c; padding: 15px; border-radius: 8px; margin-bottom: 25px; text-align: left; font-size: 0.9em; }
.info-box h3 { margin-top: 0; color: #0056b3; }

form { display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* Styling untuk tombol unggah kustom */
.file-upload-wrapper { display: flex; align-items: center; gap: 15px; border: 2px dashed var(--border-color); padding: 20px; border-radius: 8px; width: 100%; justify-content: center; }
input[type="file"] { display: none; }
.file-upload-button { background-color: var(--secondary-color); color: var(--text-light); padding: 10px 20px; border-radius: 4px; cursor: pointer; transition: background-color var(--transition-speed); }
.file-upload-button:hover { background-color: #2b2f35; }
.file-name-display { color: var(--secondary-color); font-style: italic; }

.submit-button { background-color: var(--primary-color); color: white; padding: 12px 25px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; font-weight: 600; transition: background-color var(--transition-speed); width: 100%; max-width: 300px; }
.submit-button:hover { background-color: #00969d; }
.back-link { display: block; text-align: center; margin-top: 20px; text-decoration: none; color: var(--primary-color); font-weight: 600; }
.back-link:hover { text-decoration: underline; }

/* Gaya untuk Animasi Loading */
#loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.9); display: flex; justify-content: center; align-items: center; flex-direction: column; z-index: 9999; visibility: hidden; opacity: 0; transition: visibility 0s, opacity 0.3s linear; }
#loading-overlay.visible { visibility: visible; opacity: 1; }
.progress-bar { width: 60%; max-width: 500px; height: 20px; background-color: #E0E6E9; border-radius: 10px; overflow: hidden; margin-bottom: 10px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
#progress-fill { height: 100%; width: 0; background-color: var(--primary-color); transition: width 0.3s ease; }
.progress-info { font-size: 1.1em; color: var(--text-dark); font-weight: 600; }