h1 {
    font-size:25px;
    margin-bottom: 12px;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

p {
    font-size: 16px;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input {
    font-family: inherit;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 20px;
}

.tool-info {
    max-width: 700px;
}

.hero-text {
    margin-top: 12px;
    opacity: .9;
    line-height: 1.7;
}

.back-button {
    text-decoration: none;
    color: #fff;
    background: #2563eb;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    white-space: nowrap;
    transition: .2s;
}

.back-button:hover {
    background: #1d4ed8;
}

@media (max-width: 900px) {

    .header-container {
        flex-direction: column;
        gap: 18px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .tool-header {
        flex-direction: column;
    }

}

/* ================= UPLOAD ================= */

#dropZone {
    margin-left: 45px;
    margin-right: 45px;
    padding: 25px;
    border: 2px dashed #4da3ff;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
}

#dropZone:hover {
    border-color: #7cbcff;
}

.upload-icon {
    font-size: 52px;
    margin-bottom: 10px;
}

#browseBtn {
    margin-top: 15px;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}

/* ================= QUALITY ================= */

.quality-box {
    margin-top: 25px;
}

.quality-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#quality {
    width: 100%;
}

/* ================= FILE ================= */

.file-box {
    margin-top: 25px;
    flex:3;
}

.file-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#fileList {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 15px;
    min-height: 70px;
}

/* ================= BUTTON ================= */

.converter-layout {
    display:flex;
    gap:20px;
    align-items:stretch;
    margin-bottom: 16px;
}

.convert-box {
    flex:2;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding-top:22px;
}

#convertBtn {
    background: #16a34a;
    color: #fff;
    border: none;
    padding: 20px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
}

#clearBtn {
    display: none;
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    margin:15px 0 0 auto;
    margin-top:8px;
}

.fileItem{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:6px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.fileItem:last-child{
    border-bottom:none;
}

.removeBtn{
    background:#dc2626;
    color:#fff;
    border:none;
    border-radius:6px;
    padding:4px 10px;
    cursor:pointer;
    font-weight:bold;
    transition:.2s;
}

.removeBtn:hover{
    background:#b91c1c;
}

/* ================= QUALITY SLIDER ================= */

#quality {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 10px;
    outline: none;
}

/* tombol bulat yang digeser */
#quality::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

#quality::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

/* ================= PROGRESS ================= */

#progressBox {
    margin-top: 30px;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress {
    height: 18px;
    background: #333;
    border-radius: 30px;
    overflow: hidden;
}

#progressBar {
    height: 100%;
    width: 0%;
    background: #22c55e;
    transition: .3s;
}

#status {
    margin-top: 12px;
    opacity: .9;
    margin-bottom: 12px;
}

@media (max-width: 768px) {

    .button-group {
        grid-template-columns: 1fr;
    }

}

/* ================= RECOMMENDED ================= */

.recommended-tools {
    margin-top: 70px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-top: 20px;
}

.tool-grid a {
    text-decoration: none;
    color: #fff;
    background: #2563eb;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    white-space: nowrap;
    transition: .2s;
}

.tool-grid a:hover {
    background: #1d4ed8;
}

/* ================= FAQ ================= */

.faq-section {
    margin-top: 70px;
}

.faq-item {
    margin-bottom: 28px;
}

.faq-item h3 {
    margin-bottom: 8px;
}

.faq-item p {
    opacity: .9;
}

@media (max-width: 768px) {

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

}