/* --- STYLE POPUP PROFILE BARU --- */
.profile-popup {
    display: none;
    position: absolute;
    top: 70px; /* Sesuaikan jarak dari navbar */
    right: 0;  /* Sesuaikan posisi kanan */
    width: 320px;
    z-index: 1000;
    
    /* FIX 1: Background Putih agar tidak transparan */
    background: #fff;
    
    /* FIX 2: Radius & Shadow di Container Utama */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    
    /* FIX 3: Mencegah scrollbar memotong radius sudut */
    overflow: hidden; 
    
    /* Animasi */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.profile-popup.show {
    opacity: 1;
    transform: translateY(0);
}

/* Wrapper Scroll di dalam Container */
.popup-scroll-area {
    max-height: 450px; /* Tinggi maksimal sebelum scroll */
    overflow-y: auto;  /* Scroll hanya muncul di sini */
    padding: 20px;
    position: relative;
}

/* Custom Scrollbar Cantik (Agar tidak kotak kaku) */
.popup-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.popup-scroll-area::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.popup-scroll-area::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 10px;
}
.popup-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}

/* Tombol Close X yang melayang di atas konten scroll */
.close-profile-fixed {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    z-index: 1001; /* Pastikan di atas scroll */
    background: #fff; /* Latar putih kecil biar jelas */
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.close-profile-fixed:hover {
    color: #ef4444;
}

/* Header Profil di dalam Popup */
.profile-header-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 10px; /* Jarak dari tombol close */
}

.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px auto; /* Tengah horizontal */
    position: relative; /* KUNCI: Agar icon kamera menempel di sini */
    cursor: pointer;
}

/* Foto & Inisial */
.profile-avatar img, .profile-avatar .profile-initial-big {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-initial-big {
    background: #007bff;
    color: white;
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

/* Ikon Kamera */
.camera-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    
    /* Tampilan */
    background: #fff;
    width: 28px;       /* Ukuran pasti */
    height: 28px;      /* Ukuran pasti */
    border-radius: 50%;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    
    /* Posisi Icon di Tengah Bulatan */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* AGAR MUNCUL DI PALING ATAS */
    z-index: 100; 
    
    /* Warna Icon */
    color: #555;
    font-size: 14px;
    transition: all 0.2s ease;
}
.profile-avatar:hover .camera-icon {
    background: #007bff;
    color: white;
}

.profile-info-text .profile-name { font-weight: bold; font-size: 16px; color: #333; }
.profile-info-text .profile-email { font-size: 13px; color: #777; margin-bottom: 15px; }

/* Input Group yang Rapi */
.input-group { margin-bottom: 15px; text-align: left; }
.input-group label { display: block; font-size: 12px; color: #555; margin-bottom: 5px; font-weight: 600; }
.input-group input { 
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; 
    font-size: 14px; box-sizing: border-box; /* Penting agar tidak melebar */
}