/* =========================================================
   STYLE PANEL NOTIFIKASI OFF-CANVAS (DARK MODE PROFESIONAL)
   ========================================================= */

/* --- OVERLAY & PANEL KANAN --- */
.notif-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(11, 17, 32, 0.7); /* Latar belakang gelap transparan */
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.notif-overlay.active {
    opacity: 1;
    visibility: visible;
}

.notif-panel-content {
    position: absolute;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-card, #1e293b);
    border-left: 1px solid var(--border-color, #334155);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notif-overlay.active .notif-panel-content {
    right: 0;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #334155);
    background: linear-gradient(to right, rgba(30, 41, 59, 0.8), transparent);
}

.notif-header h3 {
    font-size: 1.15rem;
    color: var(--text-main, #f8fafc);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.notif-header h3 i {
    color: var(--brand, #3b82f6);
}

.notif-header button {
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-header button:hover {
    color: #ef4444;
    transform: scale(1.1);
}

/* --- KONTEN DALAM PANEL --- */
#notif-body-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Custom Scrollbar untuk Panel Notifikasi agar terlihat profesional */
#notif-body-container::-webkit-scrollbar {
    width: 6px;
}
#notif-body-container::-webkit-scrollbar-track {
    background: transparent;
}
#notif-body-container::-webkit-scrollbar-thumb {
    background: var(--border-color, #334155);
    border-radius: 10px;
}
#notif-body-container::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* --- ITEM NOTIFIKASI INDIVIDUAL (CARD) --- */
.notif-item {
    background: #0f172a; /* Warna dark mode solid untuk card */
    border: 1px solid var(--border-color, #334155);
    border-radius: var(--radius-md, 10px);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    align-items: flex-start;
}

.notif-item:hover {
    border-color: #475569;
    background: #151f32;
    transform: translateY(-2px); /* Efek melayang saat di-hover */
}

/* Highlight untuk notifikasi yang belum dibaca */
.notif-item.unread {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--brand, #3b82f6);
}

/* --- IKON NOTIFIKASI --- */
.notif-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* Pewarnaan Ikon Berdasarkan Tipe (Menyesuaikan dengan Backend) */
.type-post_approved .notif-icon, 
.type-payment_success .notif-icon, 
.type-threshold_reached .notif-icon { 
    background: rgba(16, 185, 129, 0.15); 
    color: var(--accent, #10b981); 
}
.type-reject_post .notif-icon, 
.type-delete_live .notif-icon, 
.type-delete_pending .notif-icon, 
.type-security_alert .notif-icon { 
    background: rgba(239, 68, 68, 0.15); 
    color: #ef4444; 
}
.type-revision_post .notif-icon { 
    background: rgba(245, 158, 11, 0.15); 
    color: #f59e0b; 
}
.type-new_register .notif-icon, 
.type-default .notif-icon { 
    background: rgba(59, 130, 246, 0.15); 
    color: var(--brand, #3b82f6); 
}

/* --- TEKS NOTIFIKASI --- */
.notif-content {
    flex: 1;
    min-width: 0; /* Mencegah teks melampaui lebar flex */
}

.notif-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    color: var(--text-main, #f8fafc);
    line-height: 1.4;
}

.notif-message {
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    word-break: break-word;
}

.notif-time {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
/* --- TAUTAN AKSI (VIEW COMMENT) DI DALAM NOTIFIKASI --- */
.notif-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--brand, #3b82f6);
    text-decoration: none;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
}

.notif-action-link:hover {
    background: var(--brand, #3b82f6);
    color: #fff;
    border-color: var(--brand, #3b82f6);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.notif-action-link i {
    font-size: 0.85rem;
}