/* Styling Lonceng Notifikasi */
.notif-container {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1100;
}

.notif-bell {
    position: relative;
    cursor: pointer;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #2c3e50;
    transition: all 0.3s ease;
}

.notif-bell:hover {
    background-color: #f8f9fa;
    color: var(--bs-primary);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    border: 2px solid white;
} 
 
/* Dropdown Notifikasi */
.notif-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    /* overflow: hidden;  <-- Hapus atau beri komentar pada baris ini */
}

/* Menambahkan jembatan transparan agar hover tidak terputus */
.notif-dropdown::before {
    content: "";
    position: absolute;
    top: -15px; /* Menjangkau area kosong setinggi 10px + sedikit overlap */
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
    z-index: -1; /* Berada di belakang lonceng agar tidak menutupi klik */
}





.notif-container:hover .notif-dropdown {
    display: block;
}

/* Karena overflow:hidden dihapus, maka harus beri radius pada header dan footer agar rapi */
.notif-header {
    border-radius: 8px 8px 0 0;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    background: #f8f9fa;
}

.notif-list {
    max-height: 350px;
    overflow-y: auto;
}

.notif-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.notif-item:hover {
    background-color: #f9f9f9;
}

.notif-icon {
    margin-right: 12px;
    font-size: 18px;
}

.notif-content small {
    display: block;
    color: #666;
    line-height: 1.2;
    margin-top: 2px;
}

.notif-footer {
    border-radius: 0 0 8px 8px;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #eee;
    background: white;
}

.notif-footer a {
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    color: var(--bs-primary);
}

/* Sembunyikan saat print */
@media print {
    .notif-container { display: none !important; }
}