/* Container Tombol Melayang Mepet Kanan */
.dkn-bm-float-container {
    position: fixed;
    bottom: 120px; /* Posisi default agak ke atas agar tidak menabrak Back to Top */
    right: 0;      /* Mepet ke sisi paling kanan layar */
    display: flex;
    flex-direction: column;
    gap: 0;        /* Tanpa jarak agar menyatu rapat */
    z-index: 99999;
    box-shadow: -3px 4px 15px rgba(0,0,0,0.25);
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    overflow: hidden;
}

/* Ukuran & Bentuk Petak */
.dkn-bm-float-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s ease;
}

.dkn-bm-float-btn:hover {
    opacity: 0.9;
}

/* Tombol Atas: Merah dengan Icon Putih */
/* Status Awal (Belum di-bookmark): Latar Merah, Icon Putih */
.dkn-bm-red {
    background: #d32e3d;
    color: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

/* Status Saat SUDAH di-bookmark (.is-saved): Latar Berubah ke #111827, Icon Berubah Warna */
#dkn-bm-quick-btn.is-saved {
    background: #1b2a49 !important;
    color: #d32e3d !important; /* Icon berubah jadi merah */
}

/* Tombol Bawah: Putih dengan Icon Hitam */
.dkn-bm-white {
    background: #ffffff;
    color: #111827;
}

/* Badge angka pemberitahuan */
.dkn-bm-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #d32e3d;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
}

/* Penyesuaian khusus Mobile agar tidak tertutup Back to Top */
@media (max-width: 600px) {
    .dkn-bm-float-container {
        bottom: 140px; /* Dinaikkan sedikit khusus layar HP */
    }
}

/* Drawer Slide Panel */
.dkn-bm-drawer {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100%;
    background: #111827;
    color: #ffffff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    z-index: 100000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.dkn-bm-drawer.open {
    right: 0;
}

.dkn-bm-header {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dkn-bm-header h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #f1f5f9; font-family: urban;
}

.dkn-bm-note {
    display: block;
    font-size: 11px;
    color: #94a3b8; font-family: inter;
}

#dkn-bm-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.dkn-bm-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

#dkn-bm-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dkn-bm-item {
  background: rgba(255,255,255,0.05);
  margin-bottom: 10px;
  padding: 0px 12px 0px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px; background: #d32e3d;
}

.dkn-bm-item a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; font-family: inter;
}

.dkn-bm-item a:hover {
    color: #111827;
}

.dkn-bm-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
}

.dkn-bm-remove:hover {
    color: #d32e3d;
}

.dkn-bm-empty {
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* Overlay */
.dkn-bm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dkn-bm-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Toggle Button in Single Post */
.dkn-bm-action-wrap {
    margin: 20px 0;
}

.dkn-bm-toggle-btn {
    background: #111827;
    color: #ffffff;
    border: 2px solid #d32e3d;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dkn-bm-toggle-btn:hover {
    background: #d32e3d;
}

.dkn-bm-toggle-btn.saved {
    background: #d32e3d;
}


/* Mengatur ukuran icon Font Awesome dengan pasti */
.dkn-bm-float-btn i {
    font-size: 16px !important;
    line-height: 1 !important;
}