/* Notifications Component */
.notification-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 350px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification-dropdown.active {
    display: block;
}

.notif-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
}

.notif-header span {
    font-weight: 800;
    font-size: 15px;
    color: var(--text-main);
}

.notif-list {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* System Standard Scrollbar */
.notif-list::-webkit-scrollbar {
    width: 6px;
}
.notif-list::-webkit-scrollbar-track {
    background: transparent;
}
.notif-list::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 10px;
}
.notif-list::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.5);
}

.notif-item {
    padding: 18px;
    display: flex;
    gap: 15px;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.notif-item:hover {
    background: var(--glass-bg);
}

.notif-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon.primary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 3px;
    display: block;
}

.notif-text {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    display: block;
}

.notif-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 5px;
    display: block;
}

.notif-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.notif-footer a {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.notif-trigger {
    cursor: pointer;
    position: relative;
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
}

.notif-trigger:hover {
    background: rgba(var(--white-rgb), 0.05);
    border-color: var(--primary);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.notif-empty i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.3;
}

.notif-empty span {
    font-size: 12px;
}

.btn-mark-read {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
}

/* Notif Item Wrapper & Close Button */
.notif-item-wrapper { position: relative; display: flex; align-items: stretch; border-bottom: 1px solid var(--border); transition: all 0.2s ease; }
.notif-item-wrapper:hover { background: rgba(var(--white-rgb), 0.02); }
.notif-item-wrapper:last-child { border-bottom: none; }
.notif-close-btn { 
    background: transparent; border: none; color: var(--text-muted); padding: 0 15px; cursor: pointer; opacity: 0; 
    transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}
.notif-item-wrapper:hover .notif-close-btn { opacity: 1; }
.notif-close-btn:hover { color: var(--danger); background: rgba(var(--accent-rgb, 255, 68, 68), 0.05); }