/* Reset & Base Style */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 0; /* Kasih jarak atas bawah biar pas di-scroll ga nempel mentok */
    overflow-y: auto; /* Ubah jadi auto biar kalau menunya panjang, otomatis bisa di-scroll halus */
}

/* Animasi Masuk (Fade In + Slide Up) */
@keyframes masuk {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container Utama */
.upload-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 90%;
    max-width: 450px;
    text-align: center;
    animation: masuk 0.6s ease-out forwards;
}

h2 {
    color: #333;
    margin-bottom: 8px;
    font-size: 24px;
}

p {
    color: #777;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Area Dropzone/Kotak Upload */
.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: #4f46e5;
    background: #f5f3ff;
}

.icon {
    font-size: 48px;
    color: #4f46e5;
    margin-bottom: 15px;
}

.drop-text {
    font-weight: 500; 
    color: #444;
}

.separator-text {
    font-size: 12px; 
    color: #999; 
    margin-top: 5px;
}

.btn-browse {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #4f46e5;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-browse:hover {
    background-color: #4338ca;
}

/* Preview Area */
#preview-box {
    margin-top: 20px;
    display: none;
}

#preview-box img, #preview-box video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.file-info {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
    word-break: break-all;
}

/* Style Tombol Upload Manual */
.btn-upload-now {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background-color: #10b981; /* Warna Hijau sukses/proses */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    opacity: 0.5; /* Di-fade kan dulu sebelum ada file */
    cursor: not-allowed;
}

.btn-upload-now:not([disabled]):hover {
    background-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Memastikan Container Preview Tampil */
.preview-box {
    margin-top: 20px;
    display: none; /* Biar tersembunyi murni sebelum file masuk */
}